Module:Categorytowikidata/doc

This is example for derivating depicts (P180) from categories. Method

  1. Loop through categories
  2. If P31=Wikimedia category (Q4167836) and category's main topic (P301) is set then
    1. If P301 = taxon (Q16521) then use P301 value
    2. else use P31, P276 value of P301
  3. If P31=Wikimedia category (Q4167836) and category combines topics (P971) is set then use P971 values
  4. If P31=human (Q5) then use QID
  5. IF P31 NOT IN "Q4167836", "Q20683640", "Q59541917", "Q97580368", "Q16695773", "Q2668072", "Q672070", "Q1439691", "Q214609", "Q478798" then use QID
  6. else use P31 values


File examples

file:Tourmaline-21712.jpg