Difference between revisions of "Template:CTBUH Skyscraper Center/doc"
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 {{ | + | :; 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 {{ | + | :; 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 | |
: <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 | |
| − | + | <nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower }}</nowiki> | |
| − | {{nowiki template demo | + | {{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower }}</nowiki>}} |
| − | + | ; Usage as citation | |
| − | + | <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Willis Tower | 2019-01-29 }}</nowiki> | |
| − | {{nowiki template demo | + | {{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Willis Tower | access-date= 2019-01-29 }}</nowiki>}} |
=== complex === | === complex === | ||
| − | + | ; 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 | |
| − | + | <nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki> | |
| − | {{nowiki template demo | + | {{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | id= 169 | name= Abraj Al-Bait Endowment Complex | complex= yes }}</nowiki>}} |
| − | + | ; Usage as citation | |
| − | + | <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 169 | Abraj Al-Bait Endowment Complex | 2019-01-29 | complex= yes }}</nowiki> | |
| − | {{nowiki template demo | + | {{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>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> | |
| − | {{nowiki template demo | + | {{nowiki template demo|code=<nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki> | complex= yes }}</nowiki>}} |
== Tracking categories == | == Tracking categories == | ||
| − | + | ; template with building ID (not currently tracking building complex ID) | |
| − | * {{clc|Skyscraper Center ID | + | * {{clc|CTBUH Skyscraper Center building ID different from Wikidata}} |
| − | * {{clc|Skyscraper Center ID | + | * {{clc|CTBUH Skyscraper Center building ID not in Wikidata}} |
| − | * {{clc|Skyscraper Center ID | + | ; 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>{{ | + | <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
| 40px | This is a documentation subpage for Template:CTBUH Skyscraper Center. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
Template:Underused external link template
Template:Uses Wikidata Template:Tracks Wikidata
| 30px | This template uses Lua: |
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.
Contents
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 }}
- Usage as citation
{{CTBUH Skyscraper Center | 169 | Willis Tower | 2019-01-29 }}
complex
- Usage as external link
* {{CTBUH Skyscraper Center | 169 | Abraj Al-Bait Endowment Complex | complex= yes }}
- Usage as citation
{{CTBUH Skyscraper Center | 169 | Abraj Al-Bait Endowment Complex | 2019-01-29 | complex= yes }}
missing ID and Wikidata property not defined
* {{CTBUH Skyscraper Center}}
Tracking categories
- template with building ID (not currently tracking building complex ID)
- Category:CTBUH Skyscraper Center building ID different from Wikidata (0)
- Category:CTBUH Skyscraper Center building ID not in Wikidata (0)
- template missing ID
See also
- {{Structurae}} which uses Template:Prop
- {{Emporis}} which uses Template:Prop or Template:Prop
- {{SkyscraperPage}} which uses Template:Prop