Editing Template:Ingredient List

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 1: Line 1:
<includeonly><!--
+
<includeonly><div><li style="display: inline-table;">
 
+
{{#if: {{{noCollapse|}}}||<div class="mw-collapsible mw-collapsed" style="width:4.5%">
VARIABLES
+
<div class="mw-collapsible-content" style="width:7000%">}}
-->{{#vardefine:ingredient | {{{ 1 | {{PAGENAME}} }}} }}<!--
+
{| {{STDT|sortable c_03 text-center}}{{#vardefine:name | {{{ 1 | {{PAGENAME}} }}} }}
-->{{#vardefine:noCollapse | {{{noCollapse|}}} }}<!--
+
! Name !! Amount !! Type
 
+
|-
TABLE
+
{{#ask:[[Resource 1::{{lc:{{#var:name}}}}]] OR [[Resource 2::{{lc:{{#var:name}}}}]] OR [[Resource 3::{{lc:{{#var:name}}}}]] OR [[Resource 4::{{lc:{{#var:name}}}}]] OR [[Resource 5::{{lc:{{#var:name}}}}]] OR [[Resource 6::{{lc:{{#var:name}}}}]]
--><div><li style="display: inline-table;">
+
  | named args=yes
{| {{STDT|sortable c_03 text-left}}
+
  | ?Name=?Name
! Product !! Ingredients !! Type [<span style="color:#0645ad;" class="mw-collapsible {{#if: {{#var:noCollapse}}|mw-collapsed}} mw-customtoggle-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}">Expand</span><span style="color:#0645ad;" class="mw-collapsible {{#if: {{#var:noCollapse}}||mw-collapsed}} mw-customtoggle-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}">Collapse</span>]
+
  | ?Type=?Type
{{#ask: [[Resource 1::Stuff]]<!-- Filters out buildings that have Stufftags but can't be created by the player --> [[Stuff Tags::~*{{Q|{{#var:ingredient}}|Stuff Category|noStuff}}*]] OR [[Resource 1::{{#var:ingredient}}]] OR [[Resource 2::{{#var:ingredient}}]] OR [[Resource 3::{{#var:ingredient}}]] OR [[Resource 4::{{#var:ingredient}}]] OR [[Resource 5::{{#var:ingredient}}]] OR [[Resource 6::{{#var:ingredient}}]]
+
  | ?Type2=?Type2
  | named args = yes
 
  | ?Name = ?Product
 
  | ?Type = ?Type
 
  | ?Type2 = ?Type2
 
 
  | ?Resource 1 = ?R1
 
  | ?Resource 1 = ?R1
 
  | ?Resource 2 = ?R2
 
  | ?Resource 2 = ?R2
Line 26: Line 22:
 
  | ?Resource 5 Amount = ?R5a
 
  | ?Resource 5 Amount = ?R5a
 
  | ?Resource 6 Amount = ?R6a
 
  | ?Resource 6 Amount = ?R6a
  | format = template
+
  | format=template
  | template = Ingredient List Row
+
  | template=Ingredient List Row
 
  | limit = 500
 
  | limit = 500
 
  | link = none
 
  | link = none
Line 33: Line 29:
 
}}
 
}}
 
|}
 
|}
</li></div></includeonly><noinclude>{{Recode|reason= Given we now have a control panel standard, it might be best to add a toggle for the stuffable options to limit table bloat - ideally needs to be autodisabled if the material ONLY has stuffables }}
+
{{#if: {{{noCollapse|}}}||</div>
 +
</div>}}
 +
</li></div></includeonly><noinclude>{{Recode|reason=Non Expanded version reported as not visible/clear/understandable enough}}
 
{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->

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)

This page is a member of 1 hidden category: