Difference between pages "Community Leadership Summit X" and "User:Augur ./Templating Help"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
 
(Created a page in my own userspace to assist with creating templates.)
 
Line 1: Line 1:
CLSx@LCA
+
= 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.
  
The Community Leadership Summit began in 2009 in Portland, Oregon, USA, and has grown to be a key fixture on the open source event calendar. 
+
== #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
  
The Community Leadership Summit is an annual event conceived back in 2009 by Jono Bacon, who is currently the Senior Director of Community at XPRIZE, former community manager for the global Ubuntu community, and author of [http://www.artofcommunityonline.org/ The Art of Community] by O’Reilly. He has organized it each year since then. He put together the summit as a first step in helping community managers and leaders to define and refine their work, share knowledge and make connections in a vendor neutral way. CLSx events are local CLS style events that happen in locations around the world. FInd out more about CLS: http://www.communityleadershipsummit.com/about/
+
| if_it_is_that=    just do this
  
Other communities are learning from the way open source communities work. In turn we are starting to learn from them. Jono Bacon blew seeds into the wind at CLS this year to try to distribute the
+
| 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
}}