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

From RimWorld Wiki
Jump to navigation Jump to search
(Added category.)
Line 7: Line 7:
  
 
For example, if this template was used on the [[Plainleather]] page, it would look like:
 
For example, if this template was used on the [[Plainleather]] page, it would look like:
 
+
<div><li style="display: inline-table;">
{{#ask: [[Category:Animals]] [[Leather Name::{{lc:Plainleather}}]]
+
{| {{STDT| sortable c_06 text-center}}
| mainlabel=Animal
+
! Animal !! Leather Yield
 +
|-
 +
{{#ask: [[Category:Animals]] [[Leather Name::plainleather]] [[:+]]
 
| ?Leather Yield
 
| ?Leather Yield
 +
| format = template
 +
| template = Ask Table Formatter
 
| limit = 500
 
| limit = 500
}}
+
| link = none}}
 +
|}</li><div>
  
  
 
<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 00:30, 11 August 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.

Usage

Add the following to the page of a type of leather

{{Leather List}}

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:

  • Animal Leather Yield