Template:Consumable: Difference between revisions
GemmaBeepo (talk | contribs) No edit summary Tag: sourceedit |
(Updated infobox template.) |
||
Line 1: | Line 1: | ||
<infobox> |
<includeonly><infobox> |
||
⚫ | |||
<title source="title" style="font-weight:bold; text-align:center;"> |
|||
<image source="image1"><caption source="caption1"/></image> |
|||
⚫ | |||
⚫ | |||
</title> |
|||
⚫ | |||
<image source="image1"> |
|||
<data source="id"><label>Item ID</label></data> |
|||
⚫ | |||
</image> |
|||
<data source="tab"><label>Tab</label></data> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
</data> |
|||
<data source="water"><label>Water</label></data> |
|||
⚫ | |||
⚫ | |||
</infobox>{{#if:{{PAGENAME}}|{{ns:0}}|[[Category:Consumables|{{PAGENAME}}]]|}}</includeonly><noinclude>{{Documentation}}</noinclude> |
|||
</data> |
|||
<data source="id"> |
|||
<label>Item ID</label> |
|||
</data> |
|||
<data source="category"> |
|||
⚫ | |||
</data> |
|||
<data source="tab"> |
|||
<label>Tab</label> |
|||
</data> |
|||
⚫ | |||
<header>Food Values</header> |
|||
⚫ | |||
<label>Food</label> |
|||
</data> |
|||
<data source="water"> |
|||
<label>Water</label> |
|||
</data> |
|||
⚫ | |||
</infobox> |
|||
<noinclude> |
|||
Example usage:<pre> |
|||
{{Consumable |
|||
|title1=Example |
|||
|image1=Example |
|||
|caption1=Example |
|||
|row1=Example |
|||
|row2=Example |
|||
}} |
|||
</pre> |
|||
</noinclude> |
Revision as of 06:39, 25 June 2023
Example
<infobox> <title source="title1"><default>Consumable</default></title>
<image source="image1"></image> <label>Size</label> <label>Obtained From</label> <label>Item ID</label> <label>Category</label> <label>Tab</label> <group layout="horizontal"> <label>Food</label> <label>Water</label> </group> </infobox>{{Consumable |title = Nutrient Block |image = Nutrient Block.png |size = 1 |obtained = * [[Lifepod 5]] * [[Supply Crate (Subnautica)|Supply Crate]]s * [[Aurora]] |id = ''nutrientblock'' |category = |tab = Food |food = +75 |water = +0 }}
Empty Template
{{Consumable |title = |image = |caption = |size = |obtained = |id = |category = |tab = |food = |water = }}