Template:Chatl/doc
< Template:Chatl
Revision as of 22:11, 4 October 2022 by Jacmob (talk | contribs) (Created page with "{{Documentation}} This template displays a link to an NPC along with the associated chathead. The chathead will be resized to 35 pixels. ==Usage== {{T|chatl|NPC|pic=file name|txt=alternate text}} ==Examples== {|class="wikitable" !Code ! style="min-width:150px;" | Produces !Standard syntax |- |<code><nowiki>{{chatl|Hans}}</nowiki></code> |{{chatl|Hans}} |<code><nowiki>link=Hans|x35px Hans</nowiki></code> |- |<code><nowiki>{{chatl|Hans|pic=...")
This template displays a link to an NPC along with the associated chathead. The chathead will be resized to 35 pixels.
Usage
{{chatl|NPC|txt=alternate text|pic=file name}}
Examples
Code | Produces | Standard syntax |
---|---|---|
{{chatl|Hans}}
|
Hans | [[File:Hans chathead.png|link=Hans|x35px]] [[Hans]]
|
{{chatl|Hans|pic=Ned chathead}}
|
Hans | [[File:Ned chathead.png|link=Hans|x35px]] [[Hans]]
|
{{chatl|Hans|txt=Gnome child}}
|
Gnome child | [[File:Hans chathead.png|link=Hans|x35px]] [[Hans|Gnome child]]
|
{{chatl|Hans|pic=Ned chathead|txt=Gnome child}}
|
Gnome child | [[File:Ned chathead.png|link=Hans|x35px]] [[Hans|Gnome child]]
|
See also
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
NPC | 1 | This parameter takes the name of the page that the link is for | Page name | required |
Picture | pic | This changes the filename used; do not include 'File:' or '.png'
| File | optional |
Text | txt | Alternate text in the link
| String | optional |