Editing Template:Building Stats Table/doc
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
This template generates a table summarizing stats for a [[building]], including Name, Construction Cost, Beauty, HP, Flammability, Mass, Work To Build and [[Market Value]], for the variety of different materials available for it. | This template generates a table summarizing stats for a [[building]], including Name, Construction Cost, Beauty, HP, Flammability, Mass, Work To Build and [[Market Value]], for the variety of different materials available for it. | ||
− | The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the [[Template: | + | The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the [[Template: infobox main|infobox]] and display them. The item must be [[stuff]]able and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff". |
Note that it will automatically add the appropriate heading. | Note that it will automatically add the appropriate heading. | ||
− | This template is dependent on [[Template:Building | + | This template is dependent on [[Template:Building Material Table Row]]. |
== Parameters == | == Parameters == | ||
− | + | The first parameter (if present) will specify which building to generate the template for. | |
− | + | If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used. | |
− | + | ||
− | + | The second parameter suppresses the heading if present. Any value can be used but "No heading" is suggested for clarity. | |
+ | |||
+ | The third parameter adds terrain affordance if present. Any value can be used but "Terrain affordance" is suggested for clarity. | ||
== Example usage == | == Example usage == | ||
− | + | <nowiki>{{Building Material Table}}</nowiki> | |
− | <nowiki>{{Building | ||
on the [[Billiards table]] page would produce: | on the [[Billiards table]] page would produce: | ||
− | {{Building | + | {{Building Material Table | Billiards table}} |
− | + | <nowiki>{{Apparel Material Table | Armchair}}</nowiki> | |
− | <nowiki>{{ | ||
on any page would produce: | on any page would produce: | ||
− | {{Building | + | {{Building Material Table | Armchair}} |
− | + | <nowiki>{{Apparel Material Table | Autodoor}}</nowiki> | |
− | <nowiki>{{ | ||
on any page would produce: | on any page would produce: | ||
− | {{Building | + | {{Building Material Table | Autodoor | No heading}} |
− | + | <nowiki>{{Apparel Material Table | Wall | | Terrain affordance}}</nowiki> | |
− | <nowiki>{{ | ||
on any page would produce: | on any page would produce: | ||
− | {{Building | + | {{Building Material Table | Wall | | Terrain affordance}} |
<includeonly>[[Category:Customized table templates]]</includeonly> | <includeonly>[[Category:Customized table templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |