Difference between revisions of "Template:Leather List/doc"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Creates a lists of every animal that provides the given type of leather, as well as the yield gained from each animal. This is intedended for use on [[Leather]] pages, not for use elsewhere.
 
Creates a lists of every animal that provides the given type of leather, as well as the yield gained from each animal. This is intedended for use on [[Leather]] pages, not for use elsewhere.
  
==Usage==
+
== Parameters ==
Add the following to the page of a type of leather
+
The first parameter (if present) will specify which material to generate the template for.
<nowiki>{{Leather List}}</nowiki>
+
If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used.
There is no need to, nor support for, include a leather type in the template. The template takes the page name from the page it is used on.  
 
  
For example, if this template was used on the [[Plainleather]] page, it would look like:
+
== Example usage ==
{{Leather List|Plainleather}}
+
<nowiki>{{Ingredient List}}</nowiki>
 +
on the [[Plainleather]] page would produce:
 +
{{Leather List |Plainleather}}
  
 +
<nowiki>{{Ingredient List|Thrumbofur}}</nowiki>
 +
on any page would produce:
 +
{{Leather List |Thrumbofur}}
  
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 22:37, 31 October 2022

Creates a lists of every animal that provides the given type of leather, as well as the yield gained from each animal. This is intedended for use on Leather pages, not for use elsewhere.

Parameters

The first parameter (if present) will specify which material to generate the template for. If absent, {{PAGENAME}} will be used.

Example usage

{{Ingredient List}}

on the Plainleather page would produce:

  • Animal Leather Yield
    Bison 96
    Boomalope 80
    Caribou 40
    Cow 96
    Deer 48
    Donkey 56
    Elk 84
    Gazelle 31
    Goat 33
    Horse 96
    Ibex 40
    Sheep 33
    Yak 84
    Toxalope Content added by the Biotech DLC 56
  • {{Ingredient List|Thrumbofur}}
    

    on any page would produce:

  • Animal Leather Yield
    Thrumbo 160