Template:Plinkp
Revision as of 12:19, 17 February 2022 by Mortem (talk | contribs) (Created page with "<includeonly><span class="plinkp-template">[[File:{{{pic|{{{1}}}}}}.{{#switch:{{{gif|no}}}|no=png|yes=gif}}|link={{{1}}}|alt={{{1}}}.png{{#if:{{{w|}}}|{{!}}{{{w}}}|}}{{#if:{{{h|}}}|{{!}}x{{{h}}}|}}]]</span></includeonly><noinclude>{{/doc}}</noinclude>")
Script error: The module returned a nil value. It is supposed to return an export table. The picture link plain template creates an image and links it to the page. Unlike Script error: No such module "T"., there is no text next to the image.
Usage
{{plinkp|item|pic=file name|gif}}
Examples
See also
Parameters
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | The item to link to and display | Page name | required |
Picture | pic | This changes the filename used; do not include 'File:' or '.png'
| File | optional |
Gif | gif | Set to 'yes' to change the file extension from '.png' to '.gif'
| String | optional |
Width | w | Specify a width to scale the image to.
| String | optional |
Height | h | Specify a height to scale the image to.
| String | optional |