Template:Structure: Difference between revisions
Mastergalen (talk | contribs) (Created page with "<includeonly>{{infobox common | title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | imagearea = [[File:{{#if: {{{imagearea|}}} | {{{imagearea}}} | {{#ifexist: F...") |
No edit summary |
||
Line 3: | Line 3: | ||
| imagearea = [[File:{{#if: {{{imagearea|}}} | {{{imagearea}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No_image.png}} }} | {{ #if: {{{imagesize|}}} | {{{imagesize}}} | }} ]] | | imagearea = [[File:{{#if: {{{imagearea|}}} | {{{imagearea}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No_image.png}} }} | {{ #if: {{{imagesize|}}} | {{{imagesize}}} | }} ]] | ||
| rows = | | rows = | ||
{{infobox row|label= | {{infobox row|label=Category|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | ||
{{infobox row|label=First Appearance|field={{ #if: {{{appearance|}}} | {{{appearance}}} | ? }} }} | {{infobox row|label=First Appearance|field={{ #if: {{{appearance|}}} | {{{appearance}}} | ? }} }} | ||
}}[[Category:Structures]]</includeonly> | }}[[Category:Structures]]</includeonly> |
Revision as of 10:47, 21 February 2014
Usage
The example on the right was made using this code:
{{structure |imagearea=Market_img_400.jpg |imagesize=290px |type = Storage, Markets, and Trade |appearance=1.0.0 |workers=25 [[vendor]]s |capacity=10,000 [[weight unit]]s }}
Name | Description | Default value |
imagearea |
The filename of the image to display. | No image.png. |
imagesize |
The horizontal width of the image, in pixels. For example: 290px. | image width. |
type |
The category to which the structure belongs. | ? |
appearance |
The version number of the first release in which this structure appeared. | ? |
workers |
The maximum number of workers and their occupation in this structure. For example: 25 vendors. | Not visible. |
capacity |
The maximum capacity of this structure. It can be items, citizens, etc.. For example: 10,000 weight units. | Not visible. |
maxproduction |
Depending on the building type, either the maximum amount of goods that can be produced in building's lifespan or, if the building's resources aren't finite, the amount of goods that can be produced in one year. For example: 3,0000 fish/yr or 100,000 stone. | Not visible. |
See also
The above documentation is transcluded from Template:Structure/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
Cookies help us deliver our services. By using our services, you agree to our use of cookies.