Difference between revisions of "Template:Infobox example"

From RimWorld Wiki
Jump to navigation Jump to search
(Needed to use Infobox)
 
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 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

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

This is just a generic infobox with a few sample fields.

Usage

{{Infobox example
| name     = 
| image    = 
| race     = 
| location = 
| source   = 
| reward   = 
| related  = 
| ID       =
}}

Example

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