Changes

Wiki Program Playground

593 bytes added, 18:09, 13 January 2015
/* Alternative Syntax */
Registered users can upload images to the site via the 'Upload file' link on the left-hand toolbar. Documentation on how to then embed these images into the page can be found [http://www.mediawiki.org/wiki/Help:Images here]. The general syntax is:
<code><nowikisyntaxhighlight lang="text">[[File:filename.extension|options|caption]]</nowiki></codesyntaxhighlight>
[[File:Cropped-Lab-Fall-2014-799.jpg|700px|border|Pictured are UC Davis Griesemer/Millstein Philosophy of Biology members.]]
The image above was produced with the following markup:
<code><nowikisyntaxhighlight lang="text">[[File:Cropped-Lab-Fall-2014-799.jpg|700px|border|Pictured are UC Davis Griesemer/Millstein Philosophy of Biology members.]]</nowiki></codesyntaxhighlight>
== Adding YouTube Videos ==
Embedding YouTube videos into pages is straightforward. Just use the following format:
<code><nowikisyntaxhighlight lang="text"><embedvideo service="youtube">https://www.youtube.com/[rest of url here]</embedvideo></nowiki></codesyntaxhighlight>
Other examples are [http://www.mediawiki.org/wiki/Extension:EmbedVideo#Examples here].
<embedvideo service="youtube">https://www.youtube.com/watch?v=lklTdctDdIo</embedvideo>
 
== Alternative Syntax ==
 
<syntaxhighlight lang="wiki">
 
This is a head
==============
 
 
This is too
-----------
 
- one
- two
- three
 
* list of items
** with others
</syntaxhighlight>
 
<syntaxhighlight lang="c">
location=world # store "world" in the variable "location"
echo "Hello, ${location}!" # print "Hello, world!"
</syntaxhighlight>
 
<syntaxhighlight lang="bash">
location=world # store "world" in the variable "location"
echo "Hello, ${location}!" # print "Hello, world!"
</syntaxhighlight>