Template:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Kittymmeow No edit summary |
imported>Kittymmeow No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{doc/start}} | |||
This is a skeleton for infoboxes, for use in other infobox templates or standalone. | This is a skeleton for infoboxes, for use in other infobox templates or standalone. | ||
Uses [[Module:Infobox]]. | |||
Adapted from [https://minecraft.gamepedia.com/Template:Infobox Minecraft Wiki]. | Adapted from [https://minecraft.gamepedia.com/Template:Infobox Minecraft Wiki]. | ||
== Usage == | == Usage == | ||
{<nowiki/>{infobox | {<nowiki/>{infobox | ||
| title = box title, defaults to page's name | | title = box title, defaults to page's name | ||
Line 9: | Line 11: | ||
| defaultimagesize = Set the default size used by the above images. Defaults to 150px. | | defaultimagesize = Set the default size used by the above images. Defaults to 150px. | ||
| image''N''size = Sets the size of the corresponding image, overriding {{{defaultimagesize}}}. | | image''N''size = Sets the size of the corresponding image, overriding {{{defaultimagesize}}}. | ||
| imagearea = Completely replaces the functionality of the above 3 parameters, leaving a blank canvas below the title to put whatever | |||
| imagearea = Completely replaces the functionality of the above | |||
| rows = all rows go here using {{tl|infobox row}} | | rows = all rows go here using {{tl|infobox row}} | ||
| footer = optional centered footer that goes across both columns | | footer = optional centered footer that goes across both columns | ||
}} | }} | ||
==Example== | |||
<pre style="float:left;"> | |||
{{infobox | |||
| title = Infobox | |||
| image = Asphodel.png | |||
| rows = | |||
{{infobox row|label 1|data 1}} | |||
{{infobox row|label 2|data 2}} | |||
{{infobox row|label 3|data 3}} | |||
| footer = footer | |||
}}</pre> | |||
{{infobox | |||
| title = Infobox | |||
| image = Asphodel.png | |||
| rows = | |||
{{infobox row|label 1|data 1}} | |||
{{infobox row|label 2|data 2}} | |||
{{infobox row|label 3|data 3}} | |||
| footer = footer | |||
}} | |||
{{clear}} | |||
<includeonly> | <includeonly> | ||
<!-- Template categories/interwiki --> | <!-- Template categories/interwiki --> | ||
[[Category:Infobox templates|*]] | [[Category:Infobox templates|*]] | ||
</includeonly> | </includeonly> | ||
{{doc/end}} |
Latest revision as of 14:19, 23 May 2019
Documentation
[purge]
This is a skeleton for infoboxes, for use in other infobox templates or standalone.
Uses Module:Infobox.
Adapted from Minecraft Wiki.
Usage
{{infobox
| title = box title, defaults to page's name
| imageN = Images displayed below the title. Supports animation. First image defaults to {{{title}}}.png. Set to "none" to remove.
| defaultimagesize = Set the default size used by the above images. Defaults to 150px.
| imageNsize = Sets the size of the corresponding image, overriding {{{defaultimagesize}}}.
| imagearea = Completely replaces the functionality of the above 3 parameters, leaving a blank canvas below the title to put whatever
| rows = all rows go here using {{infobox row}}
| footer = optional centered footer that goes across both columns
}}
Example
{{infobox | title = Infobox | image = Asphodel.png | rows = {{infobox row|label 1|data 1}} {{infobox row|label 2|data 2}} {{infobox row|label 3|data 3}} | footer = footer }}