Template:Herb: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Herb Template Created |
Clean Cargo schema and editing workflow |
||
| (11 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#cargo_store: | ||
<div class="hw- | _table=Herbs | ||
|Name={{{name|{{PAGENAME}}}}} | |||
|HerbCode={{{key|}}} | |||
|Rarity={{{rarity|Unknown}}} | |||
|Location={{{location|Unknown}}} | |||
|Speed={{{speed|}}} | |||
|AttackRate={{{attack rate|}}} | |||
|SizeAvg={{{average size|}}} | |||
|SizeRange={{{size range|}}} | |||
|PriceAvg={{{average price|}}} | |||
|DegreeRange={{{degree range|}}} | |||
|PreferredCrystals={{{preferred crystals|}}} | |||
|PreferredWeather={{{preferred weather|}}} | |||
|PreferredTimeOfDay={{{preferred time of day|}}} | |||
|PreferredYear={{{preferred year|}}} | |||
|Description={{{description|}}} | |||
}} | |||
<div class="hw-record-banner hw-record-banner--herb hw-rarity-{{{rarity|Unknown}}}"> | |||
<div class="hw-record-code">BOTANICAL RECORD · {{{key|UNFILED}}}</div> | |||
<div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div> | |||
<div class="hw-record-summary">{{{rarity|Unknown}}} herb · Documented in [[{{{location|Unknown}}}]]</div> | |||
</div> | |||
<div class="hw-record-actions">[[Special:FormEdit/Herb/{{FULLPAGENAME}}|Edit record]] [{{fullurl:Special:MultiPageEdit|template=Herb&form=Herb}} Bulk edit herbs] [{{fullurl:{{FULLPAGENAME}}|action=delete}} Delete record]</div> | |||
<div class="hw-infobox hw-herb-infobox hw-rarity-{{{rarity|Unknown}}}"> | |||
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | |||
<div class="hw-infobox-badge">{{{rarity|Unknown}}} specimen</div> | |||
<div class="hw-infobox-image" role="group" aria-label="Image for {{{name|{{PAGENAME}}}}}"> | |||
{{{image|<div class="hw-infobox-image-empty">No Picture Uploaded</div>}}} | |||
</div> | |||
<div class="hw-infobox-heading">Herb Properties</div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Location</div><div class="hw-infobox-value">[[{{{location|Unknown}}}]]</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Rarity</div><div class="hw-infobox-value">{{{rarity|Unknown}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Preferred Crystals</div><div class="hw-infobox-value">{{#arraymap:{{{preferred crystals|}}}|;|crystal|[[crystal]]|, }}</div></div> | |||
<div class="hw-infobox-heading">Growing Preferences</div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Preferred Weather</div><div class="hw-infobox-value"><span class="hw-preference-value">{{#arraymap:{{{preferred weather|}}}|;|weather|[[weather]]|, }}</span><span class="hw-preference-none">None</span></div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Preferred Time of Day</div><div class="hw-infobox-value"><span class="hw-preference-value">{{{preferred time of day|}}}</span><span class="hw-preference-none">None</span></div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Preferred Year</div><div class="hw-infobox-value"><span class="hw-preference-value">{{{preferred year|}}}</span><span class="hw-preference-none">None</span></div></div> | |||
<div class="hw-infobox-heading">Gathering Profile</div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Speed</div><div class="hw-infobox-value">{{{speed|—}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Attack Rate</div><div class="hw-infobox-value">{{{attack rate|—}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Average Size</div><div class="hw-infobox-value">{{{average size|—}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Size Range</div><div class="hw-infobox-value">{{{size range|—}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Average Price</div><div class="hw-infobox-value">{{{average price|—}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Degree Range</div><div class="hw-infobox-value">{{{degree range|—}}}°</div></div> | |||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== | {{#cargo_declare: | ||
_table=Herbs | |||
|Name=String | |||
|HerbCode=String | |||
| | |Rarity=String | ||
| | |Location=Page | ||
| | |Speed=Float | ||
| | |AttackRate=Float | ||
| | |SizeAvg=Float | ||
|SizeRange=Float | |||
|PriceAvg=Float | |||
|DegreeRange=Integer | |||
|PreferredCrystals=List (;) of Page | |||
|PreferredWeather=List (;) of Page | |||
|PreferredTimeOfDay=String | |||
|PreferredYear=String | |||
|Description=Text | |||
}} | }} | ||
This template stores and displays one centralized herb record. Herb weight is no longer part of the data model. The Preferred crystals field is the canonical source for the herb–crystal relationship. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:04, 13 September 2026
This template defines the table "Herbs". View table. This template stores and displays one centralized herb record. Herb weight is no longer part of the data model. The Preferred crystals field is the canonical source for the herb–crystal relationship.