Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
(Define optional parameter + Explain the use of the template) |
(Use a generic template for text with icon) |
||
Line 39: | Line 39: | ||
|- | |- | ||
| features | | features | ||
| (optional) Features of the game element (like: producing heat, need energy, ...). Feel free to use one or multiple element with the [[Template: | | (optional) Features of the game element (like: producing heat, need energy, ...). Feel free to use one or multiple element with the [[Template:IconText|icon-text template]]. | ||
|- | |- | ||
| | | build_req | ||
| (optional) Define | | (optional) Define condition for a structure to be build (floor type, on wall, ...). Feel free to use one or multiple element with the [[Template:IconText|icon-text template]]. | ||
|} | |} | ||
Line 52: | Line 52: | ||
| picture_alt=Ribosome<br/> | | picture_alt=Ribosome<br/> | ||
| picture_caption=Ribosome<br/> | | picture_caption=Ribosome<br/> | ||
| features=<nowiki>{{ | | features=<nowiki>{{icontext|icon=heating|text=Produce heat|oneline}}</nowiki><br/> | ||
| | | build_req=<nowiki>{{icontext|icon=intracell|text=Intracellular|oneline}}</nowiki><br/> | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 14:56, 25 May 2024
Generic infobox for game elements (building, resources, ...)
Parameters
Name | Description |
---|---|
name | Name of the game element. |
categories | Categories of the game element (type, category, color, ...). Feel free to use one or multiple element with the categories template. |
picture_file | (optional) File use to illustrate the infobox. Format: File:filename.ext. |
picture_alt | (optional) Alternative text use if the picture can't load. |
picture_caption | (optional) Text display while hovering the picture. |
features | (optional) Features of the game element (like: producing heat, need energy, ...). Feel free to use one or multiple element with the icon-text template. |
build_req | (optional) Define condition for a structure to be build (floor type, on wall, ...). Feel free to use one or multiple element with the icon-text template. |
Exemple of use
{{Infobox
| name=Ribosome
| categories={{category|Structure}}{{category|Production}}
| picture_file=File:Ribosome.png
| picture_alt=Ribosome
| picture_caption=Ribosome
| features={{icontext|icon=heating|text=Produce heat|oneline}}
| build_req={{icontext|icon=intracell|text=Intracellular|oneline}}
}}