Template:Minorrow: Difference between revisions
imported>Ryangibsonstewart stray sign |
imported>Ryangibsonstewart eliminate need for season variable |
||
| Line 1: | Line 1: | ||
<includeonly> |
<includeonly> |
||
{{#switch: {{#expr: {{minorcount|season={{{ |
{{#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={{{ |
{{#ifeq: {{#expr: ({{minorcount|season={{#sub: {{PAGENAME}} | {{#expr: {{#rpos: {{PAGENAME}} | Season }} +7 }} }} }} + 1 - {{{start|0}}}) < 1}} | 1 | | |
||
{{#dpl:|category=Season {{seasonnumber|season={{{ |
{{#dpl:|category=Season {{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}} |
||
| Line 14: | Line 14: | ||
==Usage== |
==Usage== |
||
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.) |
||
Revision as of 20:48, 21 September 2009
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=}}