Interface administrators, smwadministrator, smwcurator, smweditor
82,369
edits
mNo edit summary |
|||
Line 124: | Line 124: | ||
====Step Two - More Coding==== | ====Step Two - More Coding==== | ||
<table style="border:1px solid blue; "> | |||
<tr> | |||
<td style="width:50%; border:1px solid blue; text-align:center; font-size:16pt; ">Wikitext</td> | |||
<td style="width:50%; border:1px solid blue; text-align:center; font-size:16pt; ">HTML</td> | |||
</tr> | |||
<tr> | |||
<td style="width:50%; border:1px solid blue; "> | |||
<nowiki>{{{{!}}} class="infobox"</nowiki> <br> | |||
<nowiki>{{{!}}}-</nowiki><br> | |||
<nowiki>{{{!}}}President:</nowiki><br> | |||
<nowiki>{{{!}}}president</nowiki><br><br> | |||
<nowiki>{{{!}}}-</nowiki><br> | |||
<nowiki>{{{!}}}Address:</nowiki><br> | |||
<nowiki>{{{!}}}address</nowiki><br><br> | |||
<nowiki>{{{!}}}-</nowiki><br> | |||
<nowiki>{{{!}}}Phone:</nowiki><br> | |||
<nowiki>{{{!}}}phone</nowiki><br><br> | |||
<nowiki>{{{!}}}-</nowiki><br> | |||
<nowiki>{{{!}}}Hours Open:</nowiki><br> | |||
<nowiki>{{{!}}}hours open</nowiki><br><br> | |||
<nowiki>{{{!}}}}</nowiki> | |||
</td> | |||
<td style="width:50%; border:1px solid blue; "> | |||
<nowiki><table class="infobox"></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td></nowiki>President:<nowiki></td></nowiki><br> | |||
<nowiki><td></nowiki>president<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td></nowiki>Address:<nowiki></td></nowiki><br> | |||
<nowiki><td></nowiki>address<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td></nowiki>Phone:<nowiki></td></nowiki><br> | |||
<nowiki><td></nowiki>phone<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td></nowiki>Hours Open:<nowiki></td></nowiki><br> | |||
<nowiki><td></nowiki>hours open<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki></table></nowiki> | |||
</td> | |||
</tr> | |||
</table> | |||
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. |