More actions
m (remove hr since it's unneeded with the new css) |
m (Add a displayname option for use on the Main page of characters with a different displayname i.e. the Murakumos) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<ul class="NOL-tabs" style="margin:0px;"> | <ul class="NOL-tabs" style="margin:0px;"> | ||
<li style="display:inline-block;">[[{{{1}}}|Main]]<span class="NOL-tabs-divider"> · </span></li> | <li style="display:inline-block;">[[{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|Main]]<span class="NOL-tabs-divider"> · </span></li> | ||
<li style="display:inline-block;">[[{{{1}}}/Gallery|Gallery]]<span class="NOL-tabs-divider"> · </span></li> | <li style="display:inline-block;">[[{{{1}}}/Gallery|Gallery]]<span class="NOL-tabs-divider"> · </span></li> | ||
<li style="display:inline-block;">[[{{{1}}}/Gameplay|Gameplay]]<span class="NOL-tabs-divider"> · </span></li> | <li style="display:inline-block;">[[{{{1}}}/Gameplay|Gameplay]]<span class="NOL-tabs-divider"> · </span></li> | ||
Line 38: | Line 38: | ||
display:none; | display:none; | ||
}</pre></ref> | }</pre></ref> | ||
{{Character Tabs| | {{Character Tabs|Lambda-11|λ-No.11-}} | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 45: | Line 45: | ||
{{Character Tabs|Kagura Mutsuki}} | {{Character Tabs|Kagura Mutsuki}} | ||
On a character's | On a character's Main page for characters with a different display name (i.e. the Murakumo Units): | ||
{{Character Tabs|character name| | {{Character Tabs|character name|displayname}} | ||
{{Character Tabs| | {{Character Tabs|Lambda-11|λ-No.11-}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Revision as of 06:32, 18 February 2018
Usage
This template will not show links to pages that do not exist (i.e. are redlinked and carry the class "new" (a.new
). [1]
On the character's page: {{Character Tabs|character name}} {{Character Tabs|Kagura Mutsuki}} On a character's Main page for characters with a different display name (i.e. the Murakumo Units): {{Character Tabs|character name|displayname}} {{Character Tabs|Lambda-11|λ-No.11-}}
This tab includes links to the following subpages:
(Main) Gallery Gameplay Quotes
Notes
- ↑ This feature requires the following lines of css be added to any skin (i.e. to "Common.css" and "Mobile.css") that does not already include it (any skin other than the Cathedral skin):
/* CUSTOM TABS */ ul.NOL-tabs { margin:0px !important; } .NOL-tabs li { display: inline-block; } /* float the bullet points to the left of each item */ .NOL-tabs-divider { float: left; margin: 0px 5px; } /* hide new links */ .NOL-tabs li a.new { display: none !important; } /* hide bullet points for new links */ .NOL-tabs li a.new ~ span.NOL-tabs-divider { display: none; } /* hide bullet points for the first listed item */ .NOL-tabs li:first-child a ~ span.NOL-tabs-divider { display:none; }