Difference between revisions of "Template:Tag List Excluder"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#ifeq: {{#pos:{{Q|{{{?Name|}}}|{{#var: tagType}}|{{#var: searchTag}}}}}}||[[{{{?Name|}}}]] }}</includeonly><noinclude>
+
<noinclude>
 +
{{#vardefine: searchTag|SpacerGun }}
 +
{{#vardefine: tagType|weaponTags }}
 +
</noinclude>
 +
{{#ifeq: {{#pos:{{Q|{{{?Name|Charge rifle}}}|{{#var: tagType}}}}|{{#var: searchTag}}}}|||[[{{{?Name|Charge rifle}}}]] }}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:21, 12 March 2021



Charge rifle

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

Excludes #ask results that don't have have a given string in a given page property.

Currently only used on Template:Tag List

Examples

As this template cannot be used by itself, Tag List is used instead.

{{Tag List|weaponTags|Gun}}

Assault rifle Autopistol Bolt-action rifle Chain shotgun Charge lance Charge rifle Doomsday rocket launcher EMP launcher Heavy SMG Hellcat rifle Incendiary launcher LMG Machine pistol Minigun Pump shotgun Revolver Triple rocket launcher

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

Charge lance Charge rifle Minigun

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

Autopistol Bolt-action rifle Machine pistol Pump shotgun Revolver