Template:Plinkt/doc

Template page
Revision as of 22:40, 5 May 2024 by TesaGivens (talk | contribs) (Created page with "{{Documentation}} The '''picture link table''' template is a variant of {{t|plink}} used to created image-and-text links within tables. ==Usage== {{T|plinkt|item|pic=file name|txt=text}} ==Examples== {|class="wikitable" !Code ! colspan="2" |Produces !Standard syntax |- |<code><nowiki>{{plinkt|Abyssal whip}}</nowiki></code> |{{plinkt|Abyssal whip}} |<code><nowiki>link=Abyssal whip||Abyssal whip</nowiki></code> |- |<code><nowiki>{{plinkt|Gra...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#invoke:Documentation|doc}} The picture link table template is a variant of {{#invoke:T|main}} used to created image-and-text links within tables.

Usage

{{#invoke:T|main}}

Examples

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

See also

Parameters

<templatedata> { "description": "A variant of the \"Picture Link\" (plink) template, \"Picture Link Table\" (plinkt) is used to display an item image and text link across two table cells.", "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. ", "type": "wiki-file-name",

           "default": "First parameter."
       },

"txt": { "label": "Text", "description": "Override the displayed link text.", "type": "string",

           "default": "First parameter."

}, "rowspan": { "label": "Rowspan",

           "description": "Change the rowspan.",
           "type": "number",
           "default": "1"

}, "colspan": { "label": "Colspan",

           "description": "Change the colspan.",
           "type": "number",
           "default": "1"

} } } </templatedata>