Changes

Wiki Program Playground

596 bytes added, 18:09, 13 January 2015
/* Alternative Syntax */
This page is for demonstrating and experimenting with features that can be put to use on Wiki Program Pages. It is for anyone to use. The idea is that this is a playground where things can be tried out without worry.
Remember: You can see how to implement anything on this page by just by looking at the wiki markup source and aping it. '''page url''': http://goo.gl/SQr6Sf
== Adding Images ==
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&mdash;such as the one below&mdash;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>