Difference between revisions of "Template:CTBUH Skyscraper Center/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add see also section)
imported>Zyxw
(add link to shortcut)
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{cs1 wrapper|base=Cite web}}
 
{{cs1 wrapper|base=Cite web}}
 
{{Underused external link template|http://www.skyscrapercenter.com/building.php?building_id=}}
 
{{Underused external link template|http://www.skyscrapercenter.com/building.php?building_id=}}
 +
{{Template shortcut|CTBUH}}
 
{{Uses Wikidata|P1305|P2762}}
 
{{Uses Wikidata|P1305|P2762}}
 +
{{Tracks Wikidata|P1305}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] to a [[Council on Tall Buildings and Urban Habitat]] (CTBUH) [http://www.skyscrapercenter.com/ Skyscraper Center] web page about a building or complex.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] to a [[Council on Tall Buildings and Urban Habitat]] (CTBUH) [http://www.skyscrapercenter.com/ Skyscraper Center] web page about a building or complex.
Line 22: Line 25:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | access-date{{=}} <var>DATE</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | access-date{{=}} <var>DATE</var> }}
  
:; Using [[Wikidata]] property {{prop|P1305}}
+
:; Using [[Wikidata]] property {{Property|1305}}
 
: {{tlcw|{{BASEPAGENAME}} }}
 
: {{tlcw|{{BASEPAGENAME}} }}
 
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }}
Line 39: Line 42:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | access-date{{=}} <var>DATE</var> | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | access-date{{=}} <var>DATE</var> | complex{{=}} yes }}
  
:; Using [[Wikidata]] property {{prop|P2762}}
+
:; Using [[Wikidata]] property {{Property|2762}}
 
: {{tlcw|{{BASEPAGENAME}} | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | complex{{=}} yes }}
 
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | complex{{=}} yes }}
Line 56: Line 59:
  
 
=== building ===
 
=== building ===
:; URLs
+
; URLs
 
: <kbd>[http://www.skyscrapercenter.com/building.php?building_id=169 http://www.skyscrapercenter.com/building.php?building_id={{Hilite|169}}]</kbd>
 
: <kbd>[http://www.skyscrapercenter.com/building.php?building_id=169 http://www.skyscrapercenter.com/building.php?building_id={{Hilite|169}}]</kbd>
 
: <kbd>[http://www.skyscrapercenter.com/building/willis-tower/169 http://www.skyscrapercenter.com/building/willis-tower/{{Hilite|169}}]</kbd>
 
: <kbd>[http://www.skyscrapercenter.com/building/willis-tower/169 http://www.skyscrapercenter.com/building/willis-tower/{{Hilite|169}}]</kbd>
  
:; Usage as external link
+
; Usage as external link
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower }}</nowiki>}}
+
<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower }}</nowiki>
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower }}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower }}</nowiki>}}
  
:; Usage as citation
+
; Usage as citation
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower | 2019-01-29 }}</nowiki>}}
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower | 2019-01-29 }}</nowiki>
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower | access-date= 2019-01-29 }}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower | access-date= 2019-01-29 }}</nowiki>}}
  
 
=== complex ===
 
=== complex ===
:; URL
+
; URL
 
: <kbd>[http://www.skyscrapercenter.com/complex/169 http://www.skyscrapercenter.com/complex/{{Hilite|169}}]</kbd>
 
: <kbd>[http://www.skyscrapercenter.com/complex/169 http://www.skyscrapercenter.com/complex/{{Hilite|169}}]</kbd>
  
:; Usage as external link
+
; Usage as external link
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki>}}
+
<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki>
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki>}}
  
:; Usage as citation
+
; Usage as citation
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | 2019-01-29 | complex= yes }}</nowiki>}}
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | 2019-01-29 | complex= yes }}</nowiki>
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Abraj Al-Bait Endowment Complex | access-date= 2019-01-29 | complex= yes }}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Abraj Al-Bait Endowment Complex | access-date= 2019-01-29 | complex= yes }}</nowiki>}}
  
 
=== missing ID and Wikidata property not defined ===
 
=== missing ID and Wikidata property not defined ===
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>}}
+
<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>
{{nowiki template demo|format=inline|prefix=:|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | complex= yes }}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | complex= yes }}</nowiki>}}
  
 
== Tracking categories ==
 
== Tracking categories ==
{{Tracks Wikidata|P1305}}
+
; template with building ID (not currently tracking building complex ID)
* {{clc|Skyscraper Center ID not in Wikidata}}
+
* {{clc|CTBUH Skyscraper Center building ID different from Wikidata}}
* {{clc|Skyscraper Center ID different from Wikidata}}
+
* {{clc|CTBUH Skyscraper Center building ID not in Wikidata}}
* {{clc|Skyscraper Center ID same as Wikidata}}
+
; template missing ID
 +
* {{clc|CTBUH Skyscraper Center template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
Line 95: Line 99:
 
* {{tl|SkyscraperPage}} which uses {{prop|1699}}
 
* {{tl|SkyscraperPage}} which uses {{prop|1699}}
  
<includeonly>{{sandbox other||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line and interwikis at Wikidata -->
 
<!-- Categories below this line and interwikis at Wikidata -->
 
[[Category:Buildings and structures external link templates]]
 
[[Category:Buildings and structures external link templates]]
 
[[Category:External link templates with accessdate parameter]]
 
[[Category:External link templates with accessdate parameter]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates using multiple Wikidata external identifiers]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 12:48, 22 May 2019

Template:Underused external link template

Template:Uses Wikidata Template:Tracks Wikidata

Template:CTBUH Skyscraper Center displays an external link to a Council on Tall Buildings and Urban Habitat (CTBUH) Skyscraper Center 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:Property
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:Property
Template:Tlcw
Template:Tlcw

Parameters

id or unnamed parameter 1
Optional: the "building_id" of the database entry found in the structure's URL. If not used, the template will pull the value from Wikidata. Example: http://www.skyscrapercenter.com/building.php?building_id=5579.
title or name or unnamed parameter 2
The name of the linked-to article, as it appears in the CTBUH Skyscrapercenter Database. The default is the article's pagename.
access-date or 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
http://www.skyscrapercenter.com/building.php?building_id=169
http://www.skyscrapercenter.com/building/willis-tower/169
Usage as external link
* {{CTBUH Skyscraper Center | 169 | Willis Tower }}

Template:Nowiki template demo

Usage as citation
{{CTBUH Skyscraper Center | 169 | Willis Tower | 2019-01-29 }}

Template:Nowiki template demo

complex

URL
http://www.skyscrapercenter.com/complex/169
Usage as external link
* {{CTBUH Skyscraper Center | 169 | Abraj Al-Bait Endowment Complex | complex= yes }}

Template:Nowiki template demo

Usage as citation
{{CTBUH Skyscraper Center | 169 | Abraj Al-Bait Endowment Complex | 2019-01-29 | complex= yes }}

Template:Nowiki template demo

missing ID and Wikidata property not defined

* {{CTBUH Skyscraper Center}}

Template:Nowiki template demo

Tracking categories

template with building ID (not currently tracking building complex ID)
template missing ID

See also