How to Create an Infobox: Difference between revisions

m
Line 179: Line 179:
</table>
</table>
Notice all we have done is enclose the parameter we want to place information with opening and closing {{{ }}}.  That is all.  It will be in the parameters where we put the information that we see in the infobox.
Notice all we have done is enclose the parameter we want to place information with opening and closing {{{ }}}.  That is all.  It will be in the parameters where we put the information that we see in the infobox.
===Step Three - Placing the Infobox===
To place this infobox which again is nothing more than a template with the class of "infobox," we type the usual coding in which our example is <nowiki>{{Infobox sample}}</nowiki>.  However, it will be displayed as such:{{Infobox sample}}


===Step Three - Limiting Parameters===
===Step Three - Limiting Parameters===
Some infoboxes can get very long.  If you list all the attributes of an organization can possibly there can be quit a few items listed.  What if you placing an infobox for a small organization, but are using the infobox for a large organizations with many offices you could end up with an infobox taking up a lot of room on the page with little information in it.  Maybe the organization does even have a phone number.  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.
Some infoboxes can get very long.  If you list all the attributes of an organization can possibly there can be quit a few items listed.  What if you placing an infobox for a small organization, but are using the infobox for a large organizations with many offices you could end up with an infobox taking up a lot of room on the page with little information in it.  Maybe the organization does even have a phone number.  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.
Interface administrators, smwadministrator, smwcurator, smweditor
82,369

edits