Difference between revisions of "Template:Infobox Object"
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div> | + | <includeonly><div id="infobox_wrap"> |
− | <div id="infobox_header"> | + | <div id="infobox_header"><div id="infobox_header_icon">[[File:{{{icon|}}}|center]]</div>{{{name|}}}</div> |
<div id="infobox_body"> | <div id="infobox_body"> | ||
− | <div> | + | <div>[[File:{{{image|}}}|center|200px]]</div><br> |
− | <div> | + | <div>{{{description|}}}</div> |
− | <div> | + | <div><br></div> |
− | <div></div> | + | <div id="infobox_requires">Cost: [[File:Money Icon.png|Money Icon.png]] {{{cost|}}}</div> |
− | </div> | + | <div id="infobox_requires">Research: [[Research#{{{requirement|}}}|{{{requirement|}}}]]</div> |
</div> | </div> | ||
+ | <div id="infobox_footer"></div> | ||
+ | </div></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}[[Category:Infobox templates]]</noinclude> |
Latest revision as of 11:52, 4 August 2021
Contents
Description
This template is used to provide a template that displays an infobox for objects, holding their cost, description, images and requirements.
Usage
This template can be used by entering the following onto a relevant page.
{{Infobox Object |name= |image= |icon= |description= |cost= |requirement= }}
Parameters
{{Infobox Unit |name= |image=main image of the object, as it appears in game placed |icon=object icon for use in lists, sourced from the build menu/research tree |description=objects description in tooltip |cost=cost to purchase |requirement=[[Research]] requirement }}
Example
{{Infobox Object |name=Wood Bed |image=Wood_Bed.png |icon=Wood_Bed_Icon.png |description=A bed for sleeping in. Colonists wake up earlier when using beds. |cost=2k |requirement=Wood Furniture }}
Results in...