Difference between revisions of "Template:IMTL/doc"

From blackwiki
Jump to navigation Jump to search
imported>MTLskyline
m (indent)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
This is a template for linking to entries in the IMTL.org database. Sample usage is as follows:
+
<!-- Categories and interwikis go at the bottom of this page. -->
  
<!-- 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> }}
  
=== Usage ===
+
; ID with title
  <nowiki>{{IMTL | image.php?id = </nowiki>''1511''<nowiki> | title = </nowiki>''Wilson Chambers Building''<nowiki> }}</nowiki>
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | title {{=}} <var>TITLE</var> }}
  
;Parameters:
+
== Parameters ==
* <code>image.php?id</code>. Required: the "CodeIMTL" of the database entry found on the left side of the page.
+
; id {{nobold|or unnamed parameter}} 1
example: http://www.imtl.org/montreal/image.php?id=1511.
+
: 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.
  
* <code>title</code>. 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>
  
=== See also ===
+
; Usage
 +
: {{tlcw|{{BASEPAGENAME}} | 1511 | Wilson Chambers Building }}
 +
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 1511 | title{{=}} Wilson Chambers Building }}
  
<includeonly>
+
; Output
<!-- Categories and interwikis go here: -->
+
: {{{{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

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