Difference between revisions of "Template:GAN link/sandbox"
Jump to navigation
Jump to search
imported>Rich Farmbrough |
(Synced.) |
||
| Line 1: | Line 1: | ||
| − | {{GAN | + | {{if||{{{icon|}}}|{{icon|GAN}} |}} [[{{replace|{{replace|{{{1}}}|'''|}}|''|}}|{{if||{{{i|}}}|''{{{1}}}''|{{{2|{{{1}}}}}}}}]] {{exists|page=Talk:{{replace|{{replace|{{{1}}}|'''|}}|''|}}/GA{{{#|1}}}|then=([[Talk:{{replace|{{replace|{{{1}}}|'''|}}|''|}}/GA{{{#|1}}}|nom]])|else=('''<span class='plainlinks'>[{{fullurl:Talk:{{replace|{{replace|{{{1}}}|'''|}}|''|}}/GA{{{#|1}}}|action=edit&editintro=Template:GAN/editintro&preload=Template:GAN/preload}} start]</span>''')}}<noinclude> |
| + | |||
| + | {{Documentation}} | ||
| + | |||
| + | </noinclude> | ||
Revision as of 02:16, 27 September 2014
[[{{{1}}}|{{{1}}}]] Template:Exists
| This is the template sandbox page for Template:GAN link (diff). See also the companion subpage for test cases. |
| 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)
| The above documentation is transcluded from Template:GAN link/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |