Interface administrators, smwadministrator, smwcurator, smweditor
82,369
edits
mNo edit summary |
|||
| Line 249: | Line 249: | ||
:*HTML:<font color="red"><nowiki>{{#if:{{{president|}}}|</nowiki></font color="red"><nowiki><td>President</td><td>{{{president}}}</nowiki><font color="red">}}</font color></td> | :*HTML:<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. | 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>. | ||
*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>. | ||