More actions
m (change to autopopulate from subpages) |
m (change to use SubPageList extension) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#subpages: | ||
|page={{#if:{{{2|}}}|{{{2}}}|{{{1}}}}} | |||
|format=ul | |||
|pathstyle= | |||
<!-- | |showpage=no | ||
|element=div | |||
|class=NOL-tabs | |||
|kidsonly=yes | |||
|default=<span style="display:none;"></span> | |||
}}<!-- | |||
--></includeonly><!-- | --></includeonly><!-- | ||
Line 10: | Line 15: | ||
--><noinclude> | --><noinclude> | ||
== Usage == | == Usage == | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Character Tabs|character name}} | {{Character Tabs|character name}} | ||
or for pages with different display names: | |||
{{Character Tabs| | {{Character Tabs|Λ-No.11-|Lambda-11}} | ||
</nowiki></pre> | </nowiki></pre> | ||
== Testing == | |||
1 Character {{Character Tabs|Λ-No.11-|Lambda-11}} | |||
( | 2 Character {{Character Tabs|Bang Shishigami}} | ||
3 BBTAG {{Character Tabs|BlazBlue: Cross Tag Battle}} | |||
4 No subpages {{Character Tabs|Template:Character Tabs}} | |||
5 | |||
6 | |||
== 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}} | {{#tag:references}} | ||
</noinclude> | </noinclude> |
Revision as of 23:09, 28 February 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.