Difference between revisions of "Template:Cinema Treasures theater/doc"
imported>Trivialist |
imported>Zyxw (update link) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | {{Template shortcut|CTO theater}} | ||
{{Uses Wikidata|P4129}} | {{Uses Wikidata|P4129}} | ||
| + | |||
This template generates an external link to information about theaters at the website [http://cinematreasures.org/ Cinema Treasures]. | This template generates an external link to information about theaters at the website [http://cinematreasures.org/ Cinema Treasures]. | ||
== Usage == | == Usage == | ||
| − | + | Unnamed parameters: | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''THEATER'' }}</code> | ||
| + | |||
| + | Named parameters: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
| − | |||
| − | |||
| − | |||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | theater= ''THEATER'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | theater= ''THEATER'' }}</code> | ||
| − | Using [[Wikidata]] property | + | Using [[Wikidata]] property {{Property|4129}}: |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | theater= ''THEATER'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | theater= ''THEATER'' }}</code> | ||
| Line 26: | Line 28: | ||
''Usage:'' | ''Usage:'' | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 10 }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 10 }}</code> |
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 10 }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 10 }}</code> |
| + | |||
''Output:'' | ''Output:'' | ||
| − | : {{ {{BASEPAGENAME}} | 10 }} | + | :* {{ {{BASEPAGENAME}} | 10 }} |
| − | : {{ {{BASEPAGENAME}} | id= 10 }} | + | :* {{ {{BASEPAGENAME}} | id= 10 }} |
Since "Cinema Treasures theater" is the name of the Wikipedia page you now are looking at, the link above appears as "Cinema Treasures theater at Cinema Treasures" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page. | Since "Cinema Treasures theater" is the name of the Wikipedia page you now are looking at, the link above appears as "Cinema Treasures theater at Cinema Treasures" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page. | ||
| Line 39: | Line 42: | ||
''URL:'' | ''URL:'' | ||
: <code><nowiki>https://</nowiki>cinematreasures.com/{{hilite|33}}</code> | : <code><nowiki>https://</nowiki>cinematreasures.com/{{hilite|33}}</code> | ||
| + | |||
''Usage:'' | ''Usage:'' | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 33 | Cinerama Dome and ArcLight Hollywood }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 33 | Cinerama Dome and ArcLight Hollywood }}</code> |
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 33 | theater= Cinerama Dome and ArcLight Hollywood }}</code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 33 | theater= Cinerama Dome and ArcLight Hollywood }}</code> |
| + | |||
''Output:'' | ''Output:'' | ||
| − | : {{ {{BASEPAGENAME}} | 33 | Cinerama Dome and ArcLight Hollywood }} | + | :* {{ {{BASEPAGENAME}} | 33 | Cinerama Dome and ArcLight Hollywood }} |
| − | : {{ {{BASEPAGENAME}} | id= 33 | theater= Cinerama Dome and ArcLight Hollywood }} | + | :* {{ {{BASEPAGENAME}} | id= 33 | theater= Cinerama Dome and ArcLight Hollywood }} |
===No parameters=== | ===No parameters=== | ||
| − | When used without an "id" parameter, this template will call data from [[Wikidata]], if available. If none is available, the category [[:Category:Cinema Treasures theater template missing ID]] will be applied and an error message will be displayed. | + | When used without an "id" parameter, this template will call data from [[Wikidata]], if available. If none is available, the category [[:Category:Cinema Treasures theater template missing ID and not in Wikidata]] will be applied and an error message will be displayed. |
''Usage:'' | ''Usage:'' | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
| + | |||
''Output:'' | ''Output:'' | ||
| − | : {{ {{BASEPAGENAME}} }} | + | :* {{ {{BASEPAGENAME}} }} |
== TemplateData == | == TemplateData == | ||
| Line 87: | Line 93: | ||
; Articles using template | ; Articles using template | ||
* {{clc|Articles using Template:Cinema Treasures theater}} | * {{clc|Articles using Template:Cinema Treasures theater}} | ||
| − | ; | + | ; ID parameter exists |
* {{clc|Cinema Treasures ID not in Wikidata}} | * {{clc|Cinema Treasures ID not in Wikidata}} | ||
* {{clc|Cinema Treasures ID different from Wikidata}} | * {{clc|Cinema Treasures ID different from Wikidata}} | ||
* {{clc|Cinema Treasures ID same as Wikidata}} | * {{clc|Cinema Treasures ID same as Wikidata}} | ||
| − | ; | + | ; ID parameter does not exist |
| − | * {{clc|Cinema Treasures theater template missing ID}} | + | * {{clc|Cinema Treasures theater template missing ID and not in Wikidata}} |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Architecture templates]] | [[Category:Architecture templates]] | ||
| + | [[Category:Film external link templates]] | ||
[[Category:External link templates using Wikidata]] | [[Category:External link templates using Wikidata]] | ||
| − | |||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 23:00, 25 April 2019
| File:Edit-copy green.svg | This is a documentation subpage for Template:Cinema Treasures theater. It contains usage information, categories and other content that is not part of the original template page. |
This template generates an external link to information about theaters at the website Cinema Treasures.
Contents
Usage
Unnamed parameters:
{{Cinema Treasures theater | ID }}{{Cinema Treasures theater | ID | THEATER }}
Named parameters:
{{Cinema Treasures theater | id= ID }}{{Cinema Treasures theater | id= ID | theater= THEATER }}
Using Wikidata property Template:Property:
{{Cinema Treasures theater}}{{Cinema Treasures theater | theater= THEATER }}
Examples
One parameter
This parameter will be the number string used in the URL for a theater at Cinema Treasures. When one parameter is used, the link text is the title of the Wikipedia article where the template is used.
URL:
http://cinematreasures.org/theaters/10
Usage:
* {{Cinema Treasures theater | 10 }}* {{Cinema Treasures theater | id= 10 }}
Output:
- Template:PAGENAMEBASE at Cinema TreasuresScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Template:PAGENAMEBASE at Cinema TreasuresScript error: No such module "EditAtWikidata".Template:WikidataCheck
Since "Cinema Treasures theater" is the name of the Wikipedia page you now are looking at, the link above appears as "Cinema Treasures theater at Cinema Treasures" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page.
Two parameters
The first parameter will be the number string used in the URL at Cinema Treasures. The second parameter will be used as the link text.
URL:
https://cinematreasures.com/33
Usage:
* {{Cinema Treasures theater | 33 | Cinerama Dome and ArcLight Hollywood }}* {{Cinema Treasures theater | id= 33 | theater= Cinerama Dome and ArcLight Hollywood }}
Output:
- Cinerama Dome and ArcLight Hollywood at Cinema TreasuresScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Cinerama Dome and ArcLight Hollywood at Cinema TreasuresScript error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters
When used without an "id" parameter, this template will call data from Wikidata, if available. If none is available, the category Category:Cinema Treasures theater template missing ID and not in Wikidata will be applied and an error message will be displayed.
Usage:
* {{Cinema Treasures theater}}
Output:
- Template:PAGENAMEBASE at Cinema TreasuresScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for Cinema Treasures theater
This template generates an external link to a page at Cinema Treasures.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 33 is the ID portion of https://cinematreasures.com/33. This parameter is optional if Wikidata property P4129 exists, but required if not.
| String | optional |
| theater | name 2 | The "theater" parameter (or unnamed parameter "2") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.
| String | optional |
Tracking categories
- Articles using template
- ID parameter exists
- Category:Cinema Treasures ID not in Wikidata (0)
- Category:Cinema Treasures ID different from Wikidata (0)
- Category:Cinema Treasures ID same as Wikidata (0)
- ID parameter does not exist