Open main menu

Difference between revisions of "Template:Authority control"

m (1 revision imported)
(add support for lowercase parameter names per talk)
Line 2: Line 2:
 
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.  
 
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.  
 
-->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using authority control with parameters]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}<!--
 
-->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using authority control with parameters]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}<!--
-->{{#ifeq:{{{VIAF|}}}|
+
-->{{#ifeq:{{{viaf|{{{VIAF|}}}}}}|
 
     |<!-- empty or no VIAF in template -->
 
     |<!-- empty or no VIAF in template -->
 
     |<!-- VIAF in template  
 
     |<!-- VIAF in template  
Line 8: Line 8:
 
       |<!-- no property P214 at Wikidata --> [[Category:VIAF not on Wikidata]] <!-- These we still need to import -->
 
       |<!-- no property P214 at Wikidata --> [[Category:VIAF not on Wikidata]] <!-- These we still need to import -->
 
       |<!-- property P214 at Wikidata    -->  
 
       |<!-- property P214 at Wikidata    -->  
       {{#ifeq:{{{VIAF|}}}|{{#property:P214}}
+
       {{#ifeq:{{{viaf|{{{VIAF|}}}}}}|{{#property:P214}}
 
         |<!-- same ID: We want to end up here -->
 
         |<!-- same ID: We want to end up here -->
 
         |[[Category:VIAF different on Wikidata]] <!-- Figure out the best link, FIXME: multiple values on Wikidata -->
 
         |[[Category:VIAF different on Wikidata]] <!-- Figure out the best link, FIXME: multiple values on Wikidata -->

Revision as of 18:14, 8 September 2020

Lua error in package.lua at line 80: module 'strict' not found.Lua error in mw.title.lua at line 206: too many expensive function calls.