Difference between revisions of "Template:IMTL"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Update URL. Remove any leading spaces from ID that would break URL. Fix for empty title parameter. If using page name as title, remove any disambiguation.)
 
Line 1: Line 1:
[http://www.imtl.org/montreal/image.php?id={{{1|{{{id}}}}}} {{{2|{{{title|{{{name|{{PAGENAME}}}}}}}}}}}] at ''IMTL.org''<noinclude>
+
[https://imtl.org/montreal/image.php?id={{Trim|{{{1|{{{id}}}}}}}} {{#if: {{{2|{{{name|{{{title<includeonly>|</includeonly>}}}}}}}}} | {{{2|{{{name|{{{title}}}}}}}}} | {{PAGENAMEBASE}} }}] at ''IMTL.org''<noinclude>
{{lowercase}}
 
 
 
 
{{Documentation}}
 
{{Documentation}}
 
+
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata -->
[[Category:External link templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 21:09, 30 January 2019

{{{title}}} at IMTL.org

Template documentation[view] [edit] [history] [purge]

Template:IMTL displays an external link for an entry in the IMTL.org (Images Montréal) database.

Usage

ID only (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with title
Template:Tlcw
Template:Tlcw

Parameters

id or unnamed parameter 1
Required: the "CodeIMTL" of the database entry found on the lower left side of the page.
Example: https://imtl.org/montreal/image.php?id=1511.
title or name or unnamed parameter 2
The name of the linked-to article, as it appears in the IMTL.org database. The default is the article's pagename.

Usage

URL
https://imtl.org/montreal/image.php?id=1511
Redirects to https://imtl.org/montreal/building/Immeuble-Wilson-Chambers.php
Usage
Template:Tlcw
Template:Tlcw
Output
Wilson Chambers Building at IMTL.org
Wilson Chambers Building at IMTL.org