Difference between revisions of "Template:Infobox example"

From RimWorld Wiki
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:
{{#invoke:Infobox|infobox}}<noinclude>
+
<includeonly>{| class="infoboxtable"
 
+
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
{{documentation}}
+
|-
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
+
{{#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

Documentation icon Template documentation[view] [edit] [history] [purge]

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
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
}}