Difference between revisions of "Template:Ingredient List Row"
Jump to navigation
Jump to search
(prevent human leather beeing shown as an ingredient of patchleather) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!-- |
− | + | -->{{#vardefine:ignore | {{#ifeq: {{{?Product}}} | Patchleather | {{#switch: {{#var:ingredient}} | Patchleather | Human leather = true }} }} }}<!-- this prevents patchleather and human leather beeing listed as an ingredient for patchleather | |
− | {{# | + | -->{{#if: {{#var:ignore}} || |
− | + | <tr class="mw-collapsible {{#if: {{#var:noCollapse}}||mw-collapsed}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}"> | |
− | + | ! style="text-align:left;" data-sort-value="{{{?Product}}}" {{!}} {{#if:{{#vardefineecho:amount|{{Q|{{{?Product}}}|Product Amount}} }}|{{#var:amount}}× }}{{Icon Small|{{{?Product}}} }} {{DLC Icons|{{{?Product}}} }} | |
− | -->{{# | + | {{!}} {{Required Resources|{{{?Product}}}|sep= +|simple=1}} |
− | -- | ||
− | |||
− | |||
− | |||
{{!}} [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }} | {{!}} [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }} | ||
+ | </tr> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Latest revision as of 17:46, 12 December 2023
This template is only ever called as part of Template:Ingredient List. It uses the variables provided by the different #asks in that template to create sections of the table that the primary template then assembles into one table.
Example usage[edit]
This template isn't designed to be used in isolation, so as an example we'll show {{Ingredient List|Steel}}
And {{Ingredient List|Patchleather}}
The above documentation is transcluded from Template:Ingredient List Row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |