Difference between pages "Category:Events" and "User:Augur ./Templating Help"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
(Created the events super-category in the hierarchical category structure.)
 
m (The Basics: new section)
 
Line 1: Line 1:
A super-category containing all categories relating to events during the LCA2015 conference.  
+
= The Basics =
[[Category:Categories]]
+
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.
 +
* [https://www.mediawiki.org/wiki/Help:Formatting Formatting]
 +
* [https://www.mediawiki.org/wiki/Help:Links Links]
 +
* [https://www.mediawiki.org/wiki/Help:Lists Lists]
 +
* [https://www.mediawiki.org/wiki/Help:Images Images]
 +
* [https://www.mediawiki.org/wiki/Help:Tables Tables]
 +
 
 +
= Difficult Concepts =
 +
I have trouble remembering the syntax for many of the [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions parser functions] and [https://www.mediawiki.org/wiki/Help:Magic_words magic words] that I use often, so I am building this library of examples that I can quickly copy from.
 +
 
 +
== #if ==
 +
<pre>
 +
{{#if: test string
 +
| value if test string is not empty
 +
| value if test string is empty (or only white space)
 +
}}
 +
</pre>
 +
 
 +
== #switch ==
 +
<pre>
 +
{{#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
 +
}}
 +
</pre>

Revision as of 10:25, 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
}}

Subcategories

This category has the following 3 subcategories, out of 3 total.

D

R

T