Template:Plinkp/doc

Template page
Revision as of 23:05, 5 May 2024 by TesaGivens (talk | contribs) (Created page with "{{Documentation}} The '''picture link plain''' template creates an image and links it to the page. Unlike {{t|plink}}, there is no text next to the image. ==Usage== <pre>{{plinkp|item|pic=file name}}</pre> ==Examples== {|class="wikitable" !Code ! style="min-width:150px;" | Produces !Standard syntax |- |<code><nowiki>{{plinkp|Abyssal whip}}</nowiki></code> |{{plinkp|Abyssal whip}} |<code><nowiki>link=Abyssal whip</nowiki></code> |- |<code><nowi...")
(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>