Difference between revisions of "User:Augur ./Templating Help"

From LCA2015 Delegate wiki
Jump to: navigation, search
m (The Basics: new section)
m (The Basics: Added a couple more links.)
 
Line 6: Line 6:
 
* [https://www.mediawiki.org/wiki/Help:Images Images]
 
* [https://www.mediawiki.org/wiki/Help:Images Images]
 
* [https://www.mediawiki.org/wiki/Help:Tables Tables]
 
* [https://www.mediawiki.org/wiki/Help:Tables Tables]
 +
* [https://www.mediawiki.org/wiki/Help:Categories Categories]
 +
* [https://www.mediawiki.org/wiki/Help:Templates Templates]
  
 
= Difficult Concepts =
 
= Difficult Concepts =

Latest revision as of 10:32, 10 December 2014

The Basics

Sometimes it is easy to forgot the syntax of even the simplest and most commonly-used wikitext commands. Here are some links to useful resources.

Difficult Concepts

I have trouble remembering the syntax for many of the parser functions and magic words that I use often, so I am building this library of examples that I can quickly copy from.

#if

{{#if: test string 
| value if test string is not empty
| value if test string is empty (or only white space)
}}

#switch

{{#switch: {{{variable}}}
| if_it_is_this=    do this
                    and this
                    and this too

| if_it_is_that=    just do this

| if_it_is_me
| or_if_it_is_you=  do this

| #default=         just do this instead, as it wasn't any of them
}}