Template:ImageLink/doc View history

m (testing nolink)
(typo)
 
(2 intermediate revisions by one other user not shown)
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 then 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|nolink=yes}}
| {{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 -->

Latest revision as of 14:46, 24 August 2022

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 then 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]