Difference between revisions of "Template:Emporis/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(note module used)
imported>Zyxw
(update examples)
Line 13: Line 13:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
  
:; ID with name
+
:; ID with title
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> }}
  
:; ID with name and accessdate
+
:; ID with title and accessdate
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | <var>DATE</var> }}
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DATE</var> }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> | accessdate{{=}} <var>DATE</var> }}
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | accessdate{{=}} <var>DATE</var> }}
  
 
:; Using [[Wikidata]] property {{prop|455}}
 
:; Using [[Wikidata]] property {{prop|455}}
 
: {{tlcw|{{BASEPAGENAME}} }}
 
: {{tlcw|{{BASEPAGENAME}} }}
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
+
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }}
  
 
=== complex ===
 
=== complex ===
Line 30: Line 30:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | complex{{=}} yes }}
  
:; ID with name
+
:; ID with title
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | complex{{=}} yes }}
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | complex{{=}} yes }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> | complex{{=}} yes }}
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | complex{{=}} yes }}
  
:; ID with name and accessdate
+
:; ID with title and accessdate
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | <var>DATE</var> | complex{{=}} yes }}
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DATE</var> | complex{{=}} yes }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> | accessdate{{=}} <var>DATE</var> | complex{{=}} yes }}
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | accessdate{{=}} <var>DATE</var> | complex{{=}} yes }}
  
 
:; Using [[Wikidata]] property {{prop|2270}}
 
:; Using [[Wikidata]] property {{prop|2270}}
 
: {{tlcw|{{BASEPAGENAME}} | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | complex{{=}} yes }}
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> | complex{{=}} yes }}
+
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | complex{{=}} yes }}
  
 
== Parameters ==
 
== Parameters ==
 
; id {{nobold|or unnamed parameter}} 1
 
; id {{nobold|or unnamed parameter}} 1
 
: The "ID" of the database entry found in the structure's URL, e.g. "240620" in "<nowiki>http://www.emporis.com/buildings/240620/chicago-spire-chicago-il-usa</nowiki>". If not provided, the template will attempt to fetch the value from [[Wikidata]].
 
: The "ID" of the database entry found in the structure's URL, e.g. "240620" in "<nowiki>http://www.emporis.com/buildings/240620/chicago-spire-chicago-il-usa</nowiki>". If not provided, the template will attempt to fetch the value from [[Wikidata]].
; name {{nobold|or unnamed parameter}} 2
+
; title {{nobold|or}} name {{nobold|or unnamed parameter}} 2
: The name of the linked-to article, as it appears in the ''Emporis'' database; the default is the article's pagename.
+
: The title of the linked-to article, as it appears in the ''Emporis'' database; the default is the article's pagename.
 
; accessdate {{nobold|or unnamed parameter}} 3
 
; accessdate {{nobold|or unnamed parameter}} 3
 
: Date accessed (for use in citations); format as 21 April 2016 or April 21, 2016 or 2016-04-21.
 
: Date accessed (for use in citations); format as 21 April 2016 or April 21, 2016 or 2016-04-21.
Line 59: Line 59:
 
:; Usage as external link
 
:; Usage as external link
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 240620 | Chicago Spire }}
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 240620 | Chicago Spire }}
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 240620 | name= Chicago Spire }}
+
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 240620 | title= Chicago Spire }}
  
 
:; Usage as citation
 
:; Usage as citation
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 240620 | Chicago Spire | 2019-01-30 }}
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 240620 | Chicago Spire | 2019-01-30 }}
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 240620 | name= Chicago Spire | accessdate= 2019-01-30 }}
+
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 240620 | title= Chicago Spire | accessdate= 2019-01-30 }}
  
 
=== complex ===
 
=== complex ===
Line 71: Line 71:
 
:; Usage as external link
 
