Template:Infobox/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{distinguish|Template:Userbox}} {{High-use|3408796|all-pages=yes}} {{Lua|Module:Infobox}} {{Parameter names example |name={{PAGENAME}} <!--|child |subbox |decat--> |title |above |subheader |subheader1 |subheader2={{{subheader2}}}<br/>...... |image|caption |image1|caption1 |image2|caption2={{{caption2}}}<br/>........")
 
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Stiles.casa Wiki:Wikidata]]) -->
{{distinguish|Template:Userbox}}
{{distinguish|Template:Userbox}}
{{High-use|3408796|all-pages=yes}}
{{High-use|3408796|all-pages=yes}}
Line 17: Line 17:
}}
}}


This template is intended as a meta template: a template used for constructing other templates. '''Note''': In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. [[Help:Infobox]] contains an introduction about the recommended content and design of infoboxes; [[Wikipedia:Manual of Style/Infoboxes]] contains additional style guidelines. See [[WP:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific infoboxes.
This template is intended as a meta template: a template used for constructing other templates. '''Note''': In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. [[Help:Infobox]] contains an introduction about the recommended content and design of infoboxes; [[Stiles.casa Wiki:Manual of Style/Infoboxes]] contains additional style guidelines. See [[SW:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific infoboxes.


== Usage ==
== Usage ==
Line 52: Line 52:
There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts it as a caption on top of the table. You can use them both together, or just one or the other, or neither (though this is not recommended):
There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts it as a caption on top of the table. You can use them both together, or just one or the other, or neither (though this is not recommended):


; title : Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For [[Wikipedia:Manual of Style/Accessibility#Tables|accessibility reasons]], this is the most recommended alternative.
; title : Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For [[Stiles.casa Wiki:Manual of Style/Accessibility#Tables|accessibility reasons]], this is the most recommended alternative.
; above : Text to put within the uppermost cell of the table.
; above : Text to put within the uppermost cell of the table.
; subheader(n) : additional title fields which fit below {{{title}}} and {{{above}}}, but before images.
; subheader(n) : additional title fields which fit below {{{title}}} and {{{above}}}, but before images.
Line 91: Line 91:


=== Illustration images ===
=== Illustration images ===
; image(n) : images to display at the top of the template. Use full image syntax, for example <nowiki>[[File:example.png|200px|alt=Example alt text]]</nowiki>. Image is centered by default. See [[WP:ALT]] for more on alt text.
; image(n) : images to display at the top of the template. Use full image syntax, for example <nowiki>[[File:example.png|200px|alt=Example alt text]]</nowiki>. Image is centered by default. See [[SW:ALT]] for more on alt text.
; caption(n) : Text to put underneath the images.
; caption(n) : Text to put underneath the images.


Line 247: Line 247:


=== Italic titles ===
=== Italic titles ===
Titles of articles with infoboxes may be made italic, in line with [[WP:ITALICTITLE]], by passing the <code>italic title</code> parameter.
Titles of articles with infoboxes may be made italic, in line with [[SW:ITALICTITLE]], by passing the <code>italic title</code> parameter.


* Turn on italic titles by passing {{para|italic title|<nowiki>{{{italic title|}}}</nowiki>}} from the infobox.
* Turn on italic titles by passing {{para|italic title|<nowiki>{{{italic title|}}}</nowiki>}} from the infobox.
Line 306: Line 306:
...and so forth. "above" and "title" can also be given classes, since these are usually used to display the name of the subject of the infobox.
...and so forth. "above" and "title" can also be given classes, since these are usually used to display the name of the subject of the infobox.


See [[Wikipedia:WikiProject Microformats]] for more information on adding microformat information to Wikipedia, and [[microformat]] for more information on microformats in general.
See [[Stiles.casa Wiki:WikiProject Microformats]] for more information on adding microformat information to Stiles.casa Wiki, and [[microformat]] for more information on microformats in general.


== Examples ==
== Examples ==
Line 568: Line 568:
Note that omitting the {{para|title}} parameter, and not including any text preceding the embedded infobox, may result in spurious blank table rows, creating gaps in the visual presentation. The garbage output can be suppressed using {{para|rowstyleN|display: none}}, replacing N with the data/header number.
Note that omitting the {{para|title}} parameter, and not including any text preceding the embedded infobox, may result in spurious blank table rows, creating gaps in the visual presentation. The garbage output can be suppressed using {{para|rowstyleN|display: none}}, replacing N with the data/header number.


[[Wikipedia:WikiProject Infoboxes/embed]] includes some links to Wikipedia articles which include infoboxes embedded within other infoboxes.
[[Stiles.casa Wiki:WikiProject Infoboxes/embed]] includes some links to Stiles.casa Wiki articles which include infoboxes embedded within other infoboxes.


== Subboxes ==
== Subboxes ==
Line 759: Line 759:


== Porting to other MediaWikis ==
== Porting to other MediaWikis ==
The infobox template requires the [[:mw:Extension:Scribunto|Scribunto]] extension. [[Wikipedia:WikiProject Transwiki|WikiProject Transwiki]] has a version of this template that has been modified to work on other MediaWikis.
The infobox template requires the [[:mw:Extension:Scribunto|Scribunto]] extension. [[Stiles.casa Wiki:WikiProject Transwiki|WikiProject Transwiki]] has a version of this template that has been modified to work on other MediaWikis.


== TemplateData ==
== TemplateData ==
Line 788: Line 788:


==See also==
==See also==
* [[Module:Infobox]], the [[WP:LUA|Lua]] module on which this template is based
* [[Module:Infobox]], the [[SW:LUA|Lua]] module on which this template is based
* [[Module:Check for unknown parameters]]
* [[Module:Check for unknown parameters]]
* {{tl|Infobox3cols}}
* {{tl|Infobox3cols}}
* {{tl|Navbox}} and {{tl|Sidebar}}
* {{tl|Navbox}} and {{tl|Sidebar}}
* [[Wikipedia:List of infoboxes|List of infoboxes]]
* [[Stiles.casa Wiki:List of infoboxes|List of infoboxes]]
* [[:Module:InfoboxImage]]
* [[:Module:InfoboxImage]]


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
[[Category:Infobox templates| ]]
[[Category:Infobox templates| ]]
[[Category:Wikipedia metatemplates|Infobox]]
[[Category:Stiles.casa Wiki metatemplates|Infobox]]
[[Category:Templates generating microformats]]
[[Category:Templates generating microformats]]
[[Category:Templates that add a tracking category]]
[[Category:Templates that add a tracking category]]
[[Category:Templates based on the Infobox Lua module]]
[[Category:Templates based on the Infobox Lua module]]
}}</includeonly>
}}</includeonly>

Navigation menu