close
Sayahna Sayahna
Search

Difference between pages "Template:Authority control" and "Template:Authority control/sandbox"


Page 1
Page 2
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{#invoke:Authority control|authorityControl}}<noinclude>{{Documentation}}</noinclude><includeonly><!-- tracking categories to compare with Wikidata  
+
{{#invoke:Authority control/sandbox|authorityControl}}<noinclude>{{Documentation}}</noinclude><includeonly><!-- Some tracking categories to see if we're ready to switch to Wikidata -->
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.  
+
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
-->{{#ifeq:{{{VIAF|}}}|
+
{{#if:{{#property:P214}}
    |<!-- empty or no VIAF in template -->
+
| {{#if:{{{VIAF|}}}
    |<!-- VIAF in template
+
  | {{#ifeq:{{#property:P214}}|{{{VIAF|}}}
  -->{{#ifeq:{{#property:P214}}|
+
  | <!-- same ID: We want to end up here -->
      |<!-- no property P214 at Wikidata --> [[Category:VIAF not on Wikidata]] <!-- These we still need to import -->
+
  | [[Category:VIAF different on Wikidata]] <!-- Figure out the best link -->
      |<!-- property P214 at Wikidata    -->
+
  }}
      {{#ifeq:{{{VIAF|}}}|{{#property:P214}}
+
  | }}
        |<!-- same ID: We want to end up here -->
+
| [[Category:VIAF not on Wikidata]] <!-- These we still need to import -->
        |[[Category:VIAF different on Wikidata]] <!-- Figure out the best link, FIXME: multiple values on Wikidata -->
+
}}
      }}
 
    }}
 
  }}
 
 
}}</includeonly>
 
}}</includeonly>