Difference between revisions of "Template:Character navbox"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
Line 2: Line 2:
  
 
An idea here is to make sub-sections for Quest NPCs, Vendors etc. They can be listed to the left or so. Or, they can have their own TR in ALL titles.
 
An idea here is to make sub-sections for Quest NPCs, Vendors etc. They can be listed to the left or so. Or, they can have their own TR in ALL titles.
 +
 +
 +
 +
!Use only ONE of these variables!
 +
<nowiki>{{Character_navbox</nowiki>
 +
|d3              Confirmed Diablo III NPC
 +
|poss            Possible Diablo III NPC
 +
|d2              Diablo II NPC
 +
|d1              Diablo I NPC
 +
|main            Main Character
 +
|imp              Important Character
 +
|minor            Minor Character
 +
<nowiki>}}</nowiki>
  
  
 
</noinclude><!--
 
</noinclude><!--
--><table align="center" id="CharacterNavbox" class="navbox NavTabContainer"><!--
+
--><table align="center" class="navbox NavTabContainer"><!--
 
--> <tr><!--
 
--> <tr><!--
-->  <th colspan="3" style="line-height:16px;"><div style="float:right; margin-left: -10px;">{{editlink|Template:Character_navbox|e|www|A|A}}</div>[[Character]]s & [[NPC]]s <br /><!--
+
-->  <th colspan="3"><div style="float:right; margin-left: -10px;">{{editlink|Template:Character_navbox|e|www|A|A}}</div>[[Character]]s & [[NPC]]s <br /><!--
-->  <span style="font-size:9px; display: block; margin: 10px 0px -3px 0px;"><!--
+
-->  <span style="font-size:9px; display: block; margin: 10px 0px -4px 0px;"><!--
-->    <span class="NavTabHeader SelectedNavTabHeader" title="Conf" >'''Confirmed D3 NPCs'''</span><!--
+
-->    <span class="NavTabHeader {{#if: {{{1|}}} || SelectedNavTabHeader}} {{#if: <!--
-->    <span class="NavTabHeader" title="Poss">'''Possible D3 NPCs'''</span><!--
+
-->    {{#switch: {{{1|}}} |d3=d3 }}<!--
-->    <span class="NavTabHeader" title="D2" >'''D2 NPCs'''</span><!--
+
-->    | SelectedNavTabHeader}}" title="Conf" >'''Confirmed D3 NPCs'''</span><!--
-->    <span class="NavTabHeader" title="D1" >'''D1 NPCs'''</span><!--
+
-->    <span class="NavTabHeader {{#if: <!--
-->    <span class="NavTabHeader" title="Main" >'''Main Characters'''</span><!--
+
-->    {{#switch: {{{1|}}} |poss=poss }}<!--
-->    <span class="NavTabHeader" title="Imp" >'''Important Characters'''</span><!--
+
-->    | SelectedNavTabHeader}}" title="Poss">'''Possible D3 NPCs'''</span><!--
-->    <span class="NavTabHeader" title="Minor" >'''Minor Characters'''</span><!--
+
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |d2=d2 }}<!--
 +
-->    | SelectedNavTabHeader}}" title="D2" >'''D2 NPCs'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |d1=d1 }}<!--
 +
-->    | SelectedNavTabHeader}}" title="D1" >'''D1 NPCs'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |main=main }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Main" >'''Main Characters'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |imp=imp }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Imp" >'''Important Characters'''</span><!--
 +
-->    <span class="NavTabHeader {{#if: <!--
 +
-->    {{#switch: {{{1|}}} |minor=minor }}<!--
 +
-->    | SelectedNavTabHeader}}" title="Minor" >'''Minor Characters'''</span><!--
 
-->  </span><!--
 
-->  </span><!--
 
-->  </th><!--
 
-->  </th><!--

Revision as of 12:00, 1 June 2010


An idea here is to make sub-sections for Quest NPCs, Vendors etc. They can be listed to the left or so. Or, they can have their own TR in ALL titles.


!Use only ONE of these variables!
{{Character_navbox
|d3               Confirmed Diablo III NPC
|poss             Possible Diablo III NPC
|d2               Diablo II NPC
|d1               Diablo I NPC
|main             Main Character
|imp              Important Character
|minor            Minor Character
}}