You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ You can find a demo of this extension at https://automated.wikibase.wiki
30
30
31
31
The core building block of this extension are so-called "Rules".
32
32
33
-
You can read the bellow step-by-step explanation or look immediately at [example.json].
33
+
You can read the below step-by-step explanation or look immediately at [example.json].
34
34
35
35
A Rule consists of zero or more Entity Criteria, which allow you to specify
36
-
which Wikibase entities the Rule applies to. For instance "all entities where P1 is Q1", which might translate to "all entities instanceof Person".
36
+
which Wikibase entities the Rule applies to. For instance, "all entities where P1 is Q1", which might translate to "all entities instanceof Person".
37
37
38
38
```json
39
39
{
@@ -46,7 +46,7 @@ which Wikibase entities the Rule applies to. For instance "all entities where P1
46
46
}
47
47
```
48
48
49
-
A rule can also have zero or more Build Specifications. These describe how to auto automatically build
49
+
A rule can also have zero or more Build Specifications. These describe how to automatically build
50
50
values on matching Entities, and which languages to update. They are available both for Labels and Aliases.
51
51
52
52
```json
@@ -66,10 +66,10 @@ values on matching Entities, and which languages to update. They are available b
66
66
}
67
67
```
68
68
69
-
Rules can be defined on page `MediaWiki:AutomatedValues`. Alternatively they can be defined in LocalSettings.php, see the [PHP Configuration](#php-configuration) section.
69
+
Rules can be defined on page `MediaWiki:AutomatedValues`. Alternatively, they can be defined in LocalSettings.php, see the [PHP Configuration](#php-configuration) section.
70
70
71
-
To define rules for your wiki, simply head over to `MediaWiki:AutomatedValues` and create the page. This page only accepts JSON that
72
-
adheres to the [JSON Schema]. If you enter invalid JSON, the page will refuse to save your changes.
71
+
To define rules for your wiki, head to `MediaWiki:AutomatedValues` and create the page. This page only accepts JSON that
72
+
adheres to the [JSON Schema]. The page will refuse to save your changes if you enter invalid JSON.
73
73
74
74
Editing of pages in the `MediaWiki` namespace, which includes `MediaWiki:AutomatedValues`, is likely restricted to users
75
75
with elevated permissions. By default, MediaWiki restricts editing in this namespace to people with the `editinterface` right.
@@ -79,7 +79,7 @@ You can find a complete and valid example of a list of Rules, that could be plac
79
79
80
80
### Supported Entity Criteria
81
81
82
-
At the moment it is only possible to check equality of statement main values, and only for Properties of type String or EntityId.
82
+
Currently, it is only possible to check equality of statement main values, and only for Properties of type String or EntityId.
83
83
84
84
A Rule can contain multiple Entity Criteria, in which case they all need to match for the Rule to be applied. A Rule
85
85
can also contain no Entity Criteria, in which case it will be applied to all Entities.
@@ -104,7 +104,7 @@ You can have different Build Specifications for different languages:
104
104
```
105
105
106
106
You can also specify `*` instead of a language code, in which case the Build Specification will be applied to all default
107
-
languages. See the [PHP Configuration](#php-configuration) section for how to set the default languages. If the default
107
+
languages. See the [PHP Configuration](#php-configuration) section for instructions on how to set the default languages. If the default
108
108
languages are not set, `*` will be ignored.
109
109
110
110
```json
@@ -120,7 +120,7 @@ languages are not set, `*` will be ignored.
120
120
}
121
121
```
122
122
123
-
The `$` symbol is replaced by the Main Value of the first Statement with the specified Property. Currently only strings
123
+
The `$` symbol is replaced by the Main Value of the first Statement with the specified Property. Currently, only strings
124
124
are supported. Preferred Statements will be used over those with a Normal rank. If there is no matching Statement, that
125
125
part of the value is omitted. If the resulting value is an empty string, it will be ignored.
126
126
@@ -193,7 +193,7 @@ Platform requirements:
193
193
The recommended way to install Automated Values is using [Composer] with
194
194
[MediaWiki's built-in support for Composer][Composer install].
195
195
196
-
On the commandline, go to your wikis root directory. Then run these two commands:
196
+
On the commandline, go to your wiki's root directory. Then run these two commands:
0 commit comments