Jump to content

How to Create an Infobox: Difference between revisions

m
Line 57: Line 57:


As it stands, the HTML coding is ok at this point, but the Wikitext has a problem.  Normally the Wikitext as is will work for any table, however, we are going to be installing <em>parameters</em> which require us to replace the |'s in the Wikitext with <nowiki>{{{!}}}</nowiki>.  The reason is a bit beyond the scope of this article but if you are interested [[Template:!|click here]]
As it stands, the HTML coding is ok at this point, but the Wikitext has a problem.  Normally the Wikitext as is will work for any table, however, we are going to be installing <em>parameters</em> which require us to replace the |'s in the Wikitext with <nowiki>{{{!}}}</nowiki>.  The reason is a bit beyond the scope of this article but if you are interested [[Template:!|click here]]
<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>{{{!}}}Name</nowiki><br><br>
<nowiki>{{{!}}}-</nowiki><br>
<nowiki>{{{!}}}Address:</nowiki><br>
<nowiki>{{{!}}}Address</nowiki><br><br>
<nowiki>{{{!}}}-</nowiki><br>
<nowiki>{{{!}}}Phone:</nowiki><br>
<nowiki>{{{!}}}Phone Number</nowiki><br><br>
<nowiki>{{{!}}}-</nowiki><br>
<nowiki>{{{!}}}Hours:</nowiki><br>
<nowiki>{{{!}}}Hours</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>Name<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 Number<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki><tr></nowiki><br>
<nowiki><td></nowiki>Hours:<nowiki></td></nowiki><br>
<nowiki><td></nowiki>Hours<nowiki></td></nowiki><br>
<nowiki></tr></nowiki><br>
<nowiki></table></nowiki>
</td>
</tr>
</table>


====Step Two - Add Styling to Infobox====
====Step Two - Add Styling to Infobox====