Changes

Wiki Program Playground

1,264 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.
=== Adding YouTube Videos ==='''page url''': http://goo.gl/SQr6Sf
Embedding YouTube videos into pages—such as the one below—is straightforward. Just use the following tags:== 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: <span classsyntaxhighlight lang="wikicodetext">[[File:filename.extension|options|caption]]<nowiki/syntaxhighlight> [[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: <syntaxhighlight lang="text">[[File:Cropped-Lab-Fall-2014-799.jpg|700px|border|Pictured are UC Davis Griesemer/Millstein Philosophy of Biology members.]]</syntaxhighlight> == Adding YouTube Videos == Embedding YouTube videos into pages is straightforward. Just use the following format: <syntaxhighlight lang="text"><embedvideo service="youtube">https://www.youtube.com/[rest of url here]</embedvideo></nowiki></spansyntaxhighlight>
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>