How to Create an Infobox: Difference between revisions

m
Line 251: Line 251:
:::<font color="red"><nowiki>{{#if:{{{president|}}}|</nowiki></font color="red"><nowiki><td>President</td><td>{{{president}}}</nowiki><font color="red">}}</font color></td>
:::<font color="red"><nowiki>{{#if:{{{president|}}}|</nowiki></font color="red"><nowiki><td>President</td><td>{{{president}}}</nowiki><font color="red">}}</font color></td>
<br><br>
<br><br>
This coding looks a bit intimidating but it is really not hard<ref>The coding is called Parser functions.  You can read more about them at [[Help:Magic words#Parser functions]] and [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions]</ref>.   
This coding looks a bit intimidating but it is really not hard<ref>The coding is called Parser functions.  You can read more about them at [[Help:Magic words#Parser functions]] and [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions Parser Functions]</ref>.   
*Notice that there are <font color="red">{{ }}</font color> at each end of the expression.   
*Notice that there are <font color="red">{{ }}</font color> at each end of the expression.   
*After the first set of <font color="red">{{</font color> notice <font color="red">#if:</font color> which consists of a pound sign <font color="red">#</font color>, the word <font color="red">if</font color> and a colon <font color="red">:</font color>.
*After the first set of <font color="red">{{</font color> notice <font color="red">#if:</font color> which consists of a pound sign <font color="red">#</font color>, the word <font color="red">if</font color> and a colon <font color="red">:</font color>.
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits