Template:KennerCite

adding nobackup field and overhauling documentation

← Older revision Revision as of 21:19, October 14, 2017
Line 1: Line 1:
−
-lt;onlyinclude-gt;[[File:Kenner-logo.svg|x15px|link=Kenner Products]]-amp;nbsp;-lt;span class="plainlinks"-gt;{{#if:{{{text|}}}|[[{{{set}}}{{!}}{{{text}}}]]|""[[{{{set}}}]]""}}{{#if:{{{pack|}}}|-amp;nbsp;-lt;small-gt;(Pack:-amp;nbsp;{{#if:{{{link|}}}|[http://www.rebelscum.com/{{{link}}} {{{pack}}}]|{{{pack}}}}})-amp;nbsp;{{#if:{{{archiveurl|}}}|([{{{archiveurl}}} backup link])|-amp;#32;}}-lt;/small-gt;|}}-lt;/span-gt;-lt;/onlyinclude-gt;
+
-lt;onlyinclude-gt;[[File:Kenner-logo.svg|x15px|link=Kenner Products]]-amp;nbsp;-lt;span class="plainlinks"-gt;{{#if:{{{text|}}}
−
==Usage instructions==
+
|[[{{{set}}}{{!}}{{{text}}}]]|""[[{{{set}}}]]""}}{{#if:{{{pack|}}}
−
-lt;pre-gt;-lt;nowiki-gt;
+
|-amp;nbsp;-lt;small-gt;(Pack:-amp;nbsp;{{#if:{{{link|}}}
−
{{KennerCite|set=|text=|pack=|link=|archiveurl=}}
+
|[http://www.rebelscum.com/{{{link}}} {{{pack}}}]{{#if:{{{nobackup|}}}
−
-lt;/nowiki-gt;-lt;/pre-gt;
+
|)-amp;nbsp;(backup link not available)
−
===Notes===
+
|)}}
−
This template is to be used on pages about characters, ships, etc that have been included in [[Kenner Products|Kenner]] toy sets.
+
|{{{pack}}})}}{{#if:{{{nobackup|}}}
  +
|-amp;#32;
  +
|{{#if:{{{archiveurl|}}}
  +
|-amp;nbsp;([{{{archiveurl}}} backup link])
  +
|-amp;#32;{{#if:{{{link|}}}
  +
|{{#if:{{NAMESPACE}}
  +
|{{#ifeq:{{NAMESPACE}}|File|[[Category:Pages with missing permanent archival links]]|}}
  +
|[[Category:Pages with missing permanent archival links]]}}
  +
|}}
  +
}}
  +
}}-lt;/small-gt;
  +
|}}-lt;/span-gt;-lt;/includeonly-gt;-lt;noinclude-gt;
  +
This template is to be used on pages about subjects that have been represented in [[Kenner Products|Kenner]] toy sets.
   
−
The set, text, pack and link fields need to be explicitly assigned to as, otherwise, use of the "=" symbol in the links messes up the template. Use set for the collection name, text (optionally) to adjust how it displays and pack for the individual pack name. The link field by links to the pack"s page on [[Rebelscum.com]] and should be the URL of the page to link to, without the domain name.
+
==Usage==
−
[[Category:Toy citation templates|KennerCite]]
+
Copy the template code below and paste it into the appropriate place in an article. Fill in the required fields plus as many of the optional fields as necessary and remove any that you don"t use.
  +
  +
-lt;code-gt;-lt;nowiki-gt;{{KennerCite|set=|text=|pack=|link=|nobackup=|archiveurl=}}-lt;/nowiki-gt;-lt;/code-gt;
  +
  +
===Required parameters===
  +
*"""set""": Name of the collection.
  +
*"""pack""": Name of the individual pack.
  +
*"""link""": URL of the pack"s page on the website [[Rebelscum.com]], minus the domain name (-lt;code-gt;-lt;nowiki-gt;http://www.rebelscum.com/-lt;/nowiki-gt;-lt;/code-gt;).
  +
*"""archiveurl""": Permanent archival link, preferably using [https://web.archive.org/ Internet Archive"s Wayback Machine], as mandated by the [[Wookieepedia:Sourcing#Rules|Sourcing policy]].
  +
  +
===Optional parameters===
  +
*"""text""": Formatted name of the collection.
  +
*"""nobackup""": Put -lt;code-gt;1-lt;/code-gt; or -lt;code-gt;yes-lt;/code-gt; here if a permanent archival link for the URL is not available.
  +
  +
===Examples===
  +
-lt;code-gt;-lt;nowiki-gt;{{KennerCite|set=Star Wars: The Empire Strikes Back (toy line)|text=""Star Wars: The Empire Strikes Back""|pack=MTV-7 Multi-Terrain Vehicle|link=vintminiMTV7.asp|archiveurl=http://web.archive.org/web/20161211023929/http://www.rebelscum.com:80/vintminiMTV7.asp}}-lt;/nowiki-gt;-lt;/code-gt;
  +
  +
Results in:
  +
  +
{{KennerCite|set=Star Wars: The Empire Strikes Back (toy line)|text=""Star Wars: The Empire Strikes Back""|pack=MTV-7 Multi-Terrain Vehicle|link=vintminiMTV7.asp|archiveurl=http://web.archive.org/web/20161211023929/http://www.rebelscum.com:80/vintminiMTV7.asp}}
  +
  +
-lt;hr /-gt;
  +
-lt;code-gt;-lt;nowiki-gt;{{KennerCite|set=Star Wars: The Empire Strikes Back (toy line)|text=""Star Wars: The Empire Strikes Back""|pack=MTV-7 Multi-Terrain Vehicle|link=vintminiMTV7.asp|nobackup=1}}-lt;/nowiki-gt;-lt;/code-gt;
  +
  +
Results in:
  +
  +
{{KennerCite|set=Star Wars: The Empire Strikes Back (toy line)|text=""Star Wars: The Empire Strikes Back""|pack=MTV-7 Multi-Terrain Vehicle|link=vintminiMTV7.asp|nobackup=1}}
  +
  +
__NOTOC__
  +
[[Category:Toy citation templates]]-lt;/noinclude-gt;

Click here to read more...

Leave a Reply

JOIN THE DISCUSSION