Difference between revisions of "Template:Cinema Treasures theater/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update link)
imported>Zyxw
m (update for tracking)
 
Line 3: Line 3:
 
{{Template shortcut|CTO theater}}
 
{{Template shortcut|CTO theater}}
 
{{Uses Wikidata|P4129}}
 
{{Uses Wikidata|P4129}}
 +
{{Tracks Wikidata|P4129}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
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].
Line 93: Line 95:
 
; Articles using template
 
; Articles using template
 
* {{clc|Articles using Template:Cinema Treasures theater}}
 
* {{clc|Articles using Template:Cinema Treasures theater}}
; ID parameter exists
+
; template with ID
 
* {{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
+
; template missing ID
 
* {{clc|Cinema Treasures theater template missing ID and not in Wikidata}}
 
* {{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]]

Latest revision as of 04:11, 10 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

This template generates an external link to information about theaters at the website Cinema Treasures.

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:

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:

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:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Cinema Treasures theater

This template generates an external link to a page at Cinema Treasures.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P4129
Stringoptional
theatername 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.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

Articles using template
template with ID
template missing ID