Difference between pages "User:Augur ./Templating Help" and "Category:People by Social Media Network"

From LCA2015 Delegate wiki
< User:Augur .(Difference between pages)
Jump to: navigation, search
(Created a page in my own userspace to assist with creating templates.)
 
(Created the 'people by social media network' super-category in the hierarchical category structure.)
 
Line 1: Line 1:
= Difficult Concepts =
+
A super-category containing all categories relating to delegates who have identified as using social media networks.
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.
+
[[Category:People by Characteristic]]
 
+
== #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>
+

Latest revision as of 08:14, 11 December 2014

A super-category containing all categories relating to delegates who have identified as using social media networks.