MediaWiki:AutomatedValues: Difference between revisions

From Wikibase Automated Values - Demo Wiki
Jump to navigation Jump to search
(Undo revision 92 by MaartenZ (talk))
Tag: Undo
(Added a rule with two 'when' statements)
Line 36: Line 36:
                 "nl": {
                 "nl": {
                     "P2": "$"
                     "P2": "$"
                }
            },
            "buildAliases": {
                "en": {
                    "P4": "$"
                }
            }
        },
        {
            "ruleName": "People (with a profession author) should have a label build from their first and last name including (AUTHOR), and their alternative names should be aliases",
            "when": [
                {
                    "statement": "P1",
                    "equalTo": "Q1"
                },
                {
                    "statement": "P5",
                    "equalTo": "Q8"
                }
            ],
            "buildLabel": {
                "en": {
                    "P2": "$",
                    "P3": " $ (AUTHOR)"
                 }
                 }
             },
             },

Revision as of 06:56, 6 April 2022

rules
ruleName"People should have a label build from their first and last name, and their alternative names should be aliases"
when
statement"P1"
equalTo"Q1"
buildLabel
en
P2"$"
P3" $"
buildAliases
en
P4"$"
ruleName"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"People (with a profession author) should have a label build from their first and last name including (AUTHOR), and their alternative names should be aliases"
when
statement"P1"
equalTo"Q1"
statement"P5"
equalTo"Q8"
buildLabel
en
P2"$"
P3" $ (AUTHOR)"
buildAliases
en
P4"$"