Difference between revisions of "Template:Infobox example"
Jump to navigation
Jump to search
(Needed to use Infobox) |
m (Pangaea moved page Template:Infobox to Template:Infobox example: A more fitting name) |
||
(3 intermediate revisions by the same user not shown) | |||
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>Race</div> {{!!}} {{{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> |
Latest revision as of 19:01, 4 August 2019
This is just a generic infobox with a few sample fields.
Usage[edit]
{{Infobox example | name = | image = | race = | location = | source = | reward = | related = | ID = }}
Example[edit]
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. |