Template:Infobox resource: Difference between revisions
From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação mNo edit summary |
No edit summary |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<infobox type="item" layout="stacked"> | |||
<title source="name"><default>{{PAGENAME}}</default></title> | <title source="name"> | ||
<default>{{PAGENAME}}</default> | |||
</title> | |||
<image source="image"> | <image source="image"> | ||
<!--<default>{{PAGENAME}}.png</default>--> | |||
<caption source="caption"/> | <caption source="caption"/> | ||
</image> | </image> | ||
<group> | <group> | ||
<data source="type"><label>Type</label><format>{{#if:{{{type|}}}|{{{type}}}|[[Resource]]}}</format></data> | <data source="type"> | ||
<data source="produced"><label>Produced by</label></data> | <label>Type</label> | ||
<data source="requires"><label>Requires</label><format>{{#if:{{{requires|}}}|{{{requires}}}|''Nothing''}}</format></data> | <format>{{#if:{{{type|}}}|{{{type}}}|[[Resource]]}}</format> | ||
</data> | |||
<data source="produced"> | |||
<label>Produced by</label> | |||
</data> | |||
<data source="requires"> | |||
<label>Requires</label> | |||
<format>{{#if:{{{requires|}}}|{{{requires}}}|''Nothing''}}</format> | |||
</data> | |||
<data source="research"> | |||
<label>Related researches</label> | |||
</data> | |||
</group> | </group> | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<data source="storage"><label>Storage</label><format>[[#Storage|{{{storage}}}]]</format></data> | <data source="storage"> | ||
<data source="transport"><label>Transport</label><format>[[#Transport|{{{transport}}}]]</format></data> | <label>Storage</label><format>[[#Storage|{{{storage}}}]]</format> | ||
</data> | |||
<data source="transport"> | |||
<label>Transport</label><format>[[#Transport|{{{transport}}}]]</format> | |||
</data> | |||
</group> | </group> | ||
<group> | <group> | ||
<data source="use"><label>[[#Uses|Uses]]</label></data> | <data source="use"><label>[[#Uses|Uses]]</label></data> | ||
</group> | </group> | ||
</infobox | </infobox> | ||
<noinclude> | <noinclude>[[Category:Infobox templates]]{{Documentation}}</noinclude> | ||
[[Category:Infobox templates]] | |||
{{Documentation}} | |||
</noinclude> |
Latest revision as of 04:07, 10 October 2024
Infobox template for Resources in game.
Usage
Place the following at the top of the article, below any page management templates:
{{Infobox resource <!-- insert parameters --> }}
Parameters
Specific parameters
type
Type of this resource.
produced
Location where is this resouce produced at.
requires
Resource required to produce this resource.
storage
The type of storage this resource requires.
transport
The type of transport this resource requires.
use
It's uses in-game.
research
Researches related to this resource.
General infobox parameters
image up to image5
File name of image(s) (without "File:") to be displayed below main header and above main infobox content.
caption
Description for
image
, displayed below the image.name
Main title/"headline" of the infobox. By default, the name of the current page without any disambiguation suffixes (i.e. terms in brackets at the end) is used.
Example
{{Infobox resource |name =Boards |image =boards.png |type =Construction material |produced =[[Sawmill]] |requires =[[Wood]] |storage =Open storage |transport =Open hull |use =Construction<br>Trading |research =None }}
Copy/paste
{{Infobox resource |name = |image = |type = |produced = |requires = |storage = |transport = |use = |research = }}