Difference between revisions of "Template:Bandcamp/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mwtoews
imported>Zyxw
(update link, misc formatting)
 
(2 intermediate revisions by the same user not shown)
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]]) -->
 +
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to external websites]] unless the profile is an [[WP:ELOFFICIAL|official account]], "controlled by the subject (organization or individual person) of the Wikipedia article" '''and''' when the links to Bandcamp "provide the reader with unique content and are not prominently linked from other official websites".  Wikipedia is not a directory for helping Bandcamp users find pages on Bandcamp.}}
 +
 
{{Uses Wikidata|P3283}}
 
{{Uses Wikidata|P3283}}
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to external websites]] unless the profile is an [[WP:ELOFFICIAL|official account]], "controlled by the subject (organization or individual person) of the Wikipedia article" '''and''' when the links to Bandcamp "provide the reader with unique content and are not prominently linked from other official websites".  Wikipedia is not a directory for helping Bandcamp users find pages on Bandcamp.}}
 
  
 
== Usage ==
 
== Usage ==
<!-- todo -->
+
Unnamed parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
 +
 
 +
Named parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 +
 
 +
Using [[Wikidata]] property {{Property|3283}}:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
 +
 
 +
== Examples ==
 +
 
 +
=== Unnamed parameters ===
 +
''URL:''
 +
: <kbd>[https://amandapalmer.bandcamp.com https://{{Hilite|amandapalmer}}.bandcamp.com]</kbd>
  
<includeonly>{{sandbox other||
+
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | amandapalmer | Amanda Palmer }}</code>
 +
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | amandapalmer | Amanda Palmer }}
 +
 
 +
=== Named parameters ===
 +
''URL:''
 +
: <kbd>[https://cuneiformrecords.bandcamp.com https://{{Hilite|cuneiformrecords}}.bandcamp.com]</kbd>
 +
 
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= cuneiformrecords | name= Cuneiform Records }}</code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | id= cuneiformrecords | name= Cuneiform Records }}
 +
 
 +
=== No parameters and Wikidata property not defined ===
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{ {{BASEPAGENAME}} }}
 +
 
 +
== Tracking category ==
 +
* {{clc|Bandcamp template missing ID and not in Wikidata‎}}
 +
 
 +
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Social media external link templates]]
 +
[[Category:Music external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 17:04, 7 April 2019

Template:Uses Wikidata

Usage

Unnamed parameters:

{{Bandcamp | ID }}
{{Bandcamp | ID | NAME }}

Named parameters:

{{Bandcamp | id= ID }}
{{Bandcamp | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{Bandcamp}}
{{Bandcamp | name= NAME }}

Examples

Unnamed parameters

URL:

https://amandapalmer.bandcamp.com

Usage:

* {{Bandcamp | amandapalmer | Amanda Palmer }}

Output:

Named parameters

URL:

https://cuneiformrecords.bandcamp.com

Usage:

* {{Bandcamp | id= cuneiformrecords | name= Cuneiform Records }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{Bandcamp}}

Output:

Tracking category