Difference between pages "User:Augur ./MW Extension Shoppinglist" and "User:Augur ./Templating Help"

From LCA2015 Delegate wiki
< User:Augur .(Difference between pages)
Jump to: navigation, search
m (Removed two media-related extensions from the list, as requested by Steven Ellis.)
 
(Created a page in my own userspace to assist with creating templates.)
 
Line 1: Line 1:
Some of my wiki magic incantations rely on extensions to be added to the wiki back-end, such as:
+
= Difficult Concepts =
* [https://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree] - for viewing the hierarchical category structure
+
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.
* [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions] - '''highest priority!''' supports many wiki functions
+
 
* [https://www.mediawiki.org/wiki/Extension:Tabber Tabber] - for beautifying the front page
+
== #if ==
* [https://www.mediawiki.org/wiki/Extension:Variables Variables] - useful for complex wiki fu
+
<pre>
* [https://www.mediawiki.org/wiki/Extension:StringFunctions StringFunctions] - useful for complex wiki fu
+
{{#if: test string
* [https://www.mediawiki.org/wiki/Extension:InputBox InputBox] - useful for complex wiki fu
+
| value if test string is not empty
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi SyntaxHighlight_GeSHi] - for posting code snippets with syntax highlighting
+
| value if test string is empty (or only white space)
* [https://www.mediawiki.org/wiki/Extension:Cite Cite] - for referencing and citations
+
}}
* [https://www.mediawiki.org/wiki/Extension:ImageMap ImageMap] - '''second priority''' needed for the interactive maps of rooms, eatery locations, etc
+
</pre>
* [https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Labeled Section Transclusion] - '''third priority''' needed for transcluding parts of template docs into cats
+
 
 +
== #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:14, 10 December 2014

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
}}