Template:Plinkp

Template page
Revision as of 00:05, 6 May 2024 by TesaGivens (talk | contribs) (Created page with "<includeonly><span class="plinkp-template">[[File:{{{pic|{{{1}}}}}}.png|link={{{1}}}]]</span></includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#invoke:Documentation|doc}} The picture link plain template creates an image and links it to the page. Unlike {{#invoke:T|main}}, there is no text next to the image.

Usage

{{plinkp|item|pic=file name}}

Examples

Code Produces Standard syntax
{{plinkp|Abyssal whip}} [[File:Abyssal whip.png|link=Abyssal whip]]
{{plinkp|Granite maul|pic=Abyssal whip}} [[File:Abyssal whip.png|link=Granite maul]]

See also

Parameters

<templatedata> { "description": "A variant of the \"Picture Link\" (plink) template, \"Picture Link Plain\" (plinkp) is used to display an item image and have it link to its corresponding page.", "params": { "1": { "label": "Item", "description": "The item to link to and display", "type": "wiki-page-name", "required": true }, "pic": { "label": "Picture", "description": "This changes the filename used; do not include 'File:' or '.png'",

           "default": "First parameter",

"type": "wiki-file-name" } } } </templatedata>