Template talk:Xsgcite
From Wikipedia, the free encyclopedia
This template converts a call to {{sgcite}} into a call to {{cite episode}}. {{sgcite}} is useful for inline citations but not for references with <ref>
tags; although it provides this functionality, this is merely a shorthand. In cases where {{sgcite}} is being used with references, it should be converted to {{cite episode}} using {{xsgcite}}:
{{sgcite|Lost City}}
{{subst:xsgcite|Lost City}}
Note that you can't subst inside ref tags, so they must first be removed. This however does not mean you will need to convert in two stages. If the template has parameter show=ref
then the substitution will automatically insert the ref tags for you.
[edit] Examples
Code | Returns | (unparsed return) |
---|---|---|
|
"Lost City". Stargate SG-1. | {{cite episode|title=Lost City|episodelink=Lost City (Stargate SG-1)|series=Stargate SG-1|serieslink=Stargate SG-1}} |
{{subst:xsgcite|Rising|A}} |
"Rising". Stargate Atlantis. | {{cite episode|title=Rising|episodelink=Rising (Stargate Atlantis)|series=Stargate Atlantis|serieslink=Stargate Atlantis}} |
{{subst:xsgcite|Rising|A|show=ref}} |
[1] | <ref name="Rising">{{cite episode|title=Rising|episodelink=Rising (Stargate Atlantis)|series=Stargate Atlantis|serieslink=Stargate Atlantis}}</ref> |
Failure to subst the template results in ({{xsgcite|Lost City}}
):
{{subst:empty template|ERROR! This template must be substed.}}
[edit] See also
- {{sgcite}}
- {{cite episode}}