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
Jump to navigation
Jump to search
Content deleted Content added
imported>MiamiVolts debug dpl call |
imported>MiamiVolts m User:MiamiVolts/Eps/subtitle moved to Template:Eps/subtitle: move to mainspace |
||
| (20 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{slist|}}}|{{#if:{{{tlist|}}}|{{#if:{{{eplink|}}} |
|||
<includeonly>{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→«!--[[%PAGE%|%TITLE%]]--»,}}|→|{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}<br /> |
|||
|{{#ifexpr:{{#pos:{{{tlist|}}}|{{{eplink}}}<!--close pos-->}} > 0 |
|||
{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}<br /> |
|||
|{{#sub:{{{eplink}}}|0|{{#pos:{{{eplink}}}|{{pipe}}<!--close pos-->}}<!--close sub-->}}{{pipe}}{{#if:{{{{semi|}}}|:|;}} {{#explode:{{{slist|}}}|→|{{#sub:{{{tlist|}}}|{{#expr:{{#pos:{{{tlist|}}}|{{{eplink}}}}}-3}}|3<!--close sub-->}}<!--close explode-->}}]]<!-- |
|||
{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,←*²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}} |
|||
close ifexpr-->}} |
|||
</includeonly> |
}}}}}}</includeonly><noinclude> |
||
<noinclude> |
|||
<pre> |
|||
{{#explode:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→«!--[[%PAGE%|%TITLE%]]--»,}}|→|{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}|{{#expr:{{#pos:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,←*²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}|{{User:MiamiVolts/test|{{{1}}}}}}}-3}}|3}}}} |
|||
{{#switch: {{#sub: {{{1}}}|0|2}} |
|||
|gn = {{#explode:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,→«!--[[%PAGE%|%TITLE%]]--»,}}|→|{{#sub:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,\n*²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}|{{#expr:{{#pos:{{#dpl:|debug=1|category=Issues|uses=Template:Graphic Novel sidebar|include={Graphic Novel sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,\n*²{#pad:%NR%¦3¦0}²[[%PAGE%|%TITLE%]]«!--,--»}}|{{User:MiamiVolts/test|{{{1}}}}}}}-3}}|3}}}} |
|||
|wb = {{#explode:{{#sub:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}| |
|||
{{#expr:1+{{#pos:{{#dpl:|debug=1|category=Webisodes|uses=Template:Webisode sidebar|include={Webisode sidebar}:subtitle|includematch=/subtitle[^{{pipe}}]*/|format=,%TITLE%:,→,}}| |
|||
{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}+{{#len:{{#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%:,→,}}|{{#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%;,→,}}|{{#sub:{{delink|linktext={{User:MiamiVolts/test|{{{1}}}}}}}|36|-7}}}}}}}}|→}}<!--Episodes don't have subtitles yet, but searching them here for completeness in case they get them later.--> |
|||
}}</pre> |
|||
==Usage== |
==Usage== |
||
<pre> |
<pre> |
||
{{eps/subtitle |
{{eps/subtitle |
||
|eplink = <link generated using template:ep> |
|||
|slist = <→ separated list of subtitles> |
|||
|tlist = <matching ← separated list of titles> |
|||
|semi = <Optional argument to use semi-colon instead of colon, if true> |
|||
}} |
|||
</pre> |
</pre> |
||
This is a subtemplate of {{[[ |
This is a subtemplate of {{[[Template:Eps|eps]]}} that uses DPL to return a specially formatted link containing the subtitle, if any, from a specified title link corresponding to <nowiki>{{ep}}</nowiki>. |
||
{{nousercat|Subtemplates}} |
{{nousercat|Subtemplates}} |
||
Latest revision as of 18:04, 8 January 2009
Usage
{{eps/subtitle
|eplink = <link generated using template:ep>
|slist = <→ separated list of subtitles>
|tlist = <matching ← separated list of titles>
|semi = <Optional argument to use semi-colon instead of colon, if true>
}}
This is a subtemplate of {{eps}} that uses DPL to return a specially formatted link containing the subtitle, if any, from a specified title link corresponding to {{ep}}.