Wikipedia:Infobox templates
From Wikipedia
An infobox template is an infobox that uses the template software feature.
Like static infoboxes, they are designed to present summary information about an article's subject, such that similar subjects have a uniform look and in a common format. However, the template technique allows updates of style and of common text from a central place, the template page.
These boxes are designed to be placed into main articles related to the topic area, and are usually associated with on-going WikiProjects. They have parameters; to work properly, the parameter values have to be specified when the template is inserted in the page. This allows each infobox to show information relevant to the article subject, while requiring only a minimal amount of coding within each article.
نيوليک |
[سمادول] Design and usage
The recommended process for creating an infobox template is to begin simply, and gather as many requirements as possible. It is highly suggested that the base format for a new template be tested as a static table first, then, once consensus is reached, moved into template format. It should be reviewed before being heavily used in articles to minimize re-work, in case the template or defined parameters, require modification. If new fields and parameters are added, then articles must be updated to reflect the new requirements. If parameters are renamed or removed, then many articles will likely be unaffected, since extraneous parameters are ignored.
For consistency the following rules apply:
- Standard suggested width of 300 pixels or 25 ems (300px or 25em in CSS).
- Inserted at the top of the article, and aligned to the right side. Using
class="infobox"
is a good start. - The top line should be reasonably bold, and contain the full (official) name of the item. This does not need to match the article's Wikipedia title. It should not contain a link. Avoid {{{PAGENAME}}} as pages may be moved for disambiguation.
- Name the template [[Template:Infobox Some subject]] (Somesubject should be in the singular and capitalized).
When creating a new infobox template, the content of Template:Infobox is a convenient starting point.
Parameters in infoboxes should be named, not numbered, to provide for future use. A parameter value can contain images (i.e. full image tags), or there can be parameters for parts of an image tag such as the image name, the size and the caption. In the latter case, if an image is not applicable or available, use a dummy image such as Image:No image.png.
If any parameter is not applicable, or no information is available, it must still be assigned a value; this can be the empty string, or, if it is the only thing in a table cell, use "some_field= ". The field will appear blank; the code is needed by some browsers for drawing the lines of the table itself properly.
Alternatively, there are ways to have a template selectively hide information or provide default values if not defined: For an example and explanation of how these methods apply to infoboxes, see {{Infobox}}.
Note that the Wikipedia:Avoid using meta-templates proposal suggests that you try to avoid having an infobox call another template. Instead, incorporate text from the other template directly into the infobox.
[سمادول] Interaction between multiple templates
Templates can be designed in a modular way, such that various combinations are possible. A combination may even appear on the page as a single infobox.
For example, if the WikiProject Saints group wanted to design a template based on their static Infobox, they could use Template:Infobox Biography, and design a project-specific template with only additional information, and the pages would render both "stacked" together.
[سمادول] List of templates
In many cases, to view a template properly, one has to look at the wikitext also. Therefore below the edit pages are linked. For viewing templates it is convenient to set the preferences to "Show preview on first edit".
The backlinks show the pages with the infobox.
Below, first the primary templates are listed; they are designed to provide high-level information appropriate to a broad subject area.
[سمادول] Anthropology and culture
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Ethnic groups | Ethnic groups |
[سمادول] Astronomy
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Full planet articles (including Pluto) | Astronomical objects |
Template:Ti | Minor planet articles | Astronomical objects |
Template:Ti | Minor planet stub articles | Astronomical objects |
Template:Ti | Exoplanet articles | Astronomical objects |
Template:Ti | Stub star articles | Astronomical objects |
Template:Ti | Individual star articles (this template is to be replaced by the one below) | Astronomical objects |
Template:Ti Template:Ti Template:Ti Template:Ti Template:Ti Template:Ti Template:Ti Template:Ti Template:Ti |
Individual star articles (flexible set of templates) | Astronomical objects |
Template:Ti | Supernovæ articles | Astronomical objects |
Template:Ti | Globular cluster articles | Astronomical objects |
Template:Ti | Galaxy articles | Astronomical objects |
[سمادول] Biology
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Articles on species and other groups of living things | Tree of Life |
Template:Ti | Articles on plant cultivars | Tree of Life |
Template:Ti | Dog breeds | Dog breeds |
[سمادول] کيميا
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Full chemical compound articles | Chemicals |
Template:Ti | Starting organic compound articles | Chemicals |
Template:Ti | Starting inorganic compound articles | Chemicals |
[سمادول] زده کړې
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Universities and colleges | Universities |
Template:Ti | Universities and colleges | Universities |
Template:Ti | Law schools | Universities |
[سمادول] Fiction
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | James Bond books | None / not known |
Template:Ti | James Bond movies | None / not known |
Template:Ti | Dilbert TV | None / Not Known |
Template:Ti | Forgotten Realms places | Forgotten Realms |
Template:Ti | Harry Potter characters | Template:HP Character Foreign Template:HP Forest Character Template:HP Elf Character |
Template:Ti | James Bond characters | None / not known |
Template:Ti | Doctor Who characters | None / not known |
Template:Ti | M*A*S*H characters | Television? |
Template:Ti | Star Trek characters | Star Trek? |
Template:Ti | Star Wars characters | None / not known |
Template:Ti | Star Wars vehicle specifications | None / not known |
Template:Ti | Stargate characters | Stargate |
Template:Ti | Transformers characters | None / not known |
Template:Ti | anime and manga articles. | Wikipedia:WikiProject Anime and manga |
Template:Ti | pages on single episodes of television series | Television episodes |
Template:Ti | A Series of Unfortunate Events characters | None / not known |
Template:Ti | A Series of Unfortunate Events organisations | None / not known |
[سمادول] Geography
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | River articles | Rivers |
Template:Ti | City articles | Cities |
Template:Ti | Town articles | None |
Template:Ti | Massachusetts town articles | Massachusetts |
Template:Ti | Country and nation articles | Countries |
Template:Ti | Country and nation articles | Countries |
Template:Ti | Country and nation articles | Countries |
Template:Ti | US County articles | None |
Template:Ti | Counties of the United States | None |
Template:Ti | Provinces of Cameroon | None |
Template:Ti | Political Divisions of Venezuela; Venezuelan State | None |
Template:Ti | Political Divisions of Venezuela; Venezuelan State | None |
Template:Ti | Regions of Peru | None |
Template:Ti | U.S. state articles | U.S. States |
Template:Ti | any place outside London | None |
Template:Ti | any place outside London with map | None |
Template:Ti | any place outside London in a parished area | None |
Template:Ti | any place in a unitary authority | None |
Template:Ti | any place in London | London |
Template:Ti | any place in Wales | None |
Template:Ti | any place in Scotland | None |
Template:Ti | Dutch municipality articles | Dutch municipalities |
Template:Ti | States and territories of Australia | Australian politics |
Template:Ti | Australian city articles | None |
Template:Ti | German city articles | None |
Template:Ti | Prefectures of Greece | None |
Template:Ti | Micronations | None |
Template:Ti | National parks and other protected places | Protected areas |
[سمادول] Industry
Name | Where to use | Associated WikiProject |
|
---|---|---|---|
Template:Ti | Business organization articles | Companies |
[سمادول] Media and journalism
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Project internal template | Media Project templates |
Template:Ti | Journalism articles | Journalism Project |
Template:Ti | Infobox for television stations | Television Stations |
Template:Ti | Radio stations | Radio Stations |
Template:Ti | Information box for articles about websites | None |
[سمادول] خلک
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti (deprecated?) | Articles about professional baseball players | Baseball players |
Template:Ti | MLB-specific template (deprecated) | Baseball players |
Template:Ti | Newer version of above template | Baseball players |
Template:Ti | Articles about professional tennis players | Tennis |
Template:Ti | Articles describing people (living or deceased) | Biography |
Template:Ti | Politician articles in place of Infobox Biography | none |
Template:Ti | Popes in place of Infobox Biography | None |
Template:Ti | U.S. Presidents in place of Infobox Biography | None |
Template:Ti | British Prime Ministers in place of Infobox Biography | Wikipedia:WikiProject British Government |
Template:Ti | Playboy Playmates in place of Infobox Biography | None |
Template:Ti | Senator in place of Infobox Biography | None |
Template:Ti | Articles about ethnic groups etc | Ethnic groups |
[سمادول] Transportation
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Airline articles | Airlines |
Template:Ti | Airport articles | Airports |
Template:Ti | California State Route articles | California State Highway Project |
Template:Ti | Washington State Route articles | Washington State Highway Project |
Template:Ti | Kentucky State Route articles | Kentucky State Highway Project |
Template:Ti | U.S. Interstate Highway | U.S. Interstate Highway Project |
Template:Ti | Missouri State Highway articles | Missouri State Highway Project |
Template:Ti | U.S. Highway | U.S. Highway Project |
Template:Ti | Texas State Highway articles | |
Template:Ti | New Hampshire State Highway articles | New Hampshire State Highway Project |
Template:Ti | Roads | |
Template:Ti Template:Ti |
Railroads/Railways (second for standard gauge) | Trains |
Template:Ti | Rail companies |
[سمادول] بېلابېل
Name | Where to use | Associated WikiProject |
---|---|---|
Template:Ti | Any article about a music album | Albums |
Template:Ti | Taxonavigation box for animal families (first draft) | None |
Template:Ti | Infobox for bands | None |
Template:Ti | Infobox for books | Books & Novels |
Template:Ti | political parties of Canada | |
Template:Ti | 88 standard constellations | Constellations |
Template:Ti | Computer and video game articles | Computer and video games |
Template:Ti | Game descriptions | Games |
Template:Ti | Arcade game descriptions | |
Template:Ti | Machinima productions | None |
Template:Ti | Movies and films | Films |
Template:Ti | Musical genre articles | Music genres |
Template:Ti | Computer software | Software |
Template:Ti | Top level domain | None |
Template:Ti | Super Bowl games | National Football League |
Template:Ti | Television series | Television |
Template:Ti | Space mission articles | |
Template:Ti | Military conflicts (battles, wars, etc.) | Military history |
Template:Ti | Military units | Military history |
[سمادول] دا هم وګورۍ
- List of infobox templates
- Category:Articles needing an infobox
- Category:Infobox templates
These pages describe other types of templates:
- Wikipedia:Template messages are used primarily to insert simple "boilerplate" messages for Wikipedia maintenance or editing purposes.
- Wikipedia:Navigational templates are article footers designed to provide links to several related articles.
- Wikipedia:MediaWiki interface messages are reserved for internal system use, and can only be modified by administrators.