Difference between revisions of "Template:Tag List"

From RimWorld Wiki
Jump to navigation Jump to search
(Accounting for things without market value i.e. stuffables)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: tagType|{{{1|StringThatWontMatch}}}}}{{#vardefine: searchTag1|{{{2|StringThatWontMatch}}}}}{{#vardefine: searchTag2|{{{3|StringThatWontMatch}}}}}{{#vardefine: searchTag3|{{{4|StringThatWontMatch}}}}}{{#vardefine: searchTag4|{{{5|StringThatWontMatch}}}}}{{#vardefine: valueLimit|{{{value|}}}}}{{#ask: [[{{{1|}}}::+]]
+
<includeonly>{{#if: {{{3|}}}
| named args=yes
+
|{{#if: {{{4|}}}
  | ?Name=?Name
+
  |{{#if: {{{5|}}}
| format=template
+
  |{{#if:{{{value|}}}
| template=Tag List Excluder
+
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}||{{{5|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]] OR [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}||{{{5|}}}]] [[Resource 1::Stuff]] [[:+]] |format=list |sep=&#32;}}
| limit = 500
+
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}||{{{5|}}}]] [[:+]]|format=list |sep=&#32;}}}}
| sort = Name
+
  |{{#if:{{{value|}}}
 +
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]] OR [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}]] [[Resource 1::Stuff]] [[:+]]|format=list |sep=&#32;}}
 +
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}]] [[:+]]|format=list |sep=&#32;}}}}}}
 +
  |{{#if:{{{value|}}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]] OR [[{{{1}}}::{{{2|}}}||{{{3|}}}]] [[Resource 1::Stuff]] [[:+]]|format=list |sep=&#32;}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}]] [[:+]]|format=list |sep=&#32;}}}}}}
 +
  |{{#if:{{{value|}}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]] OR [[{{{1}}}::{{{2|}}}]] [[Resource 1::Stuff]] [[:+]]|format=list |sep=&#32;}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}]] [[:+]]|format=list |sep=&#32;}}}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:10, 27 October 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Returns a list of all items with a specific tag.

Paramaters[edit]

The first paramater is the tag type, e.g. weaponTags

The second, third, fourth and fifth parameters are the contained tag to search for, e.g. SpacerGun


"value" is an optional parameter that puts a maximum on the Market Value of the returned items.

Examples[edit]

{{Tag List|weaponTags|SpacerGun}}

Charge lance Charge rifle

{{Tag List|weaponTags|IndustrialGunAdvanced}}

Assault rifle Chain shotgun Heavy SMG Hellcat rifle LMG

{{Tag List|weaponTags|SniperRifle}}

Sniper rifle

{{Tag List|weaponTags|SpacerGun|GunHeavy}}

Charge lance Charge rifle Minigun

{{Tag List|value=300|weaponTags|Gun}}

Autopistol Bolt-action rifle Machine pistol Pump shotgun Revolver