Permanently protected template

Difference between revisions of "Template:Search categories"

From Yugipedia
Jump to: navigation, search
(<pre></pre> to copy paste)
(fix)
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ #if: {{{supports<includeonly>|</includeonly>}}} |
+
{{ #if: {{{mentions<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Supports {{ #arraymap: {{{supports}}} | * | $supports | : [[Support::$supports]] | \n }}
+
; [[Mentions]] {{ #arraymap: {{{mentions}}} | * | $el | : "{{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}"[[Mentions::$el| ]] | \n }}
 +
</div>
 +
}}{{ #if: {{{supports<includeonly>|</includeonly>}}} |
 +
<div class="hlist">
 +
; [[Support]]s {{ #arraymap: {{{supports}}} | * | $el | : {{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}[[Support::$el| ]]{{ #ifeq: {{ #show: $el |?Page type }} | Card page | [[Category:(((supports))) parameters that need to be split into (((mentions))) parameters]] }}<!-- Temporary until re-tagging is complete --> | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{anti-supports<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{anti-supports<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Anti-supports {{ #arraymap: {{{anti-supports}}} | * | $anti-supports | : [[Anti-support::$anti-supports]] | \n }}
+
; [[Anti-support]]s {{ #arraymap: {{{anti-supports}}} | * | $el | : {{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}[[Anti-support::$el| ]]{{ #ifeq: {{ #show: $el |?Page type }} | Card page | [[Category:(((anti-supports))) parameters that need to be split into (((mentions))) parameters]] }}<!-- Temporary until re-tagging is complete --> | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{archseries<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{archseries<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Archetypes and series {{ #arraymap: {{{archseries}}} | * | $archseries | : [[Archseries::$archseries]] | \n }}
+
; [[Archetype]]s and [[series]] {{ #arraymap: {{{archseries}}} | * | $el | : {{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}[[Archseries::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{supports_archetypes<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{supports_archetypes<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Supports archetypes {{ #arraymap: {{{supports_archetypes}}} | * | $supports_archetypes | : [[Archetype support::$supports_archetypes]] | \n }}
+
; [[Support]]s [[archetype]]s {{ #arraymap: {{{supports_archetypes}}} | * | $el | : "{{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}"[[Archetype support::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{anti-supports_archetypes<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{anti-supports_archetypes<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Anti-supports archetypes {{ #arraymap: {{{anti-supports_archetypes}}} | * | $anti-supports_archetypes | : [[Archetype anti-support::$anti-supports_archetypes]] | \n }}
+
; [[Anti-support]]s [[archetype]]s {{ #arraymap: {{{anti-supports_archetypes}}} | * | $el | : "{{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}"[[Archetype anti-support::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{related_to_archseries<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{related_to_archseries<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Related to archetypes and series {{ #arraymap: {{{related_to_archseries}}} | * | $related_to_archseries | : [[Archseries related::$related_to_archseries]] | \n }}
+
; Related to [[archetype]]s and [[series]] {{ #arraymap: {{{related_to_archseries}}} | * | $el | : {{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}[[Archseries related::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{counter<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{counter<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Counters {{ #arraymap: {{{counter}}} | * | $counter | : [[Counters::$counter]] | \n }}
+
; [[Counter]]s {{ #arraymap: {{{counter}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Counters::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{action<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{action<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Actions {{ #arraymap: {{{action}}} | * | $action | : [[Actions::$action]] | \n }}
+
; Actions {{ #arraymap: {{{action}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Actions::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{stat_change<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{stat_change<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Stat changes {{ #arraymap: {{{stat_change}}} | * | $stats | : [[Stats::$stats]] | \n }}
+
; Stat changes {{ #arraymap: {{{stat_change}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Stats::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{m/s/t<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{m/s/t<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Monster/Spell/Trap categories {{ #arraymap: {{{m/s/t}}} | * | $mst | : [[MonsterSpellTrap::$mst]] | \n }}
+
; [[Monster Card|Monster]]/[[Spell Card|Spell]]/[[Trap Card|Trap]] categories {{ #arraymap: {{{m/s/t}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[MonsterSpellTrap::$el| ]] | \n }}
 
</div>
 
</div>
}}{{ #if: {{{summoning<includeonly>|</includeonly>}}} |<!-- this one needs work to support the auto-"Can be Special Summoned", etc. stuff -->
+
}}{{ #if: {{{summoning<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Summoning categories {{ #arraymap: {{{summoning}}} | * | $summoning | : [[Summoning::$summoning]] | \n }}
+
; [[Summon]]ing categories {{ #arraymap: {{{summoning}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Summoning::$el| ]] | \n }}
 
</div>
 
</div>
 +
}}<!-- auto-add search categories
 +
* "Can be Special Summoned" on everything unless it has "Cannot be Special Summoned" or "Nomi"
 +
** There are a handful of "Nomi" monsters that can be Special Summoned by other card effects, but most Nomis can only be summoned by their own effect, and it isn't useful to tag all of them with "Can be Special Summoned"
 +
* "Can always be Special Summoned" on everything unless it has "Cannot be Special Summoned[ from ...]", "Nomi", or "Semi-Nomi"/"Special Summon-only monster", or it's a Ritual Monster
 +
* "Can be Normal Summoned" on everything unless it has "Cannot be Normal Summoned", "Nomi", "Semi-Nomi"/"Special Summon-only monster", or is $monster_type
 +
** "Nomi" and $monster_type monsters get "Cannot be Normal Summoned" unless they already have "Can(not) be Normal Summoned"
 +
* "Can be Normal Set" on everything unless it has "Cannot be Normal Set", "Nomi", "Semi-Nomi"/"Special Summon-only monster", or is $monster_type
 +
** "Nomi" and $monster_type monsters get "Cannot be Normal Set" unless they already have "Can(not) be Normal Set"
 +
* "Can be $monster_type Summoned" on all $monster_type unless it has "Cannot be $monster_type Summoned" (e.g. all Fusion Monsters get "Can be Fusion Summoned" unless they have "Cannot be Fusion Summoned")
 +
* "Can be used as a(n) $monster_type Material" on everything unless it has "Cannot be used as a(n) $monster_type Material"
 +
* $monster_type is any of Fusion, Ritual, Synchro, Xyz, or Link
 +
* all of this is only done for non-Token monsters (since Monster Tokens and Spell/Trap Monsters are generated by card effects)
 +
** Monster Tokens get "Cannot be Normal Summoned", "Cannot be Normal Set", and "Can be used as a $monster_type Material" (only for $monster_type of Fusion, Synchro, or Link), unless they have contra-tagging ("Can be Normal Summoned", "Can be Normal Set", "Cannot be used as a $monster_type Material")
 +
-->{{ #arraydefine: @summoning | {{{summoning|}}} | *
 +
}}{{ #arraydefine: @types | {{{types|}}} | /[\/,]/
 +
}}{{ #if: {{{monster|}}}
 +
| {{ #if: {{{token|}}}
 +
  | {{ #if: {{ #arraysearch: @summoning | Can be Normal Summoned }}{{ #arraysearch: @summoning | Cannot be Normal Summoned }} || [[Summoning::Cannot be Normal Summoned| ]]
 +
    }}{{ #if: {{ #arraysearch: @summoning | Can be Normal Set }}{{ #arraysearch: @summoning | Cannot be Normal Set }} || [[Summoning::Cannot be Normal Set| ]]
 +
    }}{{ #arraymap: Fusion, Synchro, Link | , | $monster_type
 +
    | {{ #if: {{ #arraysearch: @summoning | Cannot be used as a $monster_type Material }} || [[Summoning::Can be used as a $monster_type Material| ]] }}
 +
    | <!-- no delimiter -->
 +
    }}
 +
  | {{ #if: {{ #arraysearch: @summoning | Nomi }}
 +
    || {{ #if: {{ #arraysearch: @summoning | Cannot be Special Summoned }}
 +
      || [[Summoning::Can be Special Summoned| ]]
 +
      }}{{ #if: {{ #arraysearch: @summoning | Semi-Nomi }}{{ #arraysearch: @summoning | Special Summon-only monster }}
 +
      || {{ #if: {{ #arraysearch: @summoning | /Cannot be Special Summoned/i }} || {{ #if: {{ #arraysearch: @types | Ritual }} || [[Summoning::Can always be Special Summoned| ]] }}
 +
        }}{{ #if: {{{monster_type|}}}
 +
        || {{ #if: {{ #arraysearch: @summoning | Cannot be Normal Summoned }} || [[Summoning::Can be Normal Summoned| ]]
 +
          }}{{ #if: {{ #arraysearch: @summoning | Cannot be Normal Set }} || [[Summoning::Can be Normal Set| ]]
 +
          }}
 +
        }}
 +
      }}
 +
    }}{{ #arraymap: Fusion, Ritual, Synchro, Xyz, Link | , | $monster_type
 +
    | {{ #if: {{ #arraysearch: @types | $monster_type }}
 +
      | {{ #if: {{ #arraysearch: @summoning | Cannot be $monster_type Summoned }} || [[Summoning::Can be $monster_type Summoned| ]]
 +
        }}{{ #if: {{ #arraysearch: @summoning | Can be Normal Summoned }}{{ #arraysearch: @summoning | Cannot be Normal Summoned }} || [[Summoning::Cannot be Normal Summoned| ]]
 +
        }}{{ #if: {{ #arraysearch: @summoning | Can be Normal Set }}{{ #arraysearch: @summoning | Cannot be Normal Set }} || [[Summoning::Cannot be Normal Set| ]]
 +
        }}
 +
      }}
 +
    | <!-- no delimiter -->
 +
    }}{{ #arraymap: a Fusion, a Synchro, an Xyz, a Link | , | $monster_type
 +
    | {{ #if: {{ #arraysearch: @summoning | Cannot be used as $monster_type Material }} || [[Summoning::Can be used as $monster_type Material| ]] }}
 +
    | <!-- no delimiter -->
 +
    }}
 +
  }}
 
}}{{ #if: {{{attack<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{attack<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Attack categories {{ #arraymap: {{{attack}}} | * | $attack | : [[Attack::$attack]] | \n }}
+
; [[Attack]] categories {{ #arraymap: {{{attack}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Attack::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{banished<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{banished<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Banished categories {{ #arraymap: {{{banished}}} | * | $banished | : [[RFP::$banished]] | \n }}
+
; [[Banish]]ed categories {{ #arraymap: {{{banished}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[Banishing::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{life_points<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{life_points<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Life Points {{ #arraymap: {{{life_points}}} | * | $life_points | : [[Life Points::$life_points]] | \n }}
+
; [[LP]] {{ #arraymap: {{{life_points}}} | * | $el | : [[$el|{{ #explode: $el | ( }}]][[LP::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{fm_for<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{fm_for<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Fusion Material for {{ #arraymap: {{{fm_for}}} | * | $fm_for | : [[Fusion Material for::$fm_for]] | \n }}
+
; [[Fusion Material]] for {{ #arraymap: {{{fm_for}}} | * | $el | : "{{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}"[[Fusion Material for::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{sm_for<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{sm_for<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Synchro Material for {{ #arraymap: {{{sm_for}}} | * | $sm_for | : [[Synchro Material for::$sm_for]] | \n }}
+
; [[Synchro Material]] for {{ #arraymap: {{{sm_for}}} | * | $el | : "{{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}"[[Synchro Material for::$el| ]] | \n }}
 
</div>
 
</div>
 
}}{{ #if: {{{misc<includeonly>|</includeonly>}}} |
 
}}{{ #if: {{{misc<includeonly>|</includeonly>}}} |
 
<div class="hlist">
 
<div class="hlist">
; Miscellaneous {{ #arraymap: {{{misc}}} | * | $misc | : [[Misc::$misc]] | \n }}
+
; Miscellaneous {{ #arraymap: {{{misc}}} | * | $el | : {{ #show: $el |?English name (linked) |default=[[$el|{{trim|{{ #explode: $el | ( }}}}]] }}[[Misc::$el| ]] | \n }}
 
</div>
 
</div>
 +
}}{{ #if: {{{monster|}}}
 +
  | {{ #if: {{{atk|}}}
 +
    | {{ #iferror: {{ #expr: {{{atk}}} }}
 +
      || {{ #ifeq: {{{atk}}} | {{{def}}} | [[Misc::Equal ATK and DEF| ]] }}
 +
    }}
 +
  }}{{ #if: {{{token|}}} || {{ #if: {{ #arraysearch: @types | Tuner }} || [[Misc::Non-Tuner monster| ]] }}{{ #arraymap: Ritual, Fusion, Synchro, Xyz, Link, Pendulum, Maximum | , | $monster_type | {{ #if: {{ #arraysearch: @types | $monster_type }} || [[Misc::Non-$monster_type Monster| ]] }} | <!-- no delimiter --> }} }}
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation}}
Copy paste the following to add this to a template:
 
<pre>
 
{{Search categories
 
| supports                = {{{supports|}}}
 
| anti-supports            = {{{anti-supports|}}}
 
| archseries              = {{{archseries|}}}
 
| supports_archetypes      = {{{supports_archetypes|}}}
 
| anti-supports_archetypes = {{{anti-supports_archetypes|}}}
 
| related_to_archseries    = {{{related_to_archseries|}}}
 
| counter                  = {{{counter|}}}
 
| action                  = {{{action|}}}
 
| stat_change              = {{{stat_change|}}}
 
| m/s/t                    = {{{m/s/t|}}}
 
| summoning                = {{{summoning|}}}
 
| attack                  = {{{attack|}}}
 
| banished                = {{{banished|}}}
 
| life_points              = {{{life_points|}}}
 
| fm_for                  = {{{fm_for|}}}
 
| sm_for                  = {{{sm_for|}}}
 
| misc                    = {{{misc|}}}
 
}}
 
</pre>
 
 
</noinclude>
 
</noinclude>

Latest revision as of 02:48, 12 July 2023

Mentions
"[[{{{mentions}}}|{{{mentions}}}]]"
Supports
[[{{{supports}}}|{{{supports}}}]]
Anti-supports
[[{{{anti-supports}}}|{{{anti-supports}}}]]
Archetypes and series
[[{{{archseries}}}|{{{archseries}}}]]
Supports archetypes
"[[{{{supports archetypes}}}|{{{supports archetypes}}}]]"
Anti-supports archetypes
"[[{{{anti-supports archetypes}}}|{{{anti-supports archetypes}}}]]"
Related to archetypes and series
[[{{{related to archseries}}}|{{{related to archseries}}}]]
Counters
[[{{{counter}}}|{{{counter}}}]]
Actions
[[{{{action}}}|{{{action}}}]]
Stat changes
[[{{{stat_change}}}|{{{stat_change}}}]]
Monster/Spell/Trap categories
[[{{{m/s/t}}}|{{{m/s/t}}}]]
Summoning categories
[[{{{summoning}}}|{{{summoning}}}]]
Attack categories
[[{{{attack}}}|{{{attack}}}]]
Banished categories
[[{{{banished}}}|{{{banished}}}]]
LP
[[{{{life_points}}}|{{{life_points}}}]]
Fusion Material for
"[[{{{fm for}}}|{{{fm for}}}]]"
Synchro Material for
"[[{{{sm for}}}|{{{sm for}}}]]"
Miscellaneous
[[{{{misc}}}|{{{misc}}}]]