Template:Clickpic

From WhyNotWiki

Jump to: navigation, search


Based on this Metawiki template: Template:Clickpic edit


Link templates  edit   (Category  edit)


This templates allows images to be used as links pointing to a desired page. i.e. a navigational image.

Syntax:

{{clickpic|TITLE OF TARGET PAGE|PATH OF IMAGE FILE}}

Example:

*An inline {{clickpic|How do I use MediaWiki?|http://whynotaskwhy.com/w/uploads/Edit_icon.gif}} edit link.
  • An inline Edit_icon.gif edit link.

Example:

<span class="plainlinks">[http://www.stophatecrimesnow.com/?host_id=WND http://whynotwiki.com/images/Hate_Crimes.Fight_Back.Zippered_Mouth.125x200.gif]</span>

Hate_Crimes.Fight_Back.Zippered_Mouth.125x200.gif


Note: This only works for Mediawiki sites that support embedding external images (however when using this template it may be that the image used is actually an internally held one).

Main Wikimedia sites do not support embedding external images, but plenty of other personal, public and corporate intranet Mediawiki-based sites do, and these can use this template to make navigational images easy to implement.

http://meta.wikimedia.org/wiki/User:CharlesC/Template_for_navigational_images_on_Mediawiki_websites

[edit] Use of the template

In the page you want the image link to appear, use this format:

{{clickpic|TARGET PAGE TITLE|FULL PATH OF IMAGE FILE}}

Note: FULL PATH OF IMAGE FILE doesn't just mean the image title, see section "If you want to use an image that is contained within the wiki" for details.

Example using this format:

{{clickpic|Software|http://XYZ/wiki/images/thumb/f/fd/Software_box.jpg/45px-Software_box.jpg}}

See also {{Clickpic external}}.

Personal tools