Main Page: Difference between revisions

From Wikibase Automated Values - Demo Wiki
Jump to navigation Jump to search
(→‎Interactive demo: Added multiple 'when' selector)
Line 57: Line 57:
=== Multiple 'when' selectors ===
=== Multiple 'when' selectors ===
It is possible to use multiple rule selectors. E.g. to select all Instance of (P1) of person (Q1) AND their 'Profession' (P5) is 'Author' (Q5) to make fine grained rules.
It is possible to use multiple rule selectors. E.g. to select all Instance of (P1) of person (Q1) AND their 'Profession' (P5) is 'Author' (Q5) to make fine grained rules.
See example on [[Item:Q9|Q9]]


#Please note the third rule config file at [[MediaWiki:AutomatedValues]]
#Please note the third rule config file at [[MediaWiki:AutomatedValues]]

Revision as of 07:05, 6 April 2022

This is the demo wiki for the Automated Values extension to Wikibase

Demo content

Automated Values Documentation

Further links

Go to github.com/ProfessionalWiki/AutomatedValues/issues to report any issues.


This wiki is run by Wikibase.Consulting / Professional.Wiki.

Interactive demo

You can create your own items, to see the Rules getting applied.

Basic example

  1. Please note the first rule in the config file at MediaWiki:AutomatedValues
  2. Create an account if necessary, confirm email verification
  3. Create new item
  4. Add statement P1 (instance of) to "Person" (Q1)
  5. Add statements for P2 (First name), P3 (last name).
  6. Reload page (you might need to clear cache by hard-reloading see config above).
  7. Notice that the label in english has changed
  8. Add multiple statement P3 (alternative name)
  9. Reload page (you might need to clear cache by hard-reloading see config above).
  10. Notice that each P3 is added as an alias.

Using qualifiers

It is possible to use qualifier within statements to build your label/alias. See the second rule on the config page (that uses P3 as a qualifier to P2 to build the label).

  1. Please note the second rule config file at MediaWiki:AutomatedValues
  2. Create an account if necessary, confirm email verification
  3. Create new item
  4. Add statement P1 (instance of) to "Person, with qualifiers" (Q5)
  5. Add statement for P2 (First name), add qualifier P3 (last name).
  6. Reload page (you might need to clear cache by hard-reloading see config above).
  7. Notice that the label in english has changed
  8. Add multiple statement P3 (alternative name)
  9. Reload page (you might need to clear cache by hard-reloading see config above).
  10. Notice that each P3 is added as an alias.

Multiple 'when' selectors

It is possible to use multiple rule selectors. E.g. to select all Instance of (P1) of person (Q1) AND their 'Profession' (P5) is 'Author' (Q5) to make fine grained rules.

See example on Q9

  1. Please note the third rule config file at MediaWiki:AutomatedValues
  2. Create an account if necessary, confirm email verification
  3. Create new item
  4. Add statement P1 (instance of) to "Person, with qualifiers" (Q5)
  5. Add statements for P2 (First name), P3 (last name).
  6. Reload page (you might need to clear cache by hard-reloading see config above).
  7. Notice that the label in english has changed
  8. Add statement P5 (Profession) and set it to Q5 (Author).
  9. Reload page (you might need to clear cache by hard-reloading see config above).
  10. Notice that each label has an added suffix (WRITER)
  11. Notice that the suffix is hard-coded in the rule config.

Language specific behavior

You build specific labels/aliases for specific languages. Please note the second rule config file at MediaWiki:AutomatedValues. Look at the Dutch (nl) rule for building a label.