Permanently protected template

Difference between revisions of "Template:Archseries navbox"

From Yugipedia
Jump to: navigation, search
(i think we need a VGEX ...)
(so I can (eventually) get a better idea of what uses the redirect)
 
(72 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{| border="1" cellspacing="0" width="100%" class="navbox collapsible {{{state|autocollapse}}}"
+
{{ #vardefine: $tas-nav-name | {{ #if: {{{1|}}} | {{Unlink|{{{1}}}}} | {{Normalized pagename|{{PAGENAME}}}} }} }}<!--
|-
+
-->{{ #vardefine: $tas-medium-abbr | {{ #switch: {{{medium|}}}
! valign="center" style="background:#ABCDEF; color:#000000" colspan="9" | '''[[{{{1|{{PAGENAME}}}}}]]'''
+
  | anime          = a
|-
+
  | manga          = m
! valign="center" style="background:#ABCDEF; color:#000000" colspan="9" | '''Members'''
+
  | Duel Links    = dl
|-
+
  | Rush Duel      = rd
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''TCG/OCG'''
+
  | D Team        = dtz
| valign="center" colspan="1" | <center>{{#ask: [[Medium::OCG||TCG]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] [[Card Category::Monster Cards]] |?English Name |format=list |template=NavboxList |link=none |limit=100 |sep = ●_}}</center>
+
  | OCG Structures = ost
 
+
  | #default      = o
<center>{{#ask: [[Medium::OCG||TCG]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  }}
|-
+
}}<!--
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''Anime/Manga'''
+
-->{{ #vardefine: $tas-medium | {{ #switch: {{ #var: $tas-medium-abbr }}
| valign="center" colspan="1" | <center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Card Category::Monster Cards]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  | o  = the OCG/TCG
 
+
  | = the anime
<center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>{{#ifeq: {{#ask: [[Class 4::VG]][[Archetypes::{{{1|{{PAGENAME}}}}}]] |format=count}}|0||
+
  | m  = the manga
{{!}} valign="center" width="10%" bgcolor="#AABBCC" {{!}} '''Video Game'''
+
  | dl  = Yu-Gi-Oh! Duel Links
{{!}} valign="center"  {{!}} <center>{{#ask: [[Class 4::VG]] [[Card Category::Monster Cards]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  | rd  = Yu-Gi-Oh! Rush Duel
 
+
  | dtz = Yu-Gi-Oh! D Team ZEXAL
<center>{{#ask: [[Class 4::VG]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  | ost = Yu-Gi-Oh! OCG Structures
}}
+
  }}
|-
+
}}<!--
! valign="center" style="background:#ABCDEF; color:#000000" colspan="9" | '''Support'''
+
-->{{ #vardefine: $tas-medium-property | {{ #switch: {{ #var: $tas-medium-abbr }}
|-
+
  | o  = [[Concept:CG cards]]
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''TCG/OCG'''
+
  | a  = [[Medium::Anime]]
| valign="center" colspan="1" | <center>{{#ask: [[Medium::OCG||TCG]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] [[Card Category::Monster Cards]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  | = [[Medium::Manga]]
 
+
  | dl  = [[Release::Yu-Gi-Oh! Duel Links]]
<center>{{#ask: [[Medium::OCG||TCG]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  | rd  = [[Medium::Rush Duel]]
|-
+
  | dtz = [[Category:Yu-Gi-Oh! D Team ZEXAL cards]]
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''Anime/Manga'''
+
  | ost = [[Category:Yu-Gi-Oh! OCG Structures cards]]
| valign="center" colspan="1" | <center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] [[Card Category::Monster Cards]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  }}
 
+
}}<!--
<center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>{{#ifeq: {{#ask: [[Class 4::VG]][[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |format=count}}|0||
+
if this is a "card" page (marked as a member, (anti-)support, or related), check if it's a Duel Links Skill page
{{!}} valign="center" width="10%" bgcolor="#AABBCC" {{!}} '''Video Game'''
+
so we can customize the "This _ is a member of this _", etc. messages later
{{!}} valign="center"  {{!}} <center>{{#ask: [[Class 4::VG]] [[Card Category::Monster Cards]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
-->{{ #vardefine: $tas-page-type | {{ #if: {{{member|}}}{{{support|}}}{{{anti-support|}}}{{{related|}}}
 
+
  | {{ #ifeq: {{{type}}} | Skill | Skill | card }}
<center>{{#ask: [[Class 4::VG]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
  }}
}}
+
}}<!--
|-
+
archseries name, as used in the names of its member/etc. lists
! valign="center" style="background:#ABCDEF; color:#000000" colspan="9" | '''Related'''
+
-->{{ #vardefine: $tas-list-name | {{ #explode: {{ #explode: {{ #var: $tas-nav-name }} | (series) }} | (archetype) }} }}<!--
|-
+
-->{{ #vardefine: $tas-support | {{ #ifexpr: {{ #ask: [[Archetype support::{{ #var: $tas-nav-name }}]] {{ #var: $tas-medium-property }} | format=count }} > 0 | 1 }} }}<!--
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''TCG/OCG'''
+
-->{{ #vardefine: $tas-anti-support | {{ #ifexpr: {{ #ask: [[Archetype anti-support::{{ #var: $tas-nav-name }}]] {{ #var: $tas-medium-property }} | format=count }} > 0 | 1 }} }}<!--
| valign="center" colspan="1" | <center>{{#ask: [[Medium::OCG||TCG]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] [[Card Category::Monster Cards]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
-->{{ #vardefine: $tas-related | {{ #ifexpr: {{ #ask: [[Archseries related::{{ #var: $tas-nav-name }}]] {{ #var: $tas-medium-property }} | format=count }} > 0 | 1 }} }}<!--
 
+
-->{{ #vardefine: $tas-type | {{ #if: {{ #var: $tas-support }}{{ #var: $tas-anti-support }} | archetype | series }} }}<!--
<center>{{#ask: [[Medium::OCG||TCG]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
-->{{ #vardefine: $tas-ja-name | {{Name|{{ #var: $tas-nav-name }}|ja}} }}<!--
|-
+
-->{{ #vardefine: $tas-quotes | {{ #ifeq: {{ #var: $tas-type }} | archetype | " }} }}<!--
| valign="center" colspan="1" width="10%" bgcolor="#AABBCC" | '''Anime/Manga'''
+
-->{{ #vardefine: $tas-link-template | {{ #if: {{ #show: {{ #var: $tas-nav-name }} |?Cut from card names }} | Archseries navbox/cut link | Link with quotes }} }}<!--
| valign="center" colspan="1" | <center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] [[Card Category::Monster Cards]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
-->{{Navbox|{{ #if: {{{child|}}} | child }}
 
+
| title  = {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $tas-quotes }}[[:{{ #var: $tas-nav-name }}|{{trim|{{ #explode: {{ #var: $tas-nav-name }} | ( }}}}]]{{ #var: $tas-quotes }} }}{{ #if: {{ #var: $tas-ja-name }} | &emsp;<span lang="ja">{{ #if: {{ #var: $tas-quotes }} | 「 }}{{ #var: $tas-ja-name }}{{ #if: {{ #var: $tas-quotes }} | 」 }}</span> }}<span style="float: right; line-height: normal; font-variant: small-caps;"><span class="explain" style="font-variant: normal;" title="This {{ #var: $tas-type }} is featured in {{ #var: $tas-medium }}.">{{ #var: $tas-medium-abbr }}</span> {{ #if: {{{member|}}} | <span class="explain" title="This {{ #var: $tas-page-type }} is a member of this {{ #var: $tas-type }}.">m</span> }} {{ #if: {{{support|}}} | <span class="explain" title="This {{ #var: $tas-page-type }} supports this archetype.">+</span> }} {{ #if: {{{anti-support|}}} | <span class="explain" title="This {{ #var: $tas-page-type }} anti-supports this archetype.">-</span> }} {{ #if: {{{related|}}} | <span class="explain" title="This {{ #var: $tas-page-type }} is related to this {{ #var: $tas-type }}.">r</span> }}</span>
<center>{{#ask: [[Class 1::AniEx||ManEx||AniManEx]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>{{#ifeq: {{#ask: [[Class 4::VG]][[Archetype Related::{{{1|{{PAGENAME}}}}}]] |format=count}}|0||
+
| state  = <includeonly>{{ #if: {{{state|}}} | {{{state}}} | autocollapse }}</includeonly>
{{!}} valign="center" width="10%" bgcolor="#AABBCC" {{!}} '''Video Game'''
+
| navbar  = plain
{{!}} valign="center"  {{!}} <center>{{#ask: [[Class 4::VG]] [[Card Category::Monster Cards]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
| listclass = hlist
 
+
| group1  = [[List of "{{ #var: $tas-list-name }}" cards|Members]]
<center>{{#ask: [[Class 4::VG]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] [[Attribute::Spell||Trap]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}</center>
+
| list1  = {{ #ask: [[Archseries::{{ #var: $tas-nav-name }}]] {{ #var: $tas-medium-property }} |?English name |format=ul |link=none |template={{ #var: $tas-link-template }} |userparam={{ #replace: {{ #var: $tas-list-name }} | - | %- }} |limit=60 }}
}}
+
| group2  = [[List of "{{ #var: $tas-list-name }}" support cards|Support]]
|}</includeonly><noinclude>
+
| list2  = {{ #if: {{ #var: $tas-support }} | {{ #ask: [[Archetype support::{{ #var: $tas-nav-name }}]] [[Page type::Card page]] {{ #var: $tas-medium-property }} |?English name |format=ul |link=none |template=Link with quotes |limit=60 }} }}
 
+
| group3  = [[List of "{{ #var: $tas-list-name }}" anti-support cards|Anti-support]]
[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
| list3  = {{ #if: {{ #var: $tas-anti-support }} | {{ #ask: [[Archetype anti-support::{{ #var: $tas-nav-name }}]] [[Page type::Card page]] {{ #var: $tas-medium-property }} |?English name |format=ul |link=none |template=Link with quotes |limit=60 }} }}
 +
| group4  = Related
 +
| list4  = {{ #if: {{ #var: $tas-related }} | {{ #ask: [[Archseries related::{{ #var: $tas-nav-name }}]] [[Page type::Card page]] {{ #var: $tas-medium-property }} |?English name |format=ul |link=none |template=Link with quotes |limit=60 }} }}
 +
| group5  = Related Skills
 +
| list5  = {{ #ifeq: {{ #var: $tas-medium-abbr }} | dl | {{ #ask: <q>[[Archetype support::{{ #var: $tas-nav-name }}]] OR [[Archetype anti-support::{{ #var: $tas-nav-name }}]] OR [[Archseries related::{{ #var: $tas-nav-name }}]]</q> [[Page type::Skill page]] {{ #var: $tas-medium-property }} |?English name |format=ul |link=none |template=Link with quotes |limit=60 }} }}
 +
}}<noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 11:41, 15 December 2023