Template:Icon-link

From MediaWiki
Jump to navigation Jump to search

{{ #ifexist: Template:Icon-link/doc |

(Transcluded documentation: view)

Clickable icon which takes you to a wiki page or external URL, followed by a bit of text.

(Intended to be used for external links in the main page body where an arbitrary icon is really helpful, but which may need a bit of explanation.)

{{icon-link
|1=Image:Logo DVD-Video.png
|2=Pagename OR http://www.site.uri
|3=Mouseover/Display text    (OPTIONAL: Will use pagename/url if not provided)
|4=Display text              (OPTIONAL: Display text different from img mouseover text.  Set to blank for no Display text)
|size=75px                   (OPTIONAL: Override img size)
|leftmargin=0em;             (OPTIONAL: Override left margin.  Default value is 1em.)
|display=table               (OPTIONAL: Force links to list vertically instead of inline)



<imagemap>Image:Logo DVD-Video.png{{#if: }}

default {{#if:{{#pos:Shwiggle|://}}|[Shwiggle Shwiggle]|Shwiggle}} desc none </imagemap> {{#if:{{{4}}}|| style="padding-left:.5em;padding-right:1em;"|{{#if:{{#pos:Shwiggle|://}}|[Shwiggle Shwiggle]|Shwiggle}} |}}

<imagemap>Image:Quintessa.jpg{{#if:75px }}

default {{#if:{{#pos:http://www.google.com%7C://}}%7CGoogle|[[1]]}} desc none </imagemap> {{#if:|| style="padding-left:.5em;padding-right:1em;"|{{#if:{{#pos:http://www.google.com%7C://}}%7C[2]|[[3]]}} |}}

|

(Transcluded documentation: create)

{{#if:|Clickable icon which takes you to a wiki page or external URL, followed by a bit of text.

(Intended to be used for external links in the main page body where an arbitrary icon is really helpful, but which may need a bit of explanation.)

{{icon-link
|1=Image:Logo DVD-Video.png
|2=Pagename OR http://www.site.uri
|3=Mouseover/Display text    (OPTIONAL: Will use pagename/url if not provided)
|4=Display text              (OPTIONAL: Display text different from img mouseover text.  Set to blank for no Display text)
|size=75px                   (OPTIONAL: Override img size)
|leftmargin=0em;             (OPTIONAL: Override left margin.  Default value is 1em.)
|display=table               (OPTIONAL: Force links to list vertically instead of inline)



<imagemap>Image:Logo DVD-Video.png{{#if: }}

default {{#if:{{#pos:Shwiggle|://}}|[Shwiggle Shwiggle]|Shwiggle}} desc none </imagemap> {{#if:{{{4}}}|| style="padding-left:.5em;padding-right:1em;"|{{#if:{{#pos:Shwiggle|://}}|[Shwiggle Shwiggle]|Shwiggle}} |}}

<imagemap>Image:Quintessa.jpg{{#if:75px }}

default {{#if:{{#pos:http://www.google.com%7C://}}%7CGoogle|[[4]]}} desc none </imagemap> {{#if:|| style="padding-left:.5em;padding-right:1em;"|{{#if:{{#pos:http://www.google.com%7C://}}%7C[5]|[[6]]}} |}}

|}}}}