Difference between revisions of "Template:Bandcamp"

From blackwiki
Jump to navigation Jump to search
imported>Mwtoews
imported>Zyxw
(If Wikidata property has multiple values, only use first one. Update tracking category.)
 
Line 1: Line 1:
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P3283}}
+
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3283}}
|[https://{{Trim|{{{1|{{{id<includeonly>|{{#property:P3283}}</includeonly>}}}}}}}}.bandcamp.com/ {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] on [[Bandcamp]]<includeonly>{{EditAtWikidata|pid=P3283|{{{1|{{{id|}}}}}}}}</includeonly>
+
 
|<span class="error">&#123;&#123;[[Template:Bandcamp|Bandcamp]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Bandcamp template missing ID]]}}
+
| [https://{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3283}}|sep=,}} }}.bandcamp.com/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] on [[Bandcamp]]<includeonly>{{EditAtWikidata|pid=P3283|{{{1|{{{id|}}}}}}}}</includeonly>
 +
 
 +
| <span class="error">&#123;&#123;[[Template:Bandcamp|Bandcamp]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Bandcamp template missing ID and not in Wikidata‎]]}}
 +
 
 
}}<noinclude>
 
}}<noinclude>
{{Documentation}}
+
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:01, 7 April 2019

{{{name}}} on Bandcamp

Template documentation[view] [edit] [history] [purge]

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