Template:Plink/doc

From Idle Clans wiki
< Template:Plink
Revision as of 15:41, 24 May 2024 by Uraxys (talk | contribs) (Created page with "Create a plink (picture link) to easily display an image that also functions as a link to a specified page. ==Usage== <code><nowiki>{{Plink|<link>|[txt=<text>]|[img=<image>]|[size=<image size>]}}</nowiki></code> * link: The name of the page to link to. * (Optional) txt: If provided, this will be used as the text; if not, the link will be used. * (Optional) img: If provided, this will be used as the image; if not; the link will be used. * (Optional) size: If provided, t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Create a plink (picture link) to easily display an image that also functions as a link to a specified page.

Usage

{{Plink|<link>|[txt=<text>]|[img=<image>]|[size=<image size>]}}

  • link: The name of the page to link to.
  • (Optional) txt: If provided, this will be used as the text; if not, the link will be used.
  • (Optional) img: If provided, this will be used as the image; if not; the link will be used.
  • (Optional) size: If provided, this will be used as the image size in pixels; if not; 24 is used.

Example

Input Output
{{Plink|Normal longsword}} Normal longsword.png Normal longsword
{{Plink|Iron bar|size=30}} Iron bar.png Iron bar
{{Plink|Godlike pickaxe|txt=best pickaxe}} Godlike pickaxe.png best pickaxe
{{Plink|Common treasure chest|img=Common chest}} Common chest.png Common treasure chest
{{Plink|Coal ore|txt=Gold?|img=Gold bar}} Gold bar.png Gold?