Jump to content

Template:Infobox item: Difference between revisions

From Hearthsail
Vorlagen-Geruest
 
Leerer Absatz ueber der Infobox-Tabelle
Line 1: Line 1:
<includeonly><div class="hs-infobox">
<includeonly><div class="hs-infobox">
<div class="hs-infobox__title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="hs-infobox__title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="hs-infobox__image">[[File:{{{image}}}|96px|link=|{{{name|{{PAGENAME}}}}}]]</div>}}
<div class="hs-infobox__image">[[File:{{{image}}}|96px|link=|{{{name|{{PAGENAME}}}}}]]</div>}}<table>
<table>
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
{{#if:{{{source|}}}|<tr><th>Source</th><td>{{{source}}}</td></tr>}}
{{#if:{{{source|}}}|<tr><th>Source</th><td>{{{source}}}</td></tr>}}

Revision as of 01:47, 31 July 2026

Infobox for a single item. Every parameter is optional — empty ones leave no row.

{{Infobox item
| name      = Oak Log
| image     = Oak Log.png
| type      = Resource
| source    = Chopping oak trees
| tool      = [[Axe]]
| stack     = 99
| sell      = 12
| craftedat =
| id        = oak_log
}}

id is the item id used in the game code — keep it in sync with src/i18n/en.ts, it is what the planned wiki generator matches on.