Browse Source

culture-media: filter 'category' for those who don't need the wikidata result

parking-lanes
parent
commit
4f78539d53
  1. 9
      culture-media.yaml

9
culture-media.yaml

@ -87,6 +87,15 @@ filter:
<option value='{{ kv }}' query='nwr[{{ d.query|default(kv) }}]'>{% if d.trans %}{{ trans(d.trans) }}{% elseif not v %}{{ keyTrans(k) }}{% else %}{{ tagTrans(k, v) }}{% endif %}</option>
{% endfor %}
op: "has"
category:
name: "{{ trans('category') }}"
show_default: "true"
type: "select"
values: |
<option value='no' query='nwr[!image][!wikimedia_commons][!wikidata][!wikipedia]'>No image, wikimedia_commons or wikidata</option>
<option value='wikipedia_no_wikidata' query='nwr[!wikidata][wikipedia]'>wikipedia tag found without corresponding wikidata tag</option>
<option value='has_image' query='(nwr[!wikidata][image];nwr[!wikidata][wikimedia_commons];)'>image or wikimedia_commons tag but no wikidata</option>
<option value='wikidata' query='nwr[wikidata]'>has wikidata tag</option>
info: |
<table>
<tr>

Loading…
Cancel
Save