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: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".
+
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 Stats Table Row]].
+
This template is dependent on [[Template:Building Material Table Row]].
  
 
== Parameters ==
 
== Parameters ==
All parameters are optional:
+
The first parameter (if present) will specify which building to generate the template for.  
* '''First parameter''': specifies which building to generate the template for. Defaults = <code><nowiki>{{PAGENAME}}</nowiki></code>.
+
If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used.
* '''<code>header</code>''': If set to <code>false</code> no header will be created.
+
 
* '''<code>header level</code>''': Defines the level of the header. Default = <code>2</code>.
+
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 ==
=== Billiards table (quality, recreation, special recreation, header level) ===
+
  <nowiki>{{Building Material Table}}</nowiki>
  <nowiki>{{Building Stats Table | header level = 4}}</nowiki>
 
 
on the [[Billiards table]] page would produce:
 
on the [[Billiards table]] page would produce:
{{Building Stats Table | Billiards table | header level = 4}}
+
{{Building Material Table | Billiards table}}
  
=== Bed (quality, comfort, no header) ===
+
  <nowiki>{{Apparel Material Table | Armchair}}</nowiki>
  <nowiki>{{Building Stats Table | Bed | header = false}}}</nowiki>
 
 
on any page would produce:
 
on any page would produce:
{{Building Stats Table | Bed | header = false}}
+
{{Building Material Table | Armchair}}
  
=== Autodoor (no quality, terrain affordance, door opening speed, no header) ===
+
  <nowiki>{{Apparel Material Table | Autodoor}}</nowiki>
  <nowiki>{{Building Stats Table | Autodoor | header = false}}</nowiki>
 
 
on any page would produce:
 
on any page would produce:
{{Building Stats Table | Autodoor | header = false}}
+
{{Building Material Table | Autodoor | No heading}}
  
=== Spike trap (no quality, negative beauty, special properties, no header) ===
+
  <nowiki>{{Apparel Material Table | Wall | | Terrain affordance}}</nowiki>
  <nowiki>{{Building Stats Table | Spike trap | header = false}}</nowiki>
 
 
on any page would produce:
 
on any page would produce:
{{Building Stats Table | Spike trap | header = false}}
+
{{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>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)