Difference between revisions of "Template:GAN link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Czar
(documentation start)
 
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 +
{{lua|Module:GAN link}}
  
 
== Usage ==
 
== Usage ==
  
* {{Tl|ganl}} is a shortcut for {{Tl|GAN link}}
+
* {{Tl|Ganl}} is a shortcut for {{Tl|GAN link}}
  
* First parameter is for the name, second parameter is how the link should be displayed
+
* The template will show the article's name alongside a link to its GAN (defaults to "/GA1"). If the GAN has started, it will be linked as "nom". If not, a "start" link with the preloaded GA stuff will show instead.
** <code><nowiki>{{ganl|Saints Row 2 (mobile)}}</nowiki></code> → {{ganl|Saints Row 2 (mobile)}}
+
 
** <code><nowiki>{{ganl|Saints Row 2 (mobile)|''Saints Row 2'' (mobile)}}</nowiki></code> → {{ganl|Saints Row 2 (mobile)|''Saints Row 2'' (mobile)}}
+
* Put the name in the first parameter. It will strip out double and triple apostrophes.
 +
** <code><nowiki>{{GAN link|Saints Row 2 (mobile)}}</nowiki></code> → {{GAN link|Saints Row 2 (mobile)}}
 +
** <code><nowiki>{{GAN link|''Saints Row 2'' (mobile)}}</nowiki></code> → {{GAN link|''Saints Row 2'' (mobile)}}
 +
 
 +
* Alternatively, the first parameter can be used for the name, and the second parameter for how the link should be displayed
 +
** <code><nowiki>{{GAN link|Saints Row 2 (mobile)}}</nowiki></code> → {{GAN link|Saints Row 2 (mobile)}}
 +
** <code><nowiki>{{GAN link|Saints Row 2 (mobile)|''Saints Row 2'' (mobile)}}</nowiki></code> → {{GAN link|Saints Row 2 (mobile)|''Saints Row 2'' (mobile)}}
  
 
* {{para|{{pound}}}} sets the GAN number
 
* {{para|{{pound}}}} sets the GAN number
** <code><nowiki>{{ganl|Jumping Flash!|#=2}}</nowiki></code> → {{ganl|Jumping Flash!|#=2}} (<code>Talk:Jumping Flash!/GAN'''2'''</code>)
+
** <code><nowiki>{{GAN link|Jumping Flash!|#=2}}</nowiki></code> → {{GAN link|Jumping Flash!|#=2}} (<code>Talk:Jumping Flash!/GAN'''2'''</code>)
 +
 
 +
* {{para|icon}} adds a GAN icon
 +
** <code><nowiki>{{GAN link|Jumping Flash!|icon=y}}</nowiki></code> → {{GAN link|Jumping Flash!|icon=y}}
  
 
* {{para|i}} sets whether the original input is a fully italicized name
 
* {{para|i}} sets whether the original input is a fully italicized name
** <code><nowiki>{{ganl|Jumping Flash!|i=y}}</nowiki></code> → {{ganl|Jumping Flash!|i=y}}
+
** <code><nowiki>{{GAN link|Jumping Flash!|i=y}}</nowiki></code> → {{GAN link|Jumping Flash!|i=y}}
** <code><nowiki>{{ganl|Saints Row 2 (mobile)|i=y}}</nowiki></code> → {{ganl|Saints Row 2 (mobile)|i=y}} <small>(note that "(mobile)" is italicized too with this option)</small>
+
** <code><nowiki>{{GAN link|Saints Row 2 (mobile)|i=y}}</nowiki></code> → {{GAN link|Saints Row 2 (mobile)|i=y}} <small>(note that "(mobile)" is italicized too with this option)</small>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
 +
[[Category:Wikipedia GA templates]]
 +
[[Category:Nomination link templates]]
 +
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:16, 25 April 2020

Usage

  • The template will show the article's name alongside a link to its GAN (defaults to "/GA1"). If the GAN has started, it will be linked as "nom". If not, a "start" link with the preloaded GA stuff will show instead.
  • Alternatively, the first parameter can be used for the name, and the second parameter for how the link should be displayed
  • |i= sets whether the original input is a fully italicized name