Module:P180fromCategory/doc
(Redirected from Module:Categorytowikidata/doc)
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules
This is the documentation page for Module:P180fromCategory
This is example for derivating depicts (P180) from categories. Method
- Loop through categories
- If P31=Wikimedia category (Q4167836) and category's main topic (P301) is set then
- If P301 = taxon (Q16521) then use P301 value
- else use P31, P276 value of P301
- If P31=Wikimedia category (Q4167836) and category combines topics (P971) is set then use P971 values
- If P31=human (Q5) then use QID
- IF P31 NOT IN "Q4167836", "Q20683640", "Q59541917", "Q97580368", "Q16695773", "Q2668072", "Q672070", "Q1439691", "Q214609", "Q478798" then use QID
- else use P31 values