Interface administrators, smwadministrator, smwcurator, smweditor
82,369
edits
mNo edit summary |
|||
Line 7: | Line 7: | ||
|hours open=Mon 1pm - 6pm | |hours open=Mon 1pm - 6pm | ||
}} | }} | ||
==What are Infoboxes?== | |||
Infoboxes are nothing more than a table saved as a template. Infoboxes are usually in the upper right hand corner of an article. May contain information on leadership, meeting times and it's goals, etc. | Infoboxes are nothing more than a table saved as a template. Infoboxes are usually in the upper right hand corner of an article. May contain information on leadership, meeting times and it's goals, etc. | ||
==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 probably 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. | 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 probably 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=== | |||
*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. | *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. | ||
*For this lesson, we have set the width for our infobox to 200 pixels. It could be any width, but infoboxes are usually kept thin and 200 pixels is about right. | *For this lesson, we have set the width for our infobox to 200 pixels. It could be any width, but infoboxes are usually kept thin and 200 pixels is about right. | ||
Line 132: | Line 132: | ||
*The Wikitext looks a bit messy right now, but the substitution of the <font color="red"><nowiki>{{{!}}}</nowiki></font color> for the | will save a lot of headaches later. 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 the substitution of the <font color="red"><nowiki>{{{!}}}</nowiki></font color> for the | will save a lot of headaches later. 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 - More Coding=== | |||
*Next step is to turn the items into parameters. They are formed like so: <font color="red"><nowiki>{{{</nowiki></font color>name of parameter<font color="red"><nowiki>}}}</nowiki></font color>. We will add them to the table below. Notice that there are three opening and closing curly brackets around each one. | *Next step is to turn the items into parameters. They are formed like so: <font color="red"><nowiki>{{{</nowiki></font color>name of parameter<font color="red"><nowiki>}}}</nowiki></font color>. We will add them to the table below. Notice that there are three opening and closing curly brackets around each one. | ||
*It will be in these parameters that we will add the information to the infobox. | *It will be in these parameters that we will add the information to the infobox. |