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

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
mNo edit summary
imported>MiamiVolts
m try expanding
Line 3: Line 3:
|<!--else-->{{User:MiamiVolts/test|{{{1}}}}}
|<!--else-->{{User:MiamiVolts/test|{{{1}}}}}
<!--end if-->}}<!-- add the subtitle text if subtitle has length and is a valid subtitle
<!--end if-->}}<!-- add the subtitle text if subtitle has length and is a valid subtitle
-->{{#if:{{#pos:{{User:MiamiVolts/Eps/subtitle|{{{1}}}}}|:}}
-->{{#if:{{#pos:{{User:MiamiVolts/Eps/subtitle|{{{1}}}}}|:}}||{{#ifexpr:{{#len:{{User:MiamiVolts/Eps/subtitle|{{{1}}}}}}} > 0|{{querylink|link={{Delink|linktext={{User:MiamiVolts/Epn|{{{1}}}|noprecede=true}}|linktext={{#if: {{{semi|}}}|;|:}} {{User:MiamiVolts/Eps/subtitle|{{{1}}}}}}}<!--end ifexpr-->}}<!--end if pos-->}}</includeonly><noinclude>
||{{#ifexpr:{{#len:{{User:MiamiVolts/Eps/subtitle|{{{1}}}}}}} > 0
|{{querylink
|link={{Delink|linktext={{User:MiamiVolts/Epn|{{{1}}}|noprecede=true}}
|linktext={{#if: {{{semi|}}}|;|:}} {{User:MiamiVolts/Eps/subtitle|{{{1}}}}}
}}
<!--end ifexpr-->}}<!--end if pos-->}}</includeonly><noinclude>
==Usage==
==Usage==
This is a link template that uses DPL to provide a link for the specified ''Heroes''-related title with subtitle, if any. By default, appends subtitle after a colon and space as is standard for NBC and other style guidelines; but an option is available to use a semicolon instead of a colon. The list of titles used in this template are listed in {{[[template:ep|ep]]}}. Options are also available to use the namespace format like {{[[User:MiamiVolts/Epn|epn]]}} or parentheses format like {{[[template:epp|epp]]}}.
This is a link template that uses DPL to provide a link for the specified ''Heroes''-related title with subtitle, if any. By default, appends subtitle after a colon and space as is standard for NBC and other style guidelines; but an option is available to use a semicolon instead of a colon. The list of titles used in this template are listed in {{[[template:ep|ep]]}}. Options are also available to use the namespace format like {{[[User:MiamiVolts/Epn|epn]]}} or parentheses format like {{[[template:epp|epp]]}}.

Revision as of 14:34, 6 January 2009

Usage

This is a link template that uses DPL to provide a link for the specified Heroes-related title with subtitle, if any. By default, appends subtitle after a colon and space as is standard for NBC and other style guidelines; but an option is available to use a semicolon instead of a colon. The list of titles used in this template are listed in {{ep}}. Options are also available to use the namespace format like {{epn}} or parentheses format like {{epp}}.

Syntax

{{eps
|<!--identifier listed in {{ep}}-->
|<!--optional format specification; default is {{ep}} format-->
|semi=<!--set true for semi-colon instead of the default colon-->
}}

Examples

{{eps|wb11}}

returns User:MiamiVolts/Eps

{{eps|gn24}}

returns User:MiamiVolts/Eps

{{eps|gn24|epn}}

returns User:MiamiVolts/Eps

{{eps|gn24|epp}}

returns User:MiamiVolts/Eps