Template:Plink/doc: Difference between revisions

From Guinea Isles Wiki
Created page with " <templatedata> { "params": { "pic": { "label": "Picture", "description": "The name of the image file.", "type": "wiki-file-name" }, "txt": { "label": "Custom text", "description": "Override the displayed link text.", "type": "string", "default": "First parameter" }, "item": { "label": "Item", "description": "The name of the item/page you are linking to.", "type": "string", "required": true } } } </templatedata>"
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatedata>
<templatedata>
{
{
"params": {
    "description": "The 'Picture Link' (plink) template is used to create item image + text links.",
"pic": {
    "params": {
"label": "Picture",
        "1": {
"description": "The name of the image file.",
            "label": "Item",
"type": "wiki-file-name"
            "description": "The item to link to and display",
},
            "type": "wiki-page-name",
"txt": {
            "required": true
"label": "Custom text",
        },
"description": "Override the displayed link text.",
        "pic": {
"type": "string",
            "label": "Picture",
"default": "First parameter"
            "description": "The name of the image file; do not include 'File:' or '.png'",
},
            "default": "First parameter",
"item": {
            "type": "wiki-file-name"
"label": "Item",
        },
"description": "The name of the item/page you are linking to.",
        "txt": {
"type": "string",
            "label": "Text override",
"required": true
            "description": "Override the displayed link text.",
}
            "default": "First parameter",
}
            "type": "string"
        }
    }
}
}
</templatedata>
</templatedata>

Latest revision as of 18:34, 20 September 2025

The 'Picture Link' (plink) template is used to create item image + text links.

Template parameters

ParameterDescriptionTypeStatus
Item1

The item to link to and display

Page namerequired
Picturepic

The name of the image file; do not include 'File:' or '.png'

Default
First parameter
Fileoptional
Text overridetxt

Override the displayed link text.

Default
First parameter
Stringoptional