Background
Wikibase has a special property $wgLexemeLanguageCodePropertyId that facilitates entry of Lemmas.
Normally when entering a Lemma, a user would have to choose a language Item and then enter a language code manually.
But if the language item has a statement with $wgLexemeLanguageCodePropertyId, then the code will be inferred from the value of that statement (1 step less).
The language codes are validated against the list that is configured separately (see at your own risk)
If a language Item has a language code statement assigned with a value that is not on the list, the user will still have to enter a meaningful language code manually.
Even more background
On Wikidata, this special property $wgLexemeLanguageCodePropertyId used to be configured as P218, but was switched to P305 in October 2023 T348923: Switch Property that we use for determining available language codes.
The change was intended to make sure people use IETF language tag instead of ISO 639-1 codes ensuring larger coverage. This change is only meaningful from the point of view of data modelling - it doesn't seem to affect UX in anyway, since the codes are eventually validated against a separately configured list anyways.
On Wikibase Cloud, the users must still use the code P218 in their manifest to enable this functionality (and this is also prescribed in our docs.
https://github.com/wbstack/mediawiki/blob/9070baab128ffdb7d08dd791b088d27286aa92c5/dist-persist/wbstack/src/Settings/LocalSettings.php#L675
This creates inconsistency with Wikidata (users from Wikdiata who are used to work with Lexemes using P305 are now expected to map their properties to P218.
Task
Update the expected property code from P218 to P305.
- The users who already mapped their property and created statements in the language Items based on it will have to remap the property and rewrite all those language statements.
Acceptance Criteria
- The variable $wgLexemeLanguageCodePropertyId is assigned to P305 in LocalSettings.php of all Cloud instances.
- The FAQ documentation is updated.
- We reached out to the owners of the affected instances and informed them about the change.







