Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Infobox character: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
footer
fixed nocargo
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}}}
{{noCargo}}<includeonly><infobox>
{{infobox data row | Race | {{{race|}}}}}
  <title source="title">
{{infobox data row | Location |{{{location|}}}}}
    <default>{{PAGENAME}}</default>
{{infobox footer}}
  </title>
[[Category:Characters]]</includeonly><noinclude>
  <image source="image" />
This is an infobox template for [[characters]].
  <data source="caption"/>
  <data source="kingdom">
    <label>Kingdom</label>
    <format>{{kingdomDisplay|{{{kingdom|}}}|1}}</format>
  </data>
  <data source="location">
    <label>Location</label>
  </data>
</infobox>
[[Category:Characters]]
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Characters
|name = {{{title|{{PAGENAME}}}}}
|kingdom = {{{kingdom|}}}
}}}}</includeonly><noinclude>This is an infobox template for [[characters]].
Use it on character pages, e.g. like this
Use it on character pages, e.g. like this
<pre>
<pre>
{{infobox character
{{infobox character
| name = Hermit
| title =
| image =
| caption =
| kingdom =
| location =
}}
</pre>
<pre>
{{infobox character
| title = Hermit
| image = Hermit.png
| image = Hermit.png
| race = Human
| caption = gives a unit
| location = Day 2
| kingdom = Human
| location = visits on day 2
}}
}}
</pre>
</pre>
{{infobox character
{{infobox character
| name = Hermit
| title = Hermit
| image = Hermit.png
| image = Hermit.png
| race = Human
| caption = gives a unit
| location = Day 2
| kingdom = Human
| location = visits on day 2
}} {{noCargo}}
{{#cargo_declare:_table=Characters
|name=String
|kingdom=String
}}
}}
[[Category:infobox templates]]</noinclude>
 
[[Category:infobox templates]]
[[Category:Cargo storing templates]]</noinclude>

Latest revision as of 22:27, 15 April 2026

This is an infobox template for characters. Use it on character pages, e.g. like this

{{infobox character
| title = 
| image = 
| caption = 
| kingdom = 
| location = 
}}
{{infobox character
| title = Hermit
| image = Hermit.png
| caption = gives a unit
| kingdom = Human
| location = visits on day 2
}}

This template defines the table "Characters". View table.