Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<noinclude>{{documentationpage}}</noinclude> | <noinclude>{{documentationpage}}</noinclude> | ||
== | Meta-template used for constructing [[:Category:Infobox templates|infobox templates]]. Infoboxes are fixed-format tables designed to be added to the top right-hand corner of articles to consistently present a summary of the article content. | ||
==Usage== | |||
<pre> | |||
{{Infobox | |||
|title ={{{title|empty}}} | |||
|titlehead =example | |||
|titleheadlink =examples | |||
|image ={{{image|empty}}} | |||
|image_px ={{{image_px|}}} | |||
|data = | |||
{{Datarow|Example label|Example content}} | |||
|extra =Example footnote | |||
}} | |||
</pre> | |||
Most of the parameters should usually be passed down from the "end" infobox (i.e. the ones directly used in articles). The exceptions are "technical" parameters which determine the look of the infobox itself (<code>columns</code>, <code>data</code>, <code>titlehead</code>, <code>titleheadlink</code>, <code>width</code>). | |||
===Parameters=== | |||
{{Docparam|name=columns|req=semi|default=2|desc= | |||
Amount of columns the infobox has. This may need to be changed when using certain [[#Components|components"]]. | |||
}} | |||
{{Docparam|name=data|req=yes|default=|desc= | |||
The content rows of the infobox, specified by using the templates listed in [[#Components|"Components"]] below. | |||
}} | |||
{{Docparam|name=desc ++ desc2|req=no|default=|desc= | |||
Description for the corresponding <code>image</code>, displayed below the image. | |||
}} | |||
{{Docparam|name=extra ++ extra2|req=no|default=|desc= | |||
Content of row(s) below main infobox content, i.e. below the <code>data</code> rows. | |||
}} | |||
{{Docparam|name=game >> game5|req=no|default=|desc= | |||
Game abbreviation(s); for accepted abbreviations please see {{tl|abb}}. These are used to create dynamic links for <code>titlehead</code>. For usage details, please see <code>titleheadlink</code> below. | |||
}} | |||
{{Docparam|name=icon|req=no|default=|desc= | |||
Small image in the main infobox header, to the right of <code>title</code>, <code>titlehead</code> and <code>subtitle</code>. | |||
}} | |||
{{Docparam|name=icon_px|req=no|default=55x55px|desc= | |||
Dimensions (height and width) of <code>icon</code>. | |||
}} | |||
{{Docparam|name=image ++ image2|req=no|default=|desc= | |||
Name of full-width image(s) (without "File:") displayed below main header and above components specified in <code>data</code>. | |||
}} | |||
{{Docparam|name=image_px ++ image2_px|req=no|default=(<code>width</code>-25)x(<code>width</code>-25)px|desc= | |||
Width of the corresponding <code>image</code>, e.g. "250px". If set to "noresize", the image will be displayed at its original size. Be careful not to make this wider than the infobox itself (see <code>width</code> below). | |||
}} | |||
{{Docparam|name=subtitle|req=no|default=|desc= | |||
Text in small font below <code>title</code>. | |||
}} | |||
{{Docparam|name=title|req=yes|default=|desc= | |||
Main title/"headline" of the infobox. | |||
}} | |||
{{Docparam|name=titlehead|req=no|default=|desc= | |||
Text in small font above <code>title</code>. Titleheads can be created dynamically by using the parameters <code>game</code>, <code>game2</code> etc (up to <code>game5</code>). For details, see <code>titleheadlink</code> below. | |||
}} | |||
{{Docparam|name=titleheadlink|req=no|default=|desc= | |||
This parameter links <code>titlehead</code> to an overview page (like [[Weapon]]). When used in conjunction with <code>game</code> parameters, it can be used to dynamically create links to game-specific overview pages (like [[Fallout 3 weapons]]. For the exact behaviour please see {{tl|abblink}}. | |||
This is useful if an infobox template is used for multiple games and you want it to link to the correct overview pages depending on which game it is used for. For example, setting <code>titlehead</code> to "weapon" and <code>titleheadlink</code> to "weapons", you can then let the editor in the respective article specify the <code>game</code> parameters and it will link to the correct overview page (e.g. "Fallout 3 weapons" if the editor enters "FO3"). | |||
}} | |||
{{Docparam|name=width|req=no|default=275|desc= | |||
Width of the infobox in pixels. Infoboxes should only be resized if really necessary in order to achieve a standardized look across all infoboxes. | |||
}} | |||
===Components=== | |||
For details on how to use the components see their respective pages. | |||
* {{tl|Datarow}} | |||
* {{tl|Datarow double}} | |||
* {{tl|Datarow optional}} | |||
* {{tl|Data2row}} | |||
* {{tl|Data3row}} | |||
* {{tl|Dataheader}} | |||
* {{tl|Dataheader optional}} | |||
See also: [[:Category:Infobox components]]. | |||
==Example== | |||
{{Infobox | |||
|title =Example title | |||
|titlehead =weapon | |||
|titleheadlink =weapons | |||
|image =Wiki.png | |||
|image_px =100px | |||
|data = | |||
{{Datarow|Example label|Example content}} | |||
|extra =Example footnote | |||
}} | |||
<pre> | <pre> | ||
{{infobox | {{infobox | ||
| | |title =Example title | ||
| | |titlehead =weapon | ||
| | |titleheadlink =weapons | ||
|image= | |image =Wiki.png | ||
|image_px= | |image_px =100px | ||
| | |data = | ||
| | {{Datarow|Example label|Example content}} | ||
| | |extra =Example footnote | ||
}} | }} | ||
</pre> | </pre> | ||
==Technical== | |||
* Auxiliary templates: {{tl|Abb}}, {{tl|Abblink}} | |||
* Standardized documentation for templates based on this one: {{tl|Infobox/doc/standard}} | |||
Version vom 20. Juni 2010, 20:51 Uhr
| Diese Seite enthält Informationen zur Verwendung für Vorlage:Infobox. |
Meta-template used for constructing infobox templates. Infoboxes are fixed-format tables designed to be added to the top right-hand corner of articles to consistently present a summary of the article content.
Usage
{{Infobox
|title ={{{title|empty}}}
|titlehead =example
|titleheadlink =examples
|image ={{{image|empty}}}
|image_px ={{{image_px|}}}
|data =
{{Datarow|Example label|Example content}}
|extra =Example footnote
}}
Most of the parameters should usually be passed down from the "end" infobox (i.e. the ones directly used in articles). The exceptions are "technical" parameters which determine the look of the infobox itself (columns, data, titlehead, titleheadlink, width).
Parameters
image, displayed below the image.data rows.titlehead. For usage details, please see titleheadlink below.title, titlehead and subtitle.icon.data.width-25)x(width-25)px")image, e.g. "250px". If set to "noresize", the image will be displayed at its original size. Be careful not to make this wider than the infobox itself (see width below).title.title. Titleheads can be created dynamically by using the parameters game, game2 etc (up to game5). For details, see titleheadlink below.titlehead to an overview page (like Weapon). When used in conjunction with game parameters, it can be used to dynamically create links to game-specific overview pages (like Fallout 3 weapons. For the exact behaviour please see {{abblink}}.
This is useful if an infobox template is used for multiple games and you want it to link to the correct overview pages depending on which game it is used for. For example, setting titlehead to "weapon" and titleheadlink to "weapons", you can then let the editor in the respective article specify the game parameters and it will link to the correct overview page (e.g. "Fallout 3 weapons" if the editor enters "FO3").Components
For details on how to use the components see their respective pages.
- {{Datarow}}
- {{Datarow double}}
- {{Datarow optional}}
- {{Data2row}}
- {{Data3row}}
- {{Dataheader}}
- {{Dataheader optional}}
See also: Category:Infobox components.
Example
Fehler im Ausdruck: Unerwarteter Operator <Fehler im Ausdruck: Unerwarteter Operator <Fehler im Ausdruck: Unerwarteter Operator <Fehler im Ausdruck: Unerwarteter Operator <Fehler im Ausdruck: Unerwarteter Operator <
Example title | ||||
{{infobox
|title =Example title
|titlehead =weapon
|titleheadlink =weapons
|image =Wiki.png
|image_px =100px
|data =
{{Datarow|Example label|Example content}}
|extra =Example footnote
}}
Technical
- Auxiliary templates: {{Abb}}, {{Abblink}}
- Standardized documentation for templates based on this one: {{Infobox/doc/standard}}