Difference between revisions of "Template:IMTL/doc"
Jump to navigation
Jump to search
imported>MTLskyline m (indent) |
imported>Vanisaac |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | + | <!-- Categories and interwikis go at the bottom of this page. --> | |
| − | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] for an entry in the [https://imtl.org/montreal/index.php IMTL.org] (Images Montréal) database. | |
| + | |||
| + | == Usage == | ||
| + | ; ID only (uses Wikipedia article name as link text) | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> }} | ||
| − | + | ; ID with title | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }} | |
| + | : {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | title {{=}} <var>TITLE</var> }} | ||
| − | + | == Parameters == | |
| − | + | ; id {{nobold|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 {{nobold|or}} name {{nobold|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 | ||
| + | : <kbd>[https://imtl.org/montreal/image.php?id=1511 https://imtl.org/montreal/image.php?id={{Hilite|1511}}]</kbd> | ||
| + | : Redirects to <kbd>https://imtl.org/montreal/building/Immeuble-Wilson-Chambers.php</kbd> | ||
| − | == | + | ; Usage |
| + | : {{tlcw|{{BASEPAGENAME}} | 1511 | Wilson Chambers Building }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 1511 | title{{=}} Wilson Chambers Building }} | ||
| − | + | ; Output | |
| − | + | : {{{{BASEPAGENAME}} | 1511 | Wilson Chambers Building }} | |
| + | : {{{{BASEPAGENAME}} | id= 1511 | title= Wilson Chambers Building }} | ||
| − | </includeonly> | + | <includeonly>{{Sandbox other|| |
| + | <!-- Categories below this line and interwikis at Wikidata --> | ||
| + | [[Category:Buildings and structures external link templates]] | ||
| + | }}</includeonly> | ||
Latest revision as of 17:25, 25 April 2020
| 40px | This is a documentation subpage for Template:IMTL. It contains usage information, categories and other content that is not part of the original template page. |
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