Difference between revisions of "Template:IMTL/doc"
Jump to navigation
Jump to search
imported>MTLskyline m (→Usage: simply id rather than image.php?id) |
imported>Zyxw (update usage and examples, add category) |
||
| 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: http://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>[http://imtl.org/montreal/image.php?id=1511 http://www.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>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
| + | <!-- Categories below this line and interwikis at Wikidata --> | ||
| + | [[Category:Buildings and structures external link templates]] | ||
| + | }}</includeonly> | ||
Revision as of 21:05, 30 January 2019
| 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: http://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
- http://www.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