Template:Tag List/doc

From RimWorld Wiki
< Template:Tag List
Revision as of 02:19, 7 August 2024 by JuliaCat (talk | contribs) (removed all experimental related info, as changes just caused formatting issues when used inside of a table. It would be better to test extended functionality with a new separate template, so as to not break what currently uses this)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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(s) to search for, e.g. SpacerGun

Tag types include Property:WeaponTags, Property:Tags, and Property:TechHediffsTags (note that these properties are camel case when used as parameters, e.g. |weaponTags, |tags, and |techHediffsTags). Their appropriate tags can be seen on each property page.

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

{{Tag List|typeOfTags|SpecificTag1|SpecificTag2|SpecificTag3|SpecificTag4}}
{{Tag List|typeOfTags|value=x|SpecificTag1|SpecificTag2|SpecificTag3|SpecificTag4}}

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

{{Tag List|techHediffsTags|ImplantEmpireRoyal|Ghoul|PainCauser|Poor}}

Adrenal heart Corrosive heart Denture Ghoul barbs Ghoul plating Metalblood heart Mindscrew Peg leg Psychic harmonizer Psychic reader Psychic sensitizer Wooden foot Wooden hand

{{Tag List|tags|SpacerMilitary|Royal|Western}}

Beret Bowler hat Cape Coronet Corset Cowboy hat Crown Formal shirt Formal vest Ladies hat Marine armor Marine helmet Prestige robe Psychic foil helmet Recon armor Recon helmet Stellic crown Top hat