Template:ImageLink/doc View history

m (Reverted edits by PesachZ (talk) to last revision by Kentsmith9)
m (→‎Usage: updated to single parameter with instructions for nowiki to block hyperlink)
Line 1: Line 1:
{{doc subpage}}
{{doc subpage}}
== Usage ==
== Usage ==
The first parameter is the URL type without the colon. Examples include HTTP, FTP, etc. The second parameter is the URL after the colon.
There is one required unnamed parameter which is the full URL for the image. The URL will them be displayed inside phpbb [IMG] tags. The output text is small, and designed to be used as a caption beneath an image thumbnail.


{{tl|ImageLink2|http|//www.test.com}}
{{tlx|ImageLink|<nowiki>http://www.test.com</nowiki>}}


Produces
Produces
{{Pre2
{{Pre2
| {{ImageLink2|http|//www.test.com}}
| {{ImageLink|http://www.test.com}}
}}
}}




If you want the URL to not be a hyperlink, you can enclose it inside {{tag|nowiki}} tags.
{{tlx|ImageLink|<nowiki>&lt;nowiki>http://www.test.com&lt;/nowiki></nowiki>}}
Produces
{{Pre2
| {{ImageLink|<nowiki>http://www.test.com</nowiki>}}
}}
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->

Revision as of 05:46, 26 August 2016

This is a documentation subpage for Template:ImageLink.
It contains usage information, categories and other content that is not part of the original template page.

Usage

There is one required unnamed parameter which is the full URL for the image. The URL will them be displayed inside phpbb [IMG] tags. The output text is small, and designed to be used as a caption beneath an image thumbnail.

{{ImageLink|http://www.test.com}}

Produces

[IMG]http://www.test.com[/IMG]


If you want the URL to not be a hyperlink, you can enclose it inside <nowiki>...</nowiki> tags.

{{ImageLink|<nowiki>http://www.test.com</nowiki>}}

Produces

[IMG]http://www.test.com[/IMG]