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:Minorrow: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Hardvice
test text=
No edit summary
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch: {{#expr: {{minorcount|season={{{season|2}}}}} + 1 - {{{start|0}}}}}
{{#switch: {{#expr: {{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} + 1 - {{{start|0}}}}}
| 1 = </table><table>
| 1 = </table><table>
| 2 = </table><table width=30%>
| 2 = </table><table width=30%>
Line 7: Line 7:
}}
}}
|- valign=top
|- valign=top
{{#ifeq: {{#expr: ({{minorcount|season={{{season|2}}}}} + 1 - {{{start|0}}}) < 1}} | 1 | |
{{#ifeq: {{#expr: ({{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} + 1 - {{{start|0}}}) < 1}} | 1 | |
{{#dpl:|category=+Minor Characters|category=Season {{seasonnumber|season={{{season|2}}}}} Characters|ordermethod=sortkey|count=5|offset={{{start|0}}}|format=,{{pipe}}²{PortalCharacter¦lines=3¦size=auto¦link=%TITLE%¦text={{sortnametest|category1=Minor Characters|category2=Season {{seasonnumber|season={{{season|2}}}}} Characters|item={{#expr:%NR%-1}}|template=Character box|variable=sortname}},,|include={character box}:image|secseparators=¦image=,}²\n|distinct=strict}}}}</includeonly><noinclude>
{{#dpl:|category={{seasonnumber|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} Minor Characters|ordermethod=sortkey|count=5|offset={{{start|0}}}|format=,{{pipe}}²{PortalCharacter¦lines=3¦size=auto¦link=%TITLE%,,|include={character box}:image,{character box}:sortname,{character box}:died|secseparators=¦image=,,¦text=,,¦deceased=,}²\n|distinct=strict}}}}</includeonly><noinclude>
{|
{|
{{minorrow}}
{{minorrow}}
|}
|}








==Usage==
==Usage==
Produces a row of portal cells for [[Portal:Minor Characters|minor character portal pages]].
This template produces a row of portal cells for [[Portal:Minor Characters|minor character portal pages]].


Specify the article number for the first cell in the row (first cell on the first page is 0, first cell of the second row of the first page is 5, first cell of the last row of the first page is 10, first cell on second page is 15, etc.)
Specify the article number for the first cell in the row (first cell on the first page is 0, first cell of the second row of the first page is 5, first cell of the last row of the first page is 10, first cell on second page is 15, etc.)

Latest revision as of 10:09, 14 August 2021

Extension:DynamicPageList3 (DPL3), version 3.6.1: Error: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect: The DynamicPageList3 extension (version 3.6.1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code></code>

Usage

This template produces a row of portal cells for minor character portal pages.

Specify the article number for the first cell in the row (first cell on the first page is 0, first cell of the second row of the first page is 5, first cell of the last row of the first page is 10, first cell on second page is 15, etc.)

Blank cells/rows will be suppressed automatically. Incomplete rows will be centered automatically.

{{minorrow|start=|season=}}