Permanently protected template

Difference between revisions of "Template:Archseries navbox"

From Yugipedia
Jump to: navigation, search
(let's hide the "Support" and "Related" sections when there is no support or relation, and link to the member and support lists when we're not on the archetype page)
(so I can (eventually) get a better idea of what uses the redirect)
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{IfSemantics|{{Navbox|{{ #if: {{{child|}}} | child }}
+
{{ #vardefine: $tas-nav-name | {{ #if: {{{1|}}} | {{Unlink|{{{1}}}}} | {{Normalized pagename|{{PAGENAME}}}} }} }}<!--
| title  = {{#if:{{{name|}}}|{{{name}}}|[[{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}]]}}
+
-->{{ #vardefine: $tas-medium-abbr | {{ #switch: {{{medium|}}}
| state  = <includeonly>{{#if:{{{state|}}}|{{{state}}}|autocollapse}}</includeonly>
+
  | anime          = a
 +
  | manga          = m
 +
  | Duel Links    = dl
 +
  | Rush Duel      = rd
 +
  | D Team        = dtz
 +
  | OCG Structures = ost
 +
  | #default      = o
 +
  }}
 +
}}<!--
 +
-->{{ #vardefine: $tas-medium | {{ #switch: {{ #var: $tas-medium-abbr }}
 +
  | o  = the OCG/TCG
 +
  | a  = the anime
 +
  | m  = the manga
 +
  | dl  = Yu-Gi-Oh! Duel Links
 +
  | rd  = Yu-Gi-Oh! Rush Duel
 +
  | dtz = Yu-Gi-Oh! D Team ZEXAL
 +
  | ost = Yu-Gi-Oh! OCG Structures
 +
  }}
 +
}}<!--
 +
-->{{ #vardefine: $tas-medium-property | {{ #switch: {{ #var: $tas-medium-abbr }}
 +
  | o  = [[Concept:CG cards]]
 +
  | a  = [[Medium::Anime]]
 +
  | m  = [[Medium::Manga]]
 +
  | dl  = [[Release::Yu-Gi-Oh! Duel Links]]
 +
  | rd  = [[Medium::Rush Duel]]
 +
  | dtz = [[Category:Yu-Gi-Oh! D Team ZEXAL cards]]
 +
  | ost = [[Category:Yu-Gi-Oh! OCG Structures cards]]
 +
  }}
 +
}}<!--
 +
if this is a "card" page (marked as a member, (anti-)support, or related), check if it's a Duel Links Skill page
 +
so we can customize the "This _ is a member of this _", etc. messages later
 +
-->{{ #vardefine: $tas-page-type | {{ #if: {{{member|}}}{{{support|}}}{{{anti-support|}}}{{{related|}}}
 +
  | {{ #ifeq: {{{type}}} | Skill | Skill | card }}
 +
  }}
 +
}}<!--
 +
archseries name, as used in the names of its member/etc. lists
 +
-->{{ #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 }} }}<!--
 +
-->{{ #vardefine: $tas-anti-support | {{ #ifexpr: {{ #ask: [[Archetype anti-support::{{ #var: $tas-nav-name }}]] {{ #var: $tas-medium-property }} | format=count }} > 0 | 1 }} }}<!--
 +
-->{{ #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 }} }}<!--
 +
-->{{ #vardefine: $tas-ja-name | {{Name|{{ #var: $tas-nav-name }}|ja}} }}<!--
 +
-->{{ #vardefine: $tas-quotes | {{ #ifeq: {{ #var: $tas-type }} | archetype | " }} }}<!--
 +
-->{{ #vardefine: $tas-link-template | {{ #if: {{ #show: {{ #var: $tas-nav-name }} |?Cut from card names }} | Archseries navbox/cut link | Link with quotes }} }}<!--
 +
-->{{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>
 +
| state  = <includeonly>{{ #if: {{{state|}}} | {{{state}}} | autocollapse }}</includeonly>
 
| navbar  = plain
 
| navbar  = plain
 
+
| listclass = hlist
| liststyle = text-align: center;
+
| group1 = [[List of "{{ #var: $tas-list-name }}" cards|Members]]
 
+
| 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 }}
| list1style = background: #DDF;
+
| group2 = [[List of "{{ #var: $tas-list-name }}" support cards|Support]]
| list1  = '''{{ #if: {{{1|}}} | [[List of "{{{1}}}" cards|Members]] | Members }}'''
+
| 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]]
| group2  = TCG/OCG
+
| 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 }} }}
| list2   = {{#ask: [[Concept:CG monsters]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |limit=100 |sep = ●_}}&nbsp;
+
| 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 }} }}
{{#ask: [[Concept:CG spells and traps]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
+
| 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 }} }}
| group3  = Anime/Manga
+
}}<noinclude>
| list3  = {{#ask: [[Concept:Anime and manga monsters]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}&nbsp;
+
{{Documentation}}
 
 
{{#ask: [[Concept:Anime and manga spells and traps]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
| group4  = Video Game
 
| list4  = {{#ifeq: {{#ask: [[Concept:Unofficial VG cards]][[Archetypes::{{{1|{{PAGENAME}}}}}]] |format=count}}| 0 | | {{#ask: [[Concept:Unofficial VG cards]] [[Card Category::Monster Card]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Unofficial VG spells and traps]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| group5  = Bandai
 
| list5  = {{#ifeq: {{#ask: [[Class 1::Bandai]][[Archetypes::{{{1|{{PAGENAME}}}}}]] |format=count}}| 0 | | {{#ask: [[Concept:Bandai monsters]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Bandai spell and traps]] [[Archetypes::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| list6style = background: #DDF;
 
| list6  = {{ #if: {{ #ask: [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] | '''{{ #if: {{{1|}}} | [[List of "{{{1}}}" support cards|Support]] | Support }}''' }}
 
 
 
| group7  = TCG/OCG
 
| list7   = {{ #if: {{ #ask: [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] | {{#ask: [[Concept:CG monsters]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}&nbsp;
 
 
 
{{#ask: [[Concept:CG spells and traps]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| group8  = Anime/Manga
 
| list8  = {{ #if: {{ #ask: [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] | {{#ask: [[Concept:Anime and manga monsters]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}&nbsp;
 
 
 
{{#ask: [[Concept:Anime and manga spells and traps]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| group9 = Video Game
 
| list9  = {{ #if: {{ #ask: [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] | {{#ifeq: {{#ask: [[Concept:Unofficial VG cards]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 | | {{#ask: [[Concept:Unofficial VG monsters]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Unofficial VG spell and traps]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }} }}
 
 
 
| group10 = Bandai
 
| list10  = {{ #if: {{ #ask: [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] | {{#ifeq: {{#ask: [[Class 1::Bandai]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 | | {{#ask: [[Concept:Bandai monsters]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Bandai spell & traps]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }} }}
 
 
 
| list11style = background: #DDF;
 
| list11 = {{ #if: {{ #ask: [[Archetype Related::{{{1|{{PAGENAME}}}}}]] | '''Related''' }}
 
 
 
| group12 = TCG/OCG
 
| list12  = {{ #if: {{ #ask: [[Archetype Related::{{{1|{{PAGENAME}}}}}]] | {{#ask: [[Concept:CG monsters]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}&nbsp;
 
 
 
{{#ask: [[Concept:CG spells and traps]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| group13 = Anime/Manga
 
| list13  = {{ #if: {{ #ask: [[Archetype Related::{{{1|{{PAGENAME}}}}}]] | {{#ask: [[Concept:Anime and manga monsters]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}&nbsp;
 
 
 
{{#ask: [[Concept:Anime and manga spells and traps]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }}
 
 
 
| group14 = Video Game
 
| list14  = {{ #if: {{ #ask: [[Archetype Related::{{{1|{{PAGENAME}}}}}]] | {{#ifeq: {{#ask: [[Concept:Unofficial VG cards]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 | | {{#ask: [[Concept:Unofficial VG monsters]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Unofficial VG spell and traps]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }} }}
 
 
 
| group15 = Bandai
 
| list15  = {{ #if: {{ #ask: [[Archetype Related::{{{1|{{PAGENAME}}}}}]] | {{#ifeq: {{#ask: [[Class 1::Bandai]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 | | {{#ask: [[Concept:Bandai monsters]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}}
 
 
 
{{#ask: [[Concept:Bandai spell and traps]] [[Archetype Related::{{{1|{{PAGENAME}}}}}]] |?English Name |format=list |template=NavboxList |link=none |sep = ●_}} }} }}
 
}}
 
|<noinclude>{{SMW notice}}</noinclude>}}<noinclude>
 
[[Category:Templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 11:41, 15 December 2023