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:Eps/subtitle: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
mNo edit summary
imported>MiamiVolts
mNo edit summary
Line 1: Line 1:
{{#switch: {{#sub: {{{1}}}|0|2}}
{{#switch: {{#sub: {{{1}}}|0|2}}
|gn = {{#explode:{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,→,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|→}}
|gn = {{#explode:{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,→,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|→}}
|wb = {{#explode:{{#sub:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|uses=Template:Webisode sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,→,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|→}}
|wb = {{#explode:{{#sub:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,→,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|→}}
|{{#explode:{{#sub:{{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|include={Episode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,&rarr;,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|uses=Template:Episode sidebar|include={Episode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,&rarr;,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}<!--Episodes don't have subtitles yet, but searching them here for completeness in case they get them later.-->
|{{#explode:{{#sub:{{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|include={Episode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,&rarr;,}}|{{#expr:1+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#pos:{{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|include={Episode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,&rarr;,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}<!--Episodes don't have subtitles yet, but searching them here for completeness in case they get them later.-->
}}<noinclude>
}}<noinclude>
==Usage==
==Usage==

Revision as of 12:18, 6 January 2009

(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

{{eps/subtitle|<ep abbreviated listing>}}

This is a subtemplate of {{eps}} that uses DPL to return the subtitle, if any, of the specified title in {{ep}} format.