Template:GNT4CharLink: Difference between revisions

From Naruto: Wiki of Ninja
Jump to navigation Jump to search
m (Oh dammit. Somehow I left a massive space in the middle not realizing it affects the template. Way to go Kosheh <_<;)
(Coolest shit I've done for this wiki)
Line 1: Line 1:
[[Image:icon_gnt4_{{{1}}}.png|24px|link={{{2}}} (GNT4)]] [[{{{2}}} (GNT4)|{{{2}}}]]<noinclude>
{{#vardefine:name|{{#switch: {{{1}}}
| ank = Anko
| bou = Jirobo
| cho = Choji
| dog = Akamaru
| gai = Guy
| gar = Gaara
| hak = Haku
| hi2 = Awakened Hinata
| hin = Hinata
| ino = Ino
| iru = Iruka
| ita = Itachi
| jir = Jiraya
| kab = Kabuto
| kan = Kankuro
| kar = Karasu
| kib = Kiba
| kid = Kidomaru
| kim = Kimimaro
| kis = Kisame
| kks = Kakashi
| lee = Lee
| miz = Mizuki
| nej = Neji
| nr2 = OTK Naruto
| nrt = Naruto
| oro = Orochimaru
| sa2 = CS2 Sasuke
| sar = Third Hokage
| sik = Shikamaru
| sin = Shino
| skn = Sakon
| skr = Sakura
| ssk = Sasuke
| tay = Tayuya
| tem = Temari
| ten = Tenten
| tsu = Tsunade
| zab = Zabuza
}}
}}


By popular demand, this is a template for a slightly more robust character link in an article. Put in the three-letter image reference name, followed by a pipe and the character's name
[[Image:icon_gnt4_{{{1}}}.png |{{{2}}}px|link={{#var:name}} (GNT4)]] {{#if: {{{3|}}}
<pre>{{GNT4CharLink|nrt|Naruto}}</pre>
  | {{#ifeq: {{{3}}} | . | [[{{#var:name}} (GNT4)|{{#var:name}}]] | [[{{#var:name}} (GNT4)|{{{3}}}]]}}
  |  
}}<noinclude>


and it'll display as such:
By popular demand, this is a template for a slightly more robust character link in an article (now updated for more various uses).


:{{GNT4CharLink|nrt|Naruto}}
Put in the three-letter image reference name, the icon size, and the text to appear next to the icon (if left blank, nothing will display, and if a period is placed, the character's name will appear).
 
This text
 
<pre>{{GNT4CharLink|nrt|48}}</pre>
 
will display:
 
:{{GNT4CharLink|nrt|48}}
 
 
 
This text
 
<pre>{{GNT4CharLink|nrt|24|.}}</pre>
 
will display:
 
:{{GNT4CharLink|nrt|24|.}}
 
 
 
This text
 
<pre>{{GNT4CharLink|nrt|24|Believe it!}}</pre>
 
will display:
 
:{{GNT4CharLink|nrt|24|Believe it!}}
 
 
 
List of character codes:
 
{|class="wikitable"
!Reference
!Character
|-
| ank
| Anko
|-
| bou
| Jirobo
|-
| cho
| Choji
|-
| dog
| Akamaru
|-
| gai
| Guy
|-
| gar
| Gaara
|-
| hak
| Haku
|-
| hi2
| Awakened Hinata
|-
| hin
| Hinata
|-
| ino
| Ino
|-
| iru
| Iruka
|-
| ita
| Itachi
|-
| jir
| Jiraya
|-
| kab
| Kabuto
|-
| kan
| Kankuro
|-
| kar
| Karasu
|-
| kib
| Kiba
|-
| kid
| Kidomaru
|-
| kim
| Kimimaro
|-
| kis
| Kisame
|-
| kks
| Kakashi
|-
| lee
| Lee
|-
| miz
| Mizuki
|-
| nej
| Neji
|-
| nr2
| OTK Naruto
|-
| nrt
| Naruto
|-
| oro
| Orochimaru
|-
| sa2
| CS2 Sasuke
|-
| sar
| Third Hokage
|-
| sik
| Shikamaru
|-
| sin
| Shino
|-
| skn
| Sakon
|-
| skr
| Sakura
|-
| ssk
| Sasuke
|-
| tay
| Tayuya
|-
| tem
| Temari
|-
| ten
| Tenten
|-
| tsu
| Tsunade
|-
| zab
| Zabuza
|}
</noinclude>
</noinclude>

Revision as of 03:26, 5 January 2019


[[Image:icon_gnt4_{{{1}}}.png |{{{2}}}px|link= (GNT4)]]

By popular demand, this is a template for a slightly more robust character link in an article (now updated for more various uses).

Put in the three-letter image reference name, the icon size, and the text to appear next to the icon (if left blank, nothing will display, and if a period is placed, the character's name will appear).

This text

{{GNT4CharLink|nrt|48}}

will display:


This text

{{GNT4CharLink|nrt|24|.}}

will display:

Naruto


This text

{{GNT4CharLink|nrt|24|Believe it!}}

will display:

Believe it!


List of character codes:

Reference Character
ank Anko
bou Jirobo
cho Choji
dog Akamaru
gai Guy
gar Gaara
hak Haku
hi2 Awakened Hinata
hin Hinata
ino Ino
iru Iruka
ita Itachi
jir Jiraya
kab Kabuto
kan Kankuro
kar Karasu
kib Kiba
kid Kidomaru
kim Kimimaro
kis Kisame
kks Kakashi
lee Lee
miz Mizuki
nej Neji
nr2 OTK Naruto
nrt Naruto
oro Orochimaru
sa2 CS2 Sasuke
sar Third Hokage
sik Shikamaru
sin Shino
skn Sakon
skr Sakura
ssk Sasuke
tay Tayuya
tem Temari
ten Tenten
tsu Tsunade
zab Zabuza