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
m debug
imported>MiamiVolts
mNo edit summary
Line 1: Line 1:
<includeonly>{{#len:{{#switch: {{#sub: {{{1}}}|0|2}}
{{{1}}}
<noinclude><pre>{{#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%:,&rarr;,}}|{{#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%;,&rarr;,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}
|gn = {{#explode:{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel 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=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%;,&rarr;,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}
|wb = {{#explode:{{#sub:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,&rarr;,}}|
|wb = {{#explode:{{#sub:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,&rarr;,}}|
Line 6: Line 5:
{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}
{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#len:{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|&rarr;}}
|{{#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.-->
|{{#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.-->
}}</pre> noinclude>
}}}}</includeonly><noinclude>
==Usage==
==Usage==
<pre>
<pre>

Revision as of 04:28, 7 January 2009

Usage

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

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