How to Create an Infobox: Difference between revisions

m
Line 244: Line 244:
*If the infobox is long but you only have a small organization, you could end up with an infobox taking up a lot of room on the page but with little information in it.  Maybe the organization does not even have a phone number like in our example here.
*If the infobox is long but you only have a small organization, you could end up with an infobox taking up a lot of room on the page but with little information in it.  Maybe the organization does not even have a phone number like in our example here.
*Well it is possible to code the infobox so that the item "phone" does not appear if there is none.  It is done simply by adding this coding to the parameter.   
*Well it is possible to code the infobox so that the item "phone" does not appear if there is none.  It is done simply by adding this coding to the parameter.   
*This is an example of adding the additional code to the President line:<br>
*This is an example of adding the additional code to the President line:<br><br>
:*Wikitext:<font color="red"><nowiki>{{#if:{{{president|}}}|</nowiki></font color="red"><nowiki>{{{!}}}President{{{!}}}{{{president}}}</nowiki><font color="red">}}</font color></td>
:*Wikitext:<font color="red"><nowiki>{{#if:{{{president|}}}|</nowiki></font color="red"><nowiki>{{{!}}}President{{{!}}}{{{president}}}</nowiki><font color="red">}}</font color></td>


Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits