Template:Chatlp/doc

From OtherX
Revision as of 15:17, 20 January 2024 by OtherXAdmin (talk | contribs) (Created page with "{{Documentation}} 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 <code>x30</code> pixels. ==Usage== {{T|chatlp|NPC|pic=file name}} ==Examples== {|class="wikitable" !Code ! style="min-width:150px;" | Produces !Standard syntax |- |<code><nowiki>{{chatlp|Hans}}</nowiki></code> |{{chatlp|Hans}} |<code><nowiki>link=Hans|x30px</nowiki></code> |- |<code><nowiki>{{ch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>