Difference between revisions of "Template:GAN link/doc"
Jump to navigation
Jump to search
imported>Czar (documentation start) |
imported>Vanisaac |
||
| (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| | + | * {{Tl|Ganl}} is a shortcut for {{Tl|GAN link}} |
| − | * | + | * 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>{{ | + | |
| − | ** <code><nowiki>{{ | + | * 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>{{ | + | ** <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>{{ | + | ** <code><nowiki>{{GAN link|Jumping Flash!|i=y}}</nowiki></code> → {{GAN link|Jumping Flash!|i=y}} |
| − | ** <code><nowiki>{{ | + | ** <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>{{ | + | <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
| This is a documentation subpage for Template:GAN link. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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.
- Put the name in the first parameter. It will strip out double and triple apostrophes.
{{GAN link|Saints Row 2 (mobile)}}→ Saints Row 2 (mobile) (start){{GAN link|''Saints Row 2'' (mobile)}}→ Saints Row 2 (mobile) (start)
- Alternatively, the first parameter can be used for the name, and the second parameter for how the link should be displayed
{{GAN link|Saints Row 2 (mobile)}}→ Saints Row 2 (mobile) (start){{GAN link|Saints Row 2 (mobile)|''Saints Row 2'' (mobile)}}→ Saints Row 2 (mobile) (start)
|Template:Pound=sets the GAN number{{GAN link|Jumping Flash!|#=2}}→ Jumping Flash! (start) (Talk:Jumping Flash!/GAN2)
|icon=adds a GAN icon{{GAN link|Jumping Flash!|icon=y}}→
Jumping Flash! (start)
|i=sets whether the original input is a fully italicized name{{GAN link|Jumping Flash!|i=y}}→ Jumping Flash! (start){{GAN link|Saints Row 2 (mobile)|i=y}}→ Saints Row 2 (mobile) (start) (note that "(mobile)" is italicized too with this option)