Jump to content

Template:Infobox/doc: Difference between revisions

m 1 revision imported: Add Infobox stuff and templates
m Text replacement - "[[WP:" to "[[wikipedia:WP:"
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- 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 [[Wikipedia:Wikidata]]) -->
{{Distinguish|Template:Userbox}}
{{Distinguish|Template:Userbox}}
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
{{Lua|Module:Infobox}}
{{Lua|Module:Infobox}}
{{Parameter names example
{{Parameter names example
Line 17: Line 16:
}}
}}


'''[[Template:Infobox]]''' 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.
'''[[Template:Infobox]]''' 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 [[wikipedia:WP:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific infoboxes.


== Usage ==
== Usage ==
Line 66: Line 65:
<syntaxhighlight lang="wikitext" style="overflow: auto;">
<syntaxhighlight lang="wikitext" style="overflow: auto;">
{{Infobox
{{Infobox
  | name      = {{subst:PAGENAME}}
  | name      = Infobox/doc
  | title      = Text in caption over infobox
  | title      = Text in caption over infobox
  | subheader  = Subheader of the infobox
  | subheader  = Subheader of the infobox
Line 83: Line 82:
<syntaxhighlight lang="wikitext" style="overflow: auto;">
<syntaxhighlight lang="wikitext" style="overflow: auto;">
{{Infobox
{{Infobox
  | name      = {{subst:PAGENAME}}
  | name      = Infobox/doc
  | above      = Text in uppermost cell of infobox
  | above      = Text in uppermost cell of infobox
  | subheader  = Subheader of the infobox
  | subheader  = Subheader of the infobox
Line 93: Line 92:


=== 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 [[wikipedia:WP:ALT]] for more on alt text.
; caption(n) : Text to put underneath the images.
; caption(n) : Text to put underneath the images.


Line 257: Line 256:


=== 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 [[wikipedia:WP: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 683: Line 682:
<syntaxhighlight lang="wikitext" style="overflow: auto;">
<syntaxhighlight lang="wikitext" style="overflow: auto;">
{{Infobox
{{Infobox
| name          = {{subst:PAGENAME}}
| name          = Infobox/doc
| child          = {{{child|}}}
| child          = {{{child|}}}
| subbox        = {{{subbox|}}}
| subbox        = {{{subbox|}}}
Line 1,231: Line 1,230:


==See also==
==See also==
* [[Module:Infobox]], the [[WP:LUA|Lua]] module on which this template is based
* [[Module:Infobox]], the [[wikipedia:WP:LUA|Lua]] module on which this template is based
* [[Module:Check for unknown parameters]]
* [[Module:Check for unknown parameters]]
* {{tl|Infobox3cols}}
* {{tl|Infobox3cols}}