Template:Infobox resource: Difference between revisions
From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação Created page with "<onlyinclude><infobox> <title source="name"><default>{{PAGENAME}}</default></title> <image source="image"> <caption source="caption"/> </image> <group> <data source="produced"><label>Produced by</label></data> <data source="requires"><label>Requires</label></data><format>{{#if:{{{requires|}}}|{{{requires|}}}|''Nothing''}}</format> <data source="type"><label>Type</label></data> <data source="transported"><label>Transported by</label></data> </group>..." |
Load dark-theme PortableInfobox styles (Template:Infobox/styles.css) |
||
| (17 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
< | <templatestyles src="Infobox/styles.css" /> | ||
<title source="name"><default>{{PAGENAME}}</default></title> | <infobox type="item" layout="stacked"> | ||
<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="produced"><label>Produced by</label></data> | <data source="type"> | ||
<data source="requires"><label>Requires</label> | <label>Type</label> | ||
<format>{{#if:{{{type|}}}|{{{type}}}|[[Resource]]}}</format> | |||
<data source=" | </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"> | |||
</ | <data source="storage"> | ||
[[Category:Infobox templates]] | <label>Storage</label><format>[[#Storage|{{{storage}}}]]</format> | ||
</data> | |||
<data source="transport"> | |||
<label>Transport</label><format>[[#Transport|{{{transport}}}]]</format> | |||
</data> | |||
</group> | |||
<group> | |||
<data source="use"><label>[[#Uses|Uses]]</label></data> | |||
</group> | |||
</infobox> | |||
<noinclude>[[Category:Infobox templates]]{{Documentation}}</noinclude> | |||
Latest revision as of 03:45, 8 August 2026
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 =
}}


