Difference between revisions of "Template:Tag List"

From RimWorld Wiki
Jump to navigation Jump to search
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>
| named args=yes
+
{{#if: {{{3|}}}
  | ?Name=?Name
+
|{{#if: {{{4|}}}
| format=template
+
  |{{#if: {{{5|}}}
| template=Tag List Excluder
+
  |{{#if:{{{value|}}}
| limit = 500
+
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}||{{{5|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]]|format=list |sep=&nbsp;}}
| sort = Name
+
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}||{{{5|}}}]] [[:+]]|format=list |sep=&nbsp;}}}}
}}</includeonly><noinclude>{{Rewrite|reason=See [[Titles#General_mechanics]] Harakoni - compare processing, potential simplification}}{{Documentation}}</noinclude>
+
  |{{#if:{{{value|}}}
 +
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]]|format=list |sep=&nbsp;}}
 +
    |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}||{{{4|}}}]] [[:+]]|format=list |sep=&nbsp;}}}}}}
 +
  |{{#if:{{{value|}}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]]|format=list |sep=&nbsp;}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}||{{{3|}}}]] [[:+]]|format=list |sep=&nbsp;}}}}}}
 +
  |{{#if:{{{value|}}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}]] [[Market Value Base ::<{{{value|}}}]] [[:+]]|format=list |sep=&nbsp;}}
 +
  |{{#ask: [[{{{1}}}::{{{2|}}}]] [[:+]]|format=list |sep=&nbsp;}}}}
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 12:48, 27 October 2022

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

Returns a list of all items with a specific tag.

Paramaters

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

{{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