MediaWiki:AutomatedValues

From Wikibase Automated Values - Demo Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
rules
ruleName"People full name label"
when
statement"P1"
equalTo"Q1"
buildLabel
en
P2"$"
P3" $"
buildAliases
en
P4"$"
ruleName"RULE 2: People should have a label build from their name with qualifiers last name, and their alternative names should be aliases"
when
statement"P1"
equalTo"Q5"
buildLabel
en
P2"$"
P2.P3" $"
nl
P2"$"
buildAliases
en
P4"$"
ruleName"RULE 3: People (with a profession "author") should have a label build from their first and last name including (WRITER), and their alternative names should be aliases"
when
statement"P1"
equalTo"Q1"
statement"P5"
equalTo"Q8"
buildLabel
*
P2"$"
P3" $ (WRITER)"
buildAliases
en
P4"$"