Template:Chatlp/doc

From OtherX
Jump to navigation Jump to search
File:Information icon-grey.svg
This is a documentation subpage for Template:Chatlp.
It contains usage information, categories, and other content that is not part of the original template page.

The chat link plain template is used to display an NPC chathead that links to the NPC's page. The chathead will be resized to x30 pixels.

Usage

{{chatlp|NPC|pic=file name}}

Examples

Code Produces Standard syntax
{{chatlp|Hans}} File:Hans chathead.png [[File:Hans chathead.png|link=Hans|x30px]]
{{chatlp|Hans|pic=Ned chathead}} File:Ned chathead.png [[File:Ned chathead.png|link=Hans|x30px]]

See also

Parameters

<templatedata> {

   "description": "",
   "params": {
       "1": {
           "label": "NPC",
           "description": "This parameter takes the name of the page that the link is for.",
           "type": "wiki-page-name",
           "required": true
       },
       "pic": {
           "label": "Picture",
           "description": "This changes the filename used; do not include 'File:' or '.png'",
           "default": "First parameter + ' chathead'",
           "type": "wiki-file-name"
       }
   }

} </templatedata>