Difference between revisions of "Template:Infobox example"
Jump to navigation
Jump to search
(Needed to use Infobox) |
|||
Line 1: | Line 1: | ||
− | {{# | + | <includeonly>{| class="infoboxtable" |
− | + | ! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}} | |
− | {{ | + | |- |
− | <!-- | + | {{#if: {{{image|}}} | ! colspan="2" {{!}} [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]] | [[Category:Pages that need images]] }} |
− | </noinclude> | + | |- |
+ | ! colspan="2" class="infoboxdescription" | Details | ||
+ | |- | ||
+ | {{#if: {{{race|}}} | {{!}} <div style="width:40%">Race</div> {{!}} Race {{!!}} {{{race}}} }} | ||
+ | |- | ||
+ | {{#if: {{{location|}}} | {{!}} <div>Location</div> {{!!}} {{{location}}} }} | ||
+ | |- | ||
+ | {{#if: {{{source|}}} | {{!}} <div>Source</div> {{!!}} {{{source}}} }} | ||
+ | |- | ||
+ | {{#if: {{{reward|}}} | {{!}} <div>Reward</div> {{!!}} {{{reward}}} }} | ||
+ | |- | ||
+ | {{#if: {{{related|}}} | {{!}} <div>Related</div> {{!!}} {{{related}}} }} | ||
+ | |- | ||
+ | {{#if: {{{ID|}}} | {{!}} <div>ID</div> {{!!}} {{{ID}}} }} | ||
+ | |}</includeonly><noinclude> | ||
+ | {{documentation}}</noinclude> |
Revision as of 05:23, 4 August 2019
This is just a generic infobox with a few sample fields.
Usage
{{Infobox example | name = | image = | race = | location = | source = | reward = | related = | ID = }}
Example
Phoebe | |
---|---|
Details | |
Race | Human |
Location |
RimWorld |
Source |
Tynan's inner circle |
Reward |
Happiness |
Related |
Calming bliss |
ID |
Phoebe_ID |
{{Infobox example | name = Phoebe | image = Phoebe friendly.png | race = Human | location = RimWorld | source = Tynan's inner circle | reward = Happiness | related = Calming bliss | ID = Phoebe_ID }}
The above documentation is transcluded from Template:Infobox example/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |