Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Tabs: Difference between revisions

Template page
m (use Main instead of a character's name to reduce repetition in the header of the page)
(add optional movelist subpage, commented-out code for quotes subpage)
Line 2: Line 2:
== Preview ==
== Preview ==


<pre><nowiki>{{Character Tabs|Kagura Mutsuki}}</nowiki></pre>
===Without Movelist subpage===
 
{{Character Tabs|Kagura Mutsuki}}
{{Character Tabs|Kagura Mutsuki}}
{{Character Tabs|Kagura Mutsuki|Gallery}}


<pre><nowiki>{{Character Tabs|Kagura Mutsuki|Gallery}}</nowiki></pre>
===With Movelist subpage===
{{Character Tabs|Kagura Mutsuki|Gallery}}
 
{{Character Tabs|Kagura Mutsuki||Movelist=yes}}
{{Character Tabs|Kagura Mutsuki|Gallery|Movelist=yes}}


== Usage ==
== Usage ==
<pre><nowiki>
<pre><nowiki>
On the character's page:
On the character's page:
{{Character Tabs | character name}}
{{Character Tabs|character name}}
{{Character Tabs | Kagura Mutsuki}}
{{Character Tabs|Kagura Mutsuki}}


On a character's subpage:
On a character's subpage:
{{Character Tabs | character name | subpage}}
{{Character Tabs|character name|subpage}}
{{Character Tabs | Kagura Mutsuki | Gallery}}
{{Character Tabs|Kagura Mutsuki|Gallery}}
</nowiki></pre>
 
===To show the movelist subpage===
<pre><nowiki>
{{Character Tabs|character name|subpage
  | Movelist=anything that's not blank, including "no" (leave blank or remove this parameter for "no")
}}
{{Character Tabs|Kagura Mutsuki||Movelist=yes}}
{{Character Tabs|Kagura Mutsuki|Gallery|Movelist=yes}}
</nowiki></pre>
</nowiki></pre>


</noinclude><includeonly>
</noinclude><includeonly>
<!-- use this when I get around to making a theme
<!-- use this when I get around to making a theme.
<ul class="charnav">
<ul class="charnav">
   <li {{#if:{{{2|}}}|>[[{{{1}}}]]|class=active>{{{1}}}}}</li>
   <li {{#if:{{{2|}}}|>[[{{{1}}}]]|class=active>{{{1}}}}}</li>
Line 27: Line 40:
</ul>
</ul>
-->{{#if: {{{2|}}}
-->{{#if: {{{2|}}}
     | [[ {{{1}}} | Main ]]
     | [[ {{{1}}} |Main]]
     | '''Main'''
     | '''Main'''}}<!--
}} · {{#ifeq: {{{2}}} | Gallery
--> &middot; {{#ifeq: {{{2}}} | Gallery
     | '''Gallery'''
     | '''Gallery'''
     | [[ {{{1}}}/Gallery | Gallery ]]
     | [[ {{{1}}}/Gallery |Gallery]] }}<!--
}}<!-- · {{#ifeq: {{{2}}} | Movelist
-->{{#if:{{{Movelist|}}}| &nbsp;&middot; {{#ifeq: {{{2}}} | Movelist
     | '''Movelist'''
     | '''Movelist'''
     | [[ {{{1}}}/Movelist | Movelist ]]
     | [[{{{1}}}/Movelist|Movelist]] }}
}}-->
  |}}<!--
--><!-- &middot; {{#ifeq: {{{2}}} | Quotes
    | '''Quotes'''
    | [[{{{1}}}/Quotes|Quotes]]}}
-->
<hr></includeonly>
<hr></includeonly>

Revision as of 20:23, 28 December 2017

Preview

Without Movelist subpage

Main · Gallery


Main · Gallery


With Movelist subpage

Main · Gallery · Movelist


Main · Gallery · Movelist


Usage

On the character's page:
{{Character Tabs|character name}}
{{Character Tabs|Kagura Mutsuki}}

On a character's subpage:
{{Character Tabs|character name|subpage}}
{{Character Tabs|Kagura Mutsuki|Gallery}}

To show the movelist subpage

{{Character Tabs|character name|subpage
  | Movelist=anything that's not blank, including "no" (leave blank or remove this parameter for "no")
}}
{{Character Tabs|Kagura Mutsuki||Movelist=yes}}
{{Character Tabs|Kagura Mutsuki|Gallery|Movelist=yes}}