Difference between revisions of "Wiki Program Playground"

From Philosophy of Biology Graduate Programs
Jump to: navigation, search
(created page)
 
m (Alternative Syntax)
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE}}
+
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 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:
 +
 
 +
<syntaxhighlight lang="text">
 +
[[File:filename.extension|options|caption]]
 +
</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>
 +
</syntaxhighlight>
 +
 
 +
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>

Latest revision as of 14:09, 13 January 2015

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 just by looking at the wiki markup source and aping it.

page url: http://goo.gl/SQr6Sf

Adding Images[edit]

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 here. The general syntax is:

[[File:filename.extension|options|caption]]

Pictured are UC Davis Griesemer/Millstein Philosophy of Biology members.

The image above was produced with the following markup:

[[File:Cropped-Lab-Fall-2014-799.jpg|700px|border|Pictured are 
UC Davis Griesemer/Millstein Philosophy of Biology members.]]

Adding YouTube Videos[edit]

Embedding YouTube videos into pages is straightforward. Just use the following format:

<embedvideo service="youtube">https://www.youtube.com/[rest of 
url here]</embedvideo>

Other examples are here.

Alternative Syntax[edit]

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, basic4gl, bf, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, dot, eiffel, email, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, lolcode, lotusformulas, lotusscript, lscript, lua, m68k, make, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle11, oracle8, pascal, per, perl, php, php-brief, pic16, pixelbender, plsql, povray, powershell, progress, prolog, providex, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, xml, xorg_conf, xpp, z80


This is a head
==============


This is too
-----------

- one 
- two
- three

* list of items
** with others
location=world               # store "world" in the variable "location"
echo "Hello, ${location}!"   # print "Hello, world!"
location=world               # store "world" in the variable "location"
echo "Hello, ${location}!"   # print "Hello, world!"