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
test using tag format
 
imported>MiamiVolts
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{slist|}}}|{{#if:{{{tlist|}}}|{{#if:{{{eplink|}}}
<!--Episodes don't have subtitles yet, but searching them here for completeness in case they get them.
|{{#ifexpr:{{#pos:{{{tlist|}}}|{{{eplink}}}<!--close pos-->}} > 0
--><DPL>
|{{#sub:{{{eplink}}}|0|{{#pos:{{{eplink}}}|{{pipe}}<!--close pos-->}}<!--close sub-->}}{{pipe}}{{#if:{{{{semi|}}}|&#58;|&#59;}} {{#explode:{{{slist|}}}|&rarr;|{{#sub:{{{tlist|}}}|{{#expr:{{#pos:{{{tlist|}}}|{{{eplink}}}}}-3}}|3<!--close sub-->}}<!--close explode-->}}]]<!--
debug=1
close ifexpr-->}}
title={{delink|{{epn|{{{1}}}}}}}
}}}}}}</includeonly><noinclude>
uses=Template:{{#switch: {{#sub: {{{1}}}|0|2}}|gn = Graphic Novel|wb = Webisode|Episode}} sidebar
include={{{#switch: {{#sub: {{{1}}}|0|2}}|gn = Graphic Novel|wb = Webisode|Episode}} sidebar}:subtitle
includematch=/subtitle[^{{pipe}}]*/
</DPL><noinclude>
==Usage==
==Usage==
<pre>
This is a subtemplate of <nowiki>{{eps}}</nowiki> that uses DPL to return the subtitle, if any, of the specified title in <nowiki>{{ep}}</nowiki> format.
{{eps/subtitle
|eplink = <link generated using template:ep>
|slist = <&rarr; separated list of subtitles>
|tlist = <matching &larr; separated list of titles>
|semi = <Optional argument to use semi-colon instead of colon, if true>
}}
</pre>
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}}.