Template:SW: Difference between revisions
m (1 revision imported) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<span class="plainlinks">[[File:SWCustom-2011.png|23px|StarWars.com|link= | <span class="plainlinks">[[File:SWCustom-2011.png|23px|StarWars.com|link=]] {{#if:{{{int|}}} | ||
|[[{{{int}}}|{{{text}}}]] on [[StarWars.com]] <small>([http://{{{domain|www}}}.starwars.com/{{{url}}} article])</small> | |[[{{{int}}}|{{{text}}}]] on [[StarWars.com]] <small>([http://{{{domain|www}}}.starwars.com/{{{url}}} article])</small> | ||
|[http://{{{domain|www}}}.starwars.com/{{{url}}} {{{text}}}] on [[StarWars.com]]}} <small>{{#if:{{{archivedate|}}} | |[http://{{{domain|www}}}.starwars.com/{{{url}}} {{{text}}}] on [[StarWars.com]]}} <small>{{#if:{{{archivedate|}}} | ||
Line 5: | Line 5: | ||
|{{#if:{{{archiveurl|}}} | |{{#if:{{{archiveurl|}}} | ||
|([{{{archiveurl}}} backup link]) | |([{{{archiveurl}}} backup link]) | ||
}} | }} | ||
}}</small></span>{{#if:{{#pos:{{{url|}}}|starwars.com/}} | }}</small></span>{{#if:{{#pos:{{{url|}}}|starwars.com/}} |
Revision as of 05:18, 16 August 2018
Usage instructions
{{SW|url=|text=|int=|archivedate=|archiveurl=}}
All fields need to be explicitly assigned to; otherwise, use of the "=" symbol in the URLs messes up the template. The http://www.starwars.com/
part of the URL is not required for "url." Everything after it is. The "int" field is optional and provides a link to the Wookieepedia article, if one exists. If the URL is a subdomain of starwars.com, such as starwarsblog.starwars.com, the subdomain can be specified with the "domain" parameter (e.g. domain=starwarsblog).
With domain parameter:
{{SW|domain=|url=|text=|int=|archiveurl=}}
This template is to be used for all StarWars.com articles published after the official site's revamp on September 13, 2011. For articles published prior to then, use {{SWArchive}}.
See also
For pages in the Hyperspace section of the official site, use {{Hyperspace}}. For Databank, Encyclopedia, or original Databank entries, see {{Databank}}, {{SWE}}, or {{DB}}, respectively. For the Official StarWars.com Blog, use {{Blog}} with the specified parameters.