We’d like to move constraint statements (all statements of P2302) to a separate section on properties, after the Statements section (like the Identifiers section on items).
Description
Details
Related Objects
- Mentioned Here
- P2302 mholloway ssh public key 2015-11-11
Event Timeline
As far as I can tell, there are two parts to this:
- Add this to the $wgWBRepoSettings['statementSections'] config in operations/mediawiki-config::wmf-config/Wikibase.php:
'property' => [ 'statements' => null, 'constraints' => [ 'type' => 'propertySet', 'propertyIds' => [ 'P2302' ] ] ]
- Add the i18n string wikibase-statementsection-constraints. I haven’t been able to find out where the statement section strings other than -statements are defined – is -identifiers really only on TranslateWiki and nowhere else?
@thiemowmde I think you added the “identifiers” section (Iac913191cd and I046b5b7a22), do you remember how the message was added?
The message is in the WikimediaMessages extension, see https://phabricator.wikimedia.org/diffusion/EWME/browse/master/i18n/wikimedia/en.json;3774395de74289eb564af674fb187b9c6d823620$199.
Change 358342 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikimediaMessages@master] Add “Constraints” section heading for wikidata.org
Change 358343 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[operations/mediawiki-config@master] Add “Constraints” section for constraint statements
While we are at it we should think about if other sections make sense. Lucas: You probably have the best overview. What do you say?
There are some statements that are more “internal”, like “Wikidata property example”, “Wikidata usage instructions”, “property proposal discussion”, “property usage tracking category”, perhaps even “see also”. But I think it would be better to bring this up with the community (I’m sure there’s some property I missed).
Yea, let's please not mishmash stuff here. This ticket is about the "Constraints" section.
However, I can think of a separate "Examples" section.
Change 358342 merged by jenkins-bot:
[mediawiki/extensions/WikimediaMessages@master] Add “Constraints” section heading for wikidata.org
Change 358343 merged by jenkins-bot:
[operations/mediawiki-config@master] Add “Constraints” section for constraint statements
Mentioned in SAL (#wikimedia-operations) [2017-06-15T13:23:02Z] <aude@tin> Synchronized wmf-config/Wikibase.php: Add constraints statements section on Wikidata T167126 (duration: 00m 43s)
Change 359135 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[operations/mediawiki-config@master] Add “Constraints” section on test.wikidata.org
Change 359135 merged by jenkins-bot:
[operations/mediawiki-config@master] Add “Constraints” section on test.wikidata.org