How to Create an Infobox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
===What are Infoboxes===
===What are Infoboxes===
Infoboxes are nothing more than a table saved as a template.  However there is one minor difference: the table has a classification in its title, like so in Wikitext and HTML:
Infoboxes are nothing more than a table saved as a template.  Infoboxes are usually in the upper right hand corner of an article to be seen right away after page has loaded.  Its main purpose is to give details so you don't have try to locate them in the article.  For an organization, it might have the leadership, times and places of meetings, etc.
::<nowiki>{| class=infobox .............. |}</nowiki> or in HTML
::<nowiki><table class=infobox>.........</table></nowiki>
 
===Purpose of Infoboxes===
Infoboxes are usually in the upper right hand corner of an article to be seen right away after page has loaded.  Its main purpose is to give details so you don't have try to locate them in the article.  For an organization, it might have the leadership, times and places of meetings, etc.


===How to create an Infobox===
===How to create an Infobox===
Again an infobox is a table.  If you know how to create tables in Wikitext or HTML, it is not difficult.  If you do not know Wikitext or HTLM you will need someone who does to help you.  If you would like to learn these two programs, see [[Wikitext - Lesson One|Wikitext]] or [[HTML and Wikitext - Lesson One|HTML Programming]].  Neither of these programming languages are difficult to learn and you can then impress your friends and children.
Again an infobox is a table.  If you know how to create tables in Wikitext or HTML, it is not difficult.  If you do not know Wikitext or HTLM you will need someone who does to help you.  If you would like to learn these two programs, see [[Wikitext - Lesson One|Wikitext]] or [[HTML and Wikitext - Lesson One|HTML Programming]].  Neither of these programming languages are difficult.




====Step One Create the table===
====Step One Create the table===
We will begin by creating a simple table in both Wikitext and HTML which will be displayed side by side so can see the difference.  It is recommended that you create infobox table in HTML as it is easier to do.
We are going to assume you know a little Wikitext and HTML in this tutorial.  We will begin by creating a simple table.  The coding will be displayed in both Wikitext and HTML side by side so can see the difference.  It is recommended that you create infobox table in HTML as there few problems as you will see.
 


However there is one minor difference: the table has a classification in its title, like so in Wikitext and HTML:
::<nowiki>{| class=infobox .............. |}</nowiki> or in HTML
::<nowiki><table class=infobox>.........</table></nowiki>


So let us create a infobox for an organization.  We will do it both in Wikitext and HTML.
So let us create a infobox for an organization.  We will do it both in Wikitext and HTML.