Page MenuHomePhabricator

ItemView should honor ParserOptions::getEditSection() to suppress edit functionality.
Closed, ResolvedPublic

Description

Inline editing does not make sense in all places where an item is shown. E.g. when an item is shown as a preview or as context in a diff, editing should be disabled.

MediaWiki already makes this distinction for WikiText, where section edit links are suppressed in such situation. I think Wikibase should use the same hint to suppress inline editing.

It ParserOptions::getEditSection() can be used to determine whether inline editing should be enabled.


Version: master
Severity: normal

Details

Reference
bz37691