How to Create an Infobox: Difference between revisions

m
Line 123: Line 123:
The Wikitext looks a bit messy right now, but this coding will save a lot of headaches later.  I'll notice that nothing had to be done to the HTML coding. Even though it looks like the Wikitext has less programming, it is a lot trickier to program infoboxes than in HTLM. That's why it is recommended to program infoboxes in HTML rather than Wikitext.
The Wikitext looks a bit messy right now, but this coding will save a lot of headaches later.  I'll notice that nothing had to be done to the HTML coding. Even though it looks like the Wikitext has less programming, it is a lot trickier to program infoboxes than in HTLM. That's why it is recommended to program infoboxes in HTML rather than Wikitext.


====Step Two - Add Styling to Infobox====
====Step Two - More Coding====
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