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> | ||
{ | { | ||
"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" | |||
} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 18:34, 20 September 2025
The 'Picture Link' (plink) template is used to create item image + text links.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item | 1 | The item to link to and display | Page name | required |
| Picture | pic | The name of the image file; do not include 'File:' or '.png'
| File | optional |
| Text override | txt | Override the displayed link text.
| String | optional |