Template:Pic link plain: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Darklordrr
(Added template(s) Test)
 
>Darklordrr
No edit summary
 
Line 1: Line 1:
<includeonly>[[File:{{{pic|{{{2|{{{1}}}}}}}}}.png|link={{{1}}}]]</includeonly><noinclude>{{/doc}}</noinclude>
{{Documentation}}
{{Shortcut|Template:Plinkp|Template:Invlp}}
This template creates an image and links it to the page. Unlike {{t|Pic link}}, it does not create text next to the image
 
==Usage==
 
<pre>{{Pic link plain|item|pic=file name}}</pre>
 
==1==
This parameter takes the name of the page that the link is for
 
==pic==
If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"
 
{|class="wikitable"
|+ Examples
!Code
! style="min-width:150px;" | Produces
!Standard syntax
|-
|<code><nowiki>{{plinkp|Abyssal whip}}</nowiki></code>
|{{plinkp|Abyssal whip}}
|<code><nowiki>[[File:Abyssal whip.png|link=Abyssal whip]]</nowiki></code>
|-
|<code><nowiki>{{plinkp|Granite maul|pic=Abyssal whip}}</nowiki></code>
|{{plinkp|Granite maul|pic=Abyssal whip}}
|<code><nowiki>[[File:Abyssal whip.png|link=Granite maul]]</nowiki></code>
|-
|}
 
<includeonly>[[Category:Link creating templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 04:23, 13 October 2018

Template documentation

Template:Pic link plain/Doc Visit Template:Pic link plain/Doc to edit me!

Template:Shortcut This template creates an image and links it to the page. Unlike {{Pic link}}, it does not create text next to the image

Usage[edit source]

{{Pic link plain|item|pic=file name}}

1[edit source]

This parameter takes the name of the page that the link is for

pic[edit source]

If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

Examples
Code Produces Standard syntax
{{plinkp|Abyssal whip}} Template documentation[edit] [purge]

This documentation is transcluded from Template:Pic link/doc. Shortcut: Template:Plink

This template creates an image and links it to the page as well as including text. For a textless version, use

Template documentation

Template:Pic link plain/Doc Visit Template:Pic link plain/Doc to edit me!

Template:Shortcut This template creates an image and links it to the page. Unlike {{Pic link}}, it does not create text next to the image

Usage[edit source]

{{Pic link plain|item|pic=file name}}

1[edit source]

This parameter takes the name of the page that the link is for

pic[edit source]

If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

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

This template should be used sparingly. Its main purpose is to add images to navboxes and tables. In most other cases, pages should be linked with normal markup and without an image.

Contents[hide] Usage 1 pic txt Usage Template:Plink 1 This parameter takes the name of the page that the link is for

pic If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

txt Alternate text in the link; defaults to the first parameter

Examples Code Produces Standard syntax

Template:Plink Abyssal whip Abyssal whip
Error creating thumbnail: Unable to save thumbnail to destination
Abyssal whip Template:Plink Abyssal whip Granite maul
Error creating thumbnail: Unable to save thumbnail to destination
Granite maul Template:Plink Abyssal whip Whip
Error creating thumbnail: Unable to save thumbnail to destination
Whip Template:Plink Abyssal whip Whip
Error creating thumbnail: Unable to save thumbnail to destination
Whip
[[File:Abyssal whip.png|link=Abyssal whip]]
{{plinkp|Granite maul|pic=Abyssal whip}} Template documentation[edit] [purge]

This documentation is transcluded from Template:Pic link/doc. Shortcut: Template:Plink

This template creates an image and links it to the page as well as including text. For a textless version, use

Template documentation

Template:Pic link plain/Doc Visit Template:Pic link plain/Doc to edit me!

Template:Shortcut This template creates an image and links it to the page. Unlike {{Pic link}}, it does not create text next to the image

Usage[edit source]

{{Pic link plain|item|pic=file name}}

1[edit source]

This parameter takes the name of the page that the link is for

pic[edit source]

If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

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

This template should be used sparingly. Its main purpose is to add images to navboxes and tables. In most other cases, pages should be linked with normal markup and without an image.

Contents[hide] Usage 1 pic txt Usage Template:Plink 1 This parameter takes the name of the page that the link is for

pic If included, this changes the filename used; defaults to the first parameter; do not include "File:" or ".png"

txt Alternate text in the link; defaults to the first parameter

Examples Code Produces Standard syntax

Template:Plink Abyssal whip Abyssal whip
Error creating thumbnail: Unable to save thumbnail to destination
Abyssal whip Template:Plink Abyssal whip Granite maul
Error creating thumbnail: Unable to save thumbnail to destination
Granite maul Template:Plink Abyssal whip Whip
Error creating thumbnail: Unable to save thumbnail to destination
Whip Template:Plink Abyssal whip Whip
Error creating thumbnail: Unable to save thumbnail to destination
Whip
[[File:Abyssal whip.png|link=Granite maul]]