Template:StormforgedCornerstonesTable/row: Difference between revisions

From Against the Storm Official Wiki
m (Added documentation at the top)
(Adding options to hide description and show id)
Line 4: Line 4:


'''Note: Caption and header row not included when you use this template and shown here for reference and formatting only:'''
'''Note: Caption and header row not included when you use this template and shown here for reference and formatting only:'''
{{StormforgedCornerstonesTable|show_regular={{{show_regular|no}}} }}</noinclude>
{{StormforgedCornerstonesTable|show_description=show|show_id=no|show_regular=no}}</noinclude>
{{#ifeq: {{{skip_prices|no}}} | skip
{{#ifeq: {{{skip_prices|no}}} | skip


| <!-- swap to version without prices -->
| <!-- swap to version without prices --> {{StormforgedCornerstonesTable/row/SkipPrices|id={{{id|}}}|description={{{description|}}}|upgrade_from={{{upgrade_from|}}}|show_id={{{show_id|}}}|show_description={{{show_description|}}}|show_regular={{{show_regular|}}} }}
{{StormforgedCornerstonesTable/row/SkipPrices
|id={{{id|}}}
|description={{{description|}}}
|upgrade_from={{{upgrade_from|}}}  
|show_regular={{{show_regular|}}} }}


| <!-- proceed with this version -->
| <!-- proceed with this version -->
{{!}}-
{{!}}-
{{!}} {{#if: {{{id|}}} | {{pl| id={{{id}}} | iconsize=large}} | — }}
{{#ifeq: {{{show_id|no}}} | show | <!-- default is id hidden -->
{{!}} {{{description|—}}}
{{!}} {{{id|—}}} |— }}
{{!}} {{#if: {{{id|}}} | {{pl|id={{{id}}}|iconsize=large}} |— }}
{{#ifeq: {{{show_description|show}}} | show | <!-- default is description shown-->
{{!}} {{{description|—}}} }}
{{!}} {{{price_in_meta_resources|0}}}
{{!}} {{{price_in_meta_resources|0}}}
{{!}} {{{price_in_villagers|0}}}
{{!}} {{{price_in_villagers|0}}}
{{!}} {{{price_for_upgrade_in_meta_resources|0}}}
{{!}} {{{price_for_upgrade_in_meta_resources|0}}}
{{!}} {{{price_for_upgrade_in_villagers|0}}}
{{!}} {{{price_for_upgrade_in_villagers|0}}}
{{#ifeq: {{{show_regular|no}}} | show | <!-- add in one more column to show the regular version -->
{{#ifeq: {{{show_regular|no}}} | show | <!-- default is regular version hidden -->
{{!}} {{#if: {{{upgrades_from|}}} | {{pl|id={{{upgrades_from}}}|iconsize=med}} | — }} }}
{{!}} {{#if: {{{upgrades_from|}}} | {{pl|id={{{upgrades_from}}}|iconsize=med}} |— }} }}
 
}} <!-- remember to terminate the table after adding the last row! --><noinclude>
}} <!-- remember to terminate the table after adding the last row! -->
|}</noinclude>

Revision as of 23:39, 2 May 2024

This is the Template Documentation from Template:StormforgedCornerstonesTable/row/doc.

Documentation not available. Please go create it.

Documentation instead imported from Template:StormforgedCornerstonesTable/doc:

Important: This template and all related templates are not designed to be used directly. Instead, use Template:Stormforged Cornerstones; it is powerful, better documented, and much simpler to use than these templates.

Index of related templates:

Template Purpose
Template:StormforgedCornerstonesTable Primary, default table header template
Template:StormforgedCornerstonesTable/row Default table row template
Template:StormforgedCornerstonesTable/end Table markup closing
Template:StormforgedCornerstonesTable/SkipPrices Table header template, but without the prices columns
Template:StormforgedCornerstonesTable/row/SkipPrices Table row template, but without the prices columns
Template:StormforgedCornerstonesList/item List version row template (there is no list header template)


Note: Caption and header row not included when you use this template and shown here for reference and formatting only:

Stormforged Cornerstones
Name Description Price Price when upgrading
meta resources villagers meta resources villagers
0 0 0 0