Template:Infobox resource: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação
mNo edit summary
No edit summary
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
<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="produced"><label>Produced by</label></data>
<data source="type">
<data source="requires"><label>Requires</label><format>{{#if:{{{requires|}}}|{{{requires|}}}|''Nothing''}}</format></data>
<label>Type</label>
<data source="type"><label>Type</label></data>
<format>{{#if:{{{type|}}}|{{{type}}}|[[Resource]]}}</format>
<data source="transported"><label>Transported by</label></data>
</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>
    </infobox>
<group layout="horizontal">
</onlyinclude>
<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 04:07, 10 October 2024

Template documentation (for the template shown above, sometimes hidden or invisible)

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

Neutral
type
Type of this resource.
Neutral
produced
Location where is this resouce produced at.
Neutral
requires
Resource required to produce this resource.
Neutral
storage
The type of storage this resource requires.
Neutral
transport
The type of transport this resource requires.
Neutral
use
It's uses in-game.
Neutral
research
Researches related to this resource.

General infobox parameters

Neutral
image up to image5
File name of image(s) (without "File:") to be displayed below main header and above main infobox content.
Neutral
caption
Description for image, displayed below the image.
Neutral
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  =
}}
Documentation transcluded from Template:Infobox resource/doc.