Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Getting started
Farming
Mining
Fishing
Foraging
Crafting
NPCs
Quests
Achievements
Pets
Guilds and social
Mastery
Seasons
Marketplace
wiki
Recent changes
Random page
Help
StepHarvest Wiki
Search
Search
Appearance
Log in
Personal tools
Log in
View source for Template:Infobox mineral
Template
Discussion
English
Read
View source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
View source
View history
General
What links here
Related changes
Page information
Cargo data
Appearance
move to sidebar
hide
←
Template:Infobox mineral
You do not have permission to edit this page.
You can view and copy the source of this page.
<includeonly><templatestyles src="Infobox mineral/styles.css" /><div class="sh-infobox"><!-- --><div class="sh-infobox-title">{{{name|{{PAGENAME}}}}}</div><!-- -->{{#ifexist:File:{{{image|{{PAGENAME}}}}}.png|<div class="sh-infobox-image">[[File:{{{image|{{PAGENAME}}}}}.png|96px|alt={{{name|{{PAGENAME}}}}}]]</div>|}}<!-- -->{{#if:{{{description|}}}|<div class="sh-infobox-desc">{{{description}}}</div>|}}<!-- --><div class="sh-infobox-rows"><!-- --><div class="sh-infobox-section">Details</div><!-- -->{{#if:{{{type|}}}|<div class="sh-infobox-row"><div class="sh-infobox-label">Type</div><div class="sh-infobox-value">{{#switch:{{lc:{{{type}}}}}|ore=[[Mining#Ores|Ore]]|gem=[[Mining#Gems|Gem]]|material=[[Mining#Materials|Material]]|#default={{{type}}}}}</div></div>|}}<!-- -->{{#if:{{{mines|}}}|<div class="sh-infobox-row"><div class="sh-infobox-label">Found in</div><div class="sh-infobox-value">{{{mines}}}</div></div>|}}<!-- -->{{#if:{{{obtained|}}}|<div class="sh-infobox-row"><div class="sh-infobox-label">Obtained by</div><div class="sh-infobox-value">{{{obtained}}}</div></div>|}}<!-- --></div><!-- --></div>{{#cargo_store:_table=minerals|name={{{name|{{PAGENAME}}}}}|type={{{type|}}}|mines={{{mines|}}}|mineable={{{mineable|}}}|crushable={{{crushable|}}}|description={{{description|}}}}}</includeonly><noinclude> {{#cargo_declare:_table=minerals |name=String |type=String |mines=List (,) of String |mineable=Boolean |crushable=Boolean |description=Text }} Infobox for ores, gems, and mine materials. One template covers all three via the <code>type</code> parameter. Parameter names map to the game's data fields so a future bulk sync stays mechanical. Data is also stored in the Cargo table <code>minerals</code>, so index pages like the ore and gem lists on [[Mining]] are queries, not hand maintained tables. == Usage == <pre> {{Infobox mineral |name=Copper Ore |image=Copper Ore |type=Ore |mines=Upper Mines, Iron Depths, Golden Tunnels, Crystal Caverns, Sonorite Depths |obtained=Mining |description=A common ore that can be smelted into bars. }} </pre> * <code>type</code> is one of <code>Ore</code>, <code>Gem</code>, or <code>Material</code>. * <code>mines</code> is a comma separated list of the named mines where the item is found. Leave empty for items that cannot be mined (for example crush only gems). * <code>obtained</code> is the human readable source line (for example <code>Mining</code> or <code>Mining, crushing crystal nodes</code>). * Pages are normally generated by the build script, not written by hand. [[Category:Infobox templates]] </noinclude>
Return to
Template:Infobox mineral
.
Search
Search
View source for Template:Infobox mineral
Add topic