This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
User:Level/Characternav2: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Level season1 or season2 |
imported>Hardvice update for new templates; make season a switch to allow default |
||
| Line 8: | Line 8: | ||
| width="10%" style="text-align:right" | <span class="plainlinks" style="font-size:10px"> [{{SERVER}}/index.php?title=Template:characternav&action=edit edit]</span> |
| width="10%" style="text-align:right" | <span class="plainlinks" style="font-size:10px"> [{{SERVER}}/index.php?title=Template:characternav&action=edit edit]</span> |
||
|} |
|} |
||
{{#switch: {{{season}}} |
|||
{{ #if: {{{season1|}}} | {{User:Level/characterseason1}} | {{ #if: {{{season2|}}} | | {{User:Level/characterseason1}} }} }} |
|||
| one = {{characterseason1}} |
|||
|- |
|||
| 1 = {{characterseason1}} |
|||
{{ #if: {{{season2|}}} | {{User:Level/characterseason2}} }} |
|||
| two = {{characterseason2}} |
|||
| 2 = {{characterseason2}} |
|||
| #default = {{characterseason1}} |
|||
| ⚫ | |||
|- |
|- |
||
{{ #if: {{{future|}}} | {{future}} }} |
{{ #if: {{{future|}}} | {{future}} }} |
||
|- |
|- |
||
{{ #if: {{{animals|}}} | {{ |
{{ #if: {{{animals|}}} | {{animals}} }} |
||
|- |
|- |
||
{{ #if: {{{unaired|}}} | {{ |
{{ #if: {{{unaired|}}} | {{unaired}} }} |
||
|- |
|- |
||
| colspan="2" style="background-color:#CCD5F4; text-align: center; -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; font-size:9px;" | ''See Also'': |
| colspan="2" style="background-color:#CCD5F4; text-align: center; -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; font-size:9px;" | ''See Also'': |
||
{{#switch: {{{season|}}} |
|||
| two = [[Season One Characters]] • [[Portal:Minor Characters|Minor Characters]] |
|||
| 2 = [[Season One Characters]][[Portal:Minor Characters|Minor Characters]] |
|||
| one = [[Season Two Characters]] • [[Portal:Minor Characters/Season One|Minor Characters]] |
|||
| 1 = [[Season Two Characters]] • [[Portal:Minor Characters/Season One|Minor Characters]] |
|||
| default = [[Season Two Characters]] • [[Portal:Minor Characters/Season One|Minor Characters]]}} |
|||
• {{ #if: {{{future|}}} | |[[Portal:Future Characters|Future Characters]] • }}[[Portal:Graphic Novel Characters|Graphic Novel Characters]] • [[Portal:Groups|Groups]] • {{ #if: {{{animals|}}} | |[[Portal:Animals|Animals]] • }}{{ #if: {{{unaired|}}} | |[[Portal:Unaired Characters|Unaired Characters]] • }}[[Portal:Cast|Cast]] |
|||
|} |
|} |
||
<noinclude> |
<noinclude> |
||
== Usage == |
== Usage == |
||
Adds a navbar to the bottom of [[Portal:Characters|character]] pages. Add new [[Season One]] [[Portal:Characters/Season One|characters]] on [[ |
Adds a navbar to the bottom of [[Portal:Characters|character]] pages. Add new [[Season One]] [[Portal:Characters/Season One|characters]] on [[template:characterseason1]]([{{SERVER}}/index.php?title=template:characterseason1&action=edit edit]), [[Portal:Future Characters|future characters]] on [[Template:future]]([{{SERVER}}/index.php?title=Template:future&action=edit edit]), [[Portal:Animals|Animals]] on [[Template:animals]]([{{SERVER}}/index.php?title=Template:animals&action=edit edit]), [[Season Two]] [[Portal:Characters|characters]] on [[Template:characterseason2]]([{{SERVER}}/index.php?title=Template:characterseason2&action=edit edit]), [[Portal:Unaired Characters|Unaired Characters]] on [[Template:unaired]]([{{SERVER}}/index.php?title=Template:unaired&action=edit edit]). |
||
Please use only the latest season the character appeared: season1 or season2 not both. |
|||
{| style="background: transparent;" |
{| style="background: transparent;" |
||
|<pre>{{User:Level/characternav |
|<pre>{{User:Level/characternav |
||
|season=<!--Latest season in which character has appeared (one, two, 1, 2)--> |
|||
|season1=<!--anything if true--> |
|||
|season2=<!--anything if true--> |
|||
|future=<!--anything if true--> |
|future=<!--anything if true--> |
||
|animals=<!--anything if true--> |
|animals=<!--anything if true--> |
||
| Line 36: | Line 46: | ||
Will auto-clear sidebars on short articles. |
Will auto-clear sidebars on short articles. |
||
== Examples == |
|||
<pre>{{User:Level/Characternav2}} |
|||
or {{User:Level/Characternav2|season1=true}}</pre> |
|||
Gives: |
|||
{{User:Level/Characternav2}} |
|||
<pre>{{User:Level/Characternav2|season2=true}}</pre> |
|||
Gives: |
|||
{{User:Level/Characternav2|season2=true}} |
|||
<pre>{{User:Level/Characternav2 |
|||
|season1=true |
|||
|season2=true |
|||
|future=true |
|||
|animals=true |
|||
|unaired=true |
|||
}}</pre> |
|||
Gives: |
|||
{{User:Level/Characternav2 |
|||
|season1=true |
|||
|season2=true |
|||
|future=true |
|||
|animals=true |
|||
|unaired=true |
|||
| ⚫ | |||
[[:Category:Templates]] |
[[:Category:Templates]] |
||
Revision as of 01:17, 5 October 2007
Usage
Adds a navbar to the bottom of character pages. Add new Season One characters on template:characterseason1(edit), future characters on Template:future(edit), Animals on Template:animals(edit), Season Two characters on Template:characterseason2(edit), Unaired Characters on Template:unaired(edit).
{{User:Level/characternav
|season=<!--Latest season in which character has appeared (one, two, 1, 2)-->
|future=<!--anything if true-->
|animals=<!--anything if true-->
|unaired=<!--anything if true-->
}}
Will auto-clear sidebars on short articles. |