Template:Authority control/testcases

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Test 1[edit]

code[edit]

{{Authority control|LCCN=n/90/604610|PND=104673907|BNF=cb15869387c|VIAF=29866650}}

current template[edit]

Authority control


proposed template[edit]

Authority control

proposed template (+ Wikidata)[edit]

{{Authority control/sandbox|LCCN=n/90/604610|PND=104673907|BNF=cb15869387c|VIAF=29866650|q=Q3791482}} (to suppress categories)

proposed template (bare version)[edit]


Test 2[edit]

code[edit]

{{Authority control|PND=118904752|LCCN=n/82/210973|VIAF=47560120|SELIBR=175511|SUDOC=071004467|TSURL=Gunnar_Asplund|ULAN=500011232|NLA=35179078}}

current template[edit]

Authority control


proposed template[edit]

Authority control

proposed template (bare version)[edit]


Test 3[edit]

code[edit]

{{Authority control|PND=118904752|VIAF=47560120|SELIBR=175511|SUDOC=071004467|TSURL=Gunnar_Asplund|ULAN=500011232|NLA=35179078}}

current template[edit]

Authority control


proposed template[edit]

Authority control

proposed template (bare version)[edit]


Test NLM[edit]

code[edit]

Authority control


Test Error Handling[edit]

{{Authority control/sandbox|VIAF= }} gives

Authority control

{{Authority control/sandbox|VIAF= |Q= }} gives

Authority control

{{Authority control/sandbox|VIAF= |Q=X }} gives The ID "X" is unknown to the system. Please use a valid entity ID.

{{Authority control/sandbox|VIAF= |Q=Q20990872 }} gives

Authority control
(no identifiers)

{{Authority control/sandbox|VIAF=30870981|LCCN=n/81/141882|ULAN=500068197|ISNI=0000000108141105}} gives

Authority control