Template:Skyscraperpage/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template displays an external link or citation for an entry in the SkyscraperPage database.

ID only (uses Wikipedia article name as link text)
{{SkyscraperPage | ID }}
{{SkyscraperPage | id = ID }}
ID with title
{{SkyscraperPage | ID | TITLE }}
{{SkyscraperPage | id = ID | title = TITLE }}
ID with title and accessdate
{{SkyscraperPage | ID | TITLE | DATE }}
{{SkyscraperPage | id = ID | title = TITLE | accessdate = DATE }}
Using Wikidata property (P1699)
{{SkyscraperPage}}
{{SkyscraperPage | title = TITLE }}

Parameters

[edit source]
id or unnamed parameter 1
The "buildingID" of the database entry found in the structure's URL. If not provided, the template will attempt to fetch the value from Wikidata. example: http://skyscraperpage.com/cities/?buildingID=39392.
title or name or unnamed parameter 2
The name of the linked-to article, as it appears in the Skyscraperpage database; name can be used instead of title. The default is the article's page name.
accessdate or unnamed parameter 3
The access date, if SkyscraperPage is being cited as a reference. Should normally be omitted when merely including the SkyscraperPage entry as an external link in an article.

Examples

[edit source]

ID with title

[edit source]
URL
https://skyscraperpage.com/cities/?buildingID=13
Usage
{{SkyscraperPage | 13 | Bank of China Tower }}
{{SkyscraperPage | id= 13 | title= Bank of China Tower }}
Output
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

ID with title and accessdate

[edit source]
URL
https://skyscraperpage.com/cities/?buildingID=39392
Usage
{{SkyscraperPage | 39392 | Chicago Spire | 2019-01-30 }}
{{SkyscraperPage | id= 39392 | title= Chicago Spire | accessdate= 2019-01-30 }}
Output
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Missing ID and Wikidata property not defined

[edit source]
Usage
{{SkyscraperPage}}
Output
Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

Tracking category

[edit source]

See also

[edit source]