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 (QC)
m (fix murakumo links)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly><div class="NOL-tabs-wrapper"><ul class="NOL-tabs"><li>[[{{{1}}}|Overview]]</li></ul>{{#subpages:
== Preview ==
|page={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}
|format=ul
|pathstyle=
|showpage=no
|element=div
|class=NOL-tabs
|kidsonly=yes
|default=<span style="display:none;"></span>
}}</div><!--
--></includeonly><!--


===Default===
DOCUMENTATION BEGINS BELOW
 
{{Character Tabs|Kagura Mutsuki}}
{{Character Tabs|Kagura Mutsuki|Gallery}}
 
===With movelist subpage===
 
{{Character Tabs|Kagura Mutsuki||Movelist=yes}}
{{Character Tabs|Kagura Mutsuki|Gallery|Movelist=yes}}


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


On a character's subpage:
or for pages with different display names:
{{Character Tabs|character name|subpage}}
{{Character Tabs|Λ-No.11-|Lambda-11}}
{{Character Tabs|Kagura Mutsuki|Gallery}}
</nowiki></pre>
</nowiki></pre>


===To show the movelist subpage===
== Testing ==
<pre><nowiki>
1 Character {{Character Tabs|Λ-No.11-|Lambda-11}}
{{Character Tabs|character name|subpage
2 Character {{Character Tabs|Bang Shishigami}}
  | Movelist=anything that's not blank, including "no" (leave blank or remove this parameter for "no")
3 BBTAG {{Character Tabs|BlazBlue: Cross Tag Battle}}
}}
4 No subpages {{Character Tabs|Template:Character Tabs}}
{{Character Tabs|Kagura Mutsuki||Movelist=yes}}
5
{{Character Tabs|Kagura Mutsuki|Gallery|Movelist=yes}}
6
</nowiki></pre>
== Notes ==
Uses the [https://github.com/JeroenDeDauw/SubPageList/blob/master/doc/USAGE.md SubPageList] extension, which supposedly should work as intended. However, template parsing fails and showpage=yes might not be working as intended (instead of being appended to the list as a list item ("li" element), it is being appended as a separate paragraph ("p" element), which complicates styliing).
 
For now tabs will only show the list of subpages.
 
{{#tag:references}}


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

Latest revision as of 23:39, 18 March 2018

Usage

{{Character Tabs|character name}}

or for pages with different display names:
{{Character Tabs|Λ-No.11-|Lambda-11}}

Testing

1 Character

2 Character

3 BBTAG

4 No subpages

5 6

Notes

Uses the SubPageList extension, which supposedly should work as intended. However, template parsing fails and showpage=yes might not be working as intended (instead of being appended to the list as a list item ("li" element), it is being appended as a separate paragraph ("p" element), which complicates styliing).

For now tabs will only show the list of subpages.