:; Usage as external link
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 102057 | Metro Plaza | complex= yes }}
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 102057 | Metro Plaza | complex= yes }}
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 102057 | name= Metro Plaza | complex= yes }}
+
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 102057 | title= Metro Plaza | complex= yes }}
  
 
:; Usage as citation
 
:; Usage as citation
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 102057 | Metro Plaza | 2019-01-30 | complex= yes }}
 
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | 102057 | Metro Plaza | 2019-01-30 | complex= yes }}
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 102057 | name= Metro Plaza | accessdate= 2019-01-30 | complex= yes }}
+
: {{#invoke:DemoTemplate|{{BASEPAGENAME}} | id= 102057 | title= Metro Plaza | accessdate= 2019-01-30 | complex= yes }}
  
 
=== missing ID and Wikidata property not defined ===
 
=== missing ID and Wikidata property not defined ===

Revision as of 00:10, 31 January 2019

Template:Uses Wikidata

Template:Emporis displays an external link to an Emporis web page about a building or complex.

Usage

building

ID only (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with title
Template:Tlcw
Template:Tlcw
ID with title and accessdate
Template:Tlcw
Template:Tlcw
Using Wikidata property Template:Prop
Template:Tlcw
Template:Tlcw

complex

ID only (uses Wikipedia article name as link text)
Template:Tlcw
Template:Tlcw
ID with title
Template:Tlcw
Template:Tlcw
ID with title and accessdate
Template:Tlcw
Template:Tlcw
Using Wikidata property Template:Prop
Template:Tlcw
Template:Tlcw

Parameters

id or unnamed parameter 1
The "ID" of the database entry found in the structure's URL, e.g. "240620" in "http://www.emporis.com/buildings/240620/chicago-spire-chicago-il-usa". If not provided, the template will attempt to fetch the value from Wikidata.
title or name or unnamed parameter 2
The title of the linked-to article, as it appears in the Emporis database; the default is the article's pagename.
accessdate or unnamed parameter 3
Date accessed (for use in citations); format as 21 April 2016 or April 21, 2016 or 2016-04-21.
complex
Set to "yes" if linking to a complex.

Examples

building

URLs
https://www.emporis.com/buildings/240620/chicago-spire-chicago-il-usa
Usage as external link
{{Emporis| 240620 | Chicago Spire }}Chicago Spire at EmporisScript error: No such module "EditAtWikidata".
{{Emporis|id=240620|title=Chicago Spire}}Chicago Spire at EmporisScript error: No such module "EditAtWikidata".
Usage as citation
{{Emporis| 240620 | Chicago Spire | 2019-01-30 }}Chicago Spire at Emporis. Retrieved 2019-01-30.Script error: No such module "EditAtWikidata".
{{Emporis|id=240620|title=Chicago Spire|accessdate=2019-01-30}}Chicago Spire at Emporis. Retrieved 2019-01-30.Script error: No such module "EditAtWikidata".

complex

URL
https://www.emporis.com/complex/102057/metro-plaza-guangzhou-china
Usage as external link
{{Emporis| 102057 | Metro Plaza |complex=yes}}Metro Plaza at EmporisScript error: No such module "EditAtWikidata".
{{Emporis|id=102057|title=Metro Plaza|complex=yes}}Metro Plaza at EmporisScript error: No such module "EditAtWikidata".
Usage as citation
{{Emporis| 102057 | Metro Plaza | 2019-01-30 |complex=yes}}Metro Plaza at Emporis. Retrieved 2019-01-30.Script error: No such module "EditAtWikidata".
{{Emporis|id=102057|complex=yes|title=Metro Plaza|accessdate=2019-01-30}}Metro Plaza at Emporis. Retrieved 2019-01-30.Script error: No such module "EditAtWikidata".

missing ID and Wikidata property not defined

{{Emporis}}Template:PAGENAMEBASE at EmporisScript error: No such module "EditAtWikidata".
{{Emporis|complex=yes}}Template:PAGENAMEBASE at EmporisScript error: No such module "EditAtWikidata".

Tracking category

See also