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.

Template:Minornavcell: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Ryangibsonstewart
update with default season number (why are there so many that say "2" still?), and add S4 to switch
imported>Ryangibsonstewart
eliminate the need for the "season" variable (and accompanying updates)
Line 1: Line 1:
<includeonly>{{#ifeq: {{#expr: {{minorcount|season={{{season|4}}}}} < {{#expr: {{{page|1}}} * 15 - 15}}}} | 1 | | {{pipe}} {{portalCharacter|lines=7|size={{{size|}}}|image={{#dpl:|category=Season {{seasonnumber|season={{{season|4}}}}} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={character box}:image|format=,,,|}}|link=Portal:Minor{{{page|1}}}{{#if:{{{season|4}}}|/Season {{#switch: {{{season|4}}} | 1 = One | 2 = Two | 3 = Three | 4 = Four }} }}|smalltext={{#sub: {{#dpl:|category=Season {{seasonnumber|season={{{season|4}}}}} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={Character box}:sortname|format=-}} |1|1}}-{{#sub: {{#dpl:|category=Season {{seasonnumber|season={{{season|4}}}}} Minor Characters|ordermethod=sortkey|count=1|offset={{#ifeq: {{#expr: {{minorcount|season={{{season|4}}}}} > {{#expr: {{{page|1}}} * 15 - 1}}}} | 1 | {{#expr: {{{page|1}}} * 15 - 1}} | {{minorcount|season={{{season|4}}}}}}}|include={character box}:sortname|format=-}} |1|1}}|text={{#dpl:|category=Season {{seasonnumber|season={{{season|4}}}}} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={Character box}:sortname|format=,,,}}<br>''through''<br>{{#dpl:|category=Season {{seasonnumber|season={{{season|4}}}}} Minor Characters|ordermethod=sortkey|count=1|offset={{#ifeq: {{#expr: {{minorcount|season={{{season|4}}}}} > {{#expr: {{{page|1}}} * 15 - 1}}}} | 1 | {{#expr: {{{page|1}}} * 15 - 1}} | {{minorcount|season={{{season|4}}}}}}}|include={Character box}:sortname|format=,,,}}}}}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{#expr: {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} < {{#expr: {{{page|1}}} * 15 - 15}}}} | 1 | | {{pipe}} {{portalCharacter|lines=7|size={{{size|}}}|image={{#dpl:|category=Season {{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={character box}:image|format=,,,|}}|link=Portal:Minor{{{page|1}}}{{#if:{{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }}|/Season {{#switch: {{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} | 1 = One | 2 = Two | 3 = Three | 4 = Four }} }}|smalltext={{#sub: {{#dpl:|category=Season {{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={Character box}:sortname|format=-}} |1|1}}-{{#sub: {{#dpl:|category=Season {{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=1|offset={{#ifeq: {{#expr: {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} > {{#expr: {{{page|1}}} * 15 - 1}}}} | 1 | {{#expr: {{{page|1}}} * 15 - 1}} | {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }}}}|include={character box}:sortname|format=-}} |1|1}}|text={{#dpl:|category=Season {{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=1|offset={{#expr: {{{page|1}}} * 15 - 15}}|include={Character box}:sortname|format=,,,}}<br>''through''<br>{{#dpl:|category=Season {{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=1|offset={{#ifeq: {{#expr: {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} > {{#expr: {{{page|1}}} * 15 - 1}}}} | 1 | {{#expr: {{{page|1}}} * 15 - 1}} | {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }}}}|include={Character box}:sortname|format=,,,}}}}}}</includeonly><noinclude>
{|
{|
|-
|-

Revision as of 20:46, 21 September 2009

[[Image:|Portal:Minor1/Season|75px]]


 
 
 
 
 
 

Usage

This template produces a navbar cell for a single portal page on Portal:Minor Characters.

Set |page= to match the portal page number.

{{minornavcell|page=|season=}}