Template:Ep/doc: Difference between revisions

From Semantic Stargate Wiki
(Created page with "{{Documentation subpage}} This is the {{tl|Ep}} template === Usage === This template is used to create a link with the correct format to an episode. === Syntax === <pre>{...")
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
This is the {{tl|Ep}} template
This is the {{tl|Ep}} template


=== Usage ===
== Syntax ==


This template is used to create a link with the correct format to an episode.
<pre>{{Ep|<!-- title of the episode/movie -->}}</pre>


=== Syntax ===
=== Parameters ===


<pre>{{Ep|<!-- Name of the episode -->}}</pre>
{| class="wikitable" width=100%
! Parameter
! Mandatory
! Description
! Default
|-
| <tt>{{{1}}}</tt>
| yes
| Used to determine the title of the episode. It is caps insensitive.
|
|-
| <tt>{{{2}}}</tt>
| no
| Used to determine the Namespace (Film/Episode/Credits/Quotes). Automatically designed to fit the current Namespace.
| <tt><nowiki>{{NAMESPACE}}</nowiki></tt>
|}


=== Examples ===
=== Examples ===
Line 21: Line 36:
|<nowiki>{{Ep|Children of the Gods}}</nowiki>||{{Ep|Children of the Gods}}
|<nowiki>{{Ep|Children of the Gods}}</nowiki>||{{Ep|Children of the Gods}}
|- style="background-color:#DCDCDC;"
|- style="background-color:#DCDCDC;"
|<nowiki>{{Ep|Wathever}}</nowiki>||{{Ep|Wathever}}
|<nowiki>{{Ep|Whatever}}</nowiki>||{{Ep|Whatever}}
|}
|}
<includeonly>
<includeonly>

Latest revision as of 23:08, 30 March 2018

This is the {{Ep}} template

Syntax

{{Ep|<!-- title of the episode/movie -->}}

Parameters

Parameter Mandatory Description Default
{{{1}}} yes Used to determine the title of the episode. It is caps insensitive.
{{{2}}} no Used to determine the Namespace (Film/Episode/Credits/Quotes). Automatically designed to fit the current Namespace. {{NAMESPACE}}

Examples

Usage Rendering
{{Ep|SG1-1x01}} "Children of the Gods"
{{Ep|Children of the Gods}} "Children of the Gods"
{{Ep|Whatever}} The 'Whatever' parameter is not referenced among the episodes. Please check the parameter or modify the {{ep}} template.