How to Create an Infobox: Difference between revisions

m
Line 252: Line 252:
*Notice that there are <font color="red">{{ }}</font color> at each end of the expression.  That means it is a mini template.
*Notice that there are <font color="red">{{ }}</font color> at each end of the expression.  That means it is a mini template.
*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>.
*After the colon you see the parameter repeated with the addition of a pipe after the word inside the {{{}}} and a pipe on the outside like so:<font color="red"><nowiki>{{{parameter|}}}|</nowiki></font color>.  We will not take the time to explain what all this code means but if you are interested see the footnote<ref>Why this coding</ref>.
*The next step is to put the coding for item you want to fill in with the infobox template like so:  
*The next step is to put the coding for item you want to fill in with the infobox template like so:  


Line 316: Line 317:
</table>
</table>
*What this coding means that if you do not put anything after the = sign on the President line, this item will not appear in the infobox.  So if you have a long infobox but few items to fill in, the infobox will shrink up to fit the information you have added.
*What this coding means that if you do not put anything after the = sign on the President line, this item will not appear in the infobox.  So if you have a long infobox but few items to fill in, the infobox will shrink up to fit the information you have added.
{{reflist}}
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits