Difference between revisions of "Template:Digitaltmuseum/doc"

From blackwiki
Jump to navigation Jump to search
imported>Salgo60
(Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> Tem...')
 
imported>Zyxw
m (add link)
 
(One intermediate revision 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]]) -->
 +
{{Uses Wikidata|P1248}}
 +
{{Lua|Module:EditAtWikidata}}
 +
 
Template using Wikidata Property {{Q|P1248}} for linking [https://dok.digitaltmuseum.org/en/about Digitaltmuseum] that is a plattform used by Swedish and Norwegian museums   
 
Template using Wikidata Property {{Q|P1248}} for linking [https://dok.digitaltmuseum.org/en/about Digitaltmuseum] that is a plattform used by Swedish and Norwegian museums   
  
 
== Usage ==
 
== Usage ==
===External link===
+
Using ID in template:
Using [[Wikidata]] property {{Property|1248}}:
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|<var>ID</var>}}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|<var>ID</var>|name=<var>NAME</var>}}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|<var>ID</var>|name=<var>NAME</var>|accessdate=<var>DATE</var>}}</code>
 +
 
 +
Using ID in [[Wikidata]] property {{Property|1248}}:
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | name= }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|name=<var>NAME</var>}}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | name= | accessdate= }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|name=<var>NAME</var>|accessdate=<var>DATE</var>}}</code>
 +
 
 +
== Examples ==
 +
 
 +
=== ID in template ===
 +
''Usage in the article [[Maria Röhl]]:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|bcef8d35-b709-4328-a3e2-e85be007d627}}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|bcef8d35-b709-4328-a3e2-e85be007d627|accessdate=12 October 2020}}</code>
  
Unnamed parameters:
+
''Output:''
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
+
:* {{{{BASEPAGENAME}}|bcef8d35-b709-4328-a3e2-e85be007d627|name=Maria Röhl}}
 +
:* {{{{BASEPAGENAME}}|bcef8d35-b709-4328-a3e2-e85be007d627|name=Maria Röhl|accessdate=12 October 2020}}
  
== Tracking Category ==
+
''URL:''
* [[:Category:Digitaltmuseum template using Wikidata property P1248]]
+
: [http://digitaltmuseum.org/bcef8d35-b709-4328-a3e2-e85be007d627 http://digitaltmuseum.org/{{highlight|bcef8d35-b709-4328-a3e2-e85be007d627}}]
 +
 
 +
=== ID in Wikidata ===
 +
''Usage in the article [[Ralph Erskine (architect)]]:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}}}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}|accessdate=2020-10-14}}</code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}}|0aebf664-6602-4a67-84f9-0ce5a87f3703|name=Ralph Erskine}}
 +
:* {{{{BASEPAGENAME}}|0aebf664-6602-4a67-84f9-0ce5a87f3703|name=Ralph Erskine|accessdate=2020-10-14}}
 +
 
 +
''URL:''
 +
: [http://digitaltmuseum.org/0aebf664-6602-4a67-84f9-0ce5a87f3703 http://digitaltmuseum.org/{{highlight|0aebf664-6602-4a67-84f9-0ce5a87f3703}}]
 +
 
 +
=== No ID in template or Wikidata ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} }}
 +
 
 +
== Tracking category ==
 +
* {{clc|Digitaltmuseum template using Wikidata property P1248}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:People and person external link templates]]
 +
[[Category:External link templates with accessdate parameter]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 22:15, 15 October 2020

Template:Uses Wikidata

Template using Wikidata Property Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1248) for linking Digitaltmuseum that is a plattform used by Swedish and Norwegian museums

Usage

Using ID in template:

* {{Digitaltmuseum|ID}}
* {{Digitaltmuseum|ID|name=NAME}}
* {{Digitaltmuseum|ID|name=NAME|accessdate=DATE}}

Using ID in Wikidata property Template:Property:

* {{Digitaltmuseum}}
* {{Digitaltmuseum|name=NAME}}
* {{Digitaltmuseum|name=NAME|accessdate=DATE}}

Examples

ID in template

Usage in the article Maria Röhl:

* {{Digitaltmuseum|bcef8d35-b709-4328-a3e2-e85be007d627}}
* {{Digitaltmuseum|bcef8d35-b709-4328-a3e2-e85be007d627|accessdate=12 October 2020}}

Output:

URL:

http://digitaltmuseum.org/bcef8d35-b709-4328-a3e2-e85be007d627

ID in Wikidata

Usage in the article Ralph Erskine (architect):

* {{Digitaltmuseum}}
* {{Digitaltmuseum|accessdate=2020-10-14}}

Output:

URL:

http://digitaltmuseum.org/0aebf664-6602-4a67-84f9-0ce5a87f3703

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

Tracking category