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
Line 1: Line 1:


<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>

Revision as of 18:33, 20 September 2025

{

   "description": "The 'Picture Link' (plink) template is used to create item image + text links.",
   "params": {
       "1": {
           "label": "Item",
           "description": "The item to link to and display",
           "type": "wiki-page-name",
           "required": true
       },
       "pic": {
           "label": "Picture",
           "description": "The name of the image file; do not include 'File:' or '.png'",
           "default": "First parameter",
           "type": "wiki-file-name"
       },
       "txt": {
           "label": "Text override",
           "description": "Override the displayed link text.",
           "default": "First parameter",
           "type": "string"
       }
   }

}