daniel created this task.
daniel triaged this task as "Normal" priority.
daniel added projects: Wikidata, Structured-Data-Commons, Multi-Content-Revisions, MediaWiki-Platform-Team.

TASK DESCRIPTION

SlotRoleHandler represent a declaration of a slot role. They need to have at least the following methods:

  • getRoleName()
  • getContentModel()

The list of available methods is expected to be expanded to cover behavior of individual slots in different situations, like redirection, countability, and HTML output. The interface is similar in scope to ContentHandler.

To provide access to the available slot roles for a given title, a central SlotRoleRegistry service is needed. It exposes the following methods:

  • getSupportedSlotRoles( $title )
  • getRequiredSlotRoles( $title )
  • getSlotRoleHandler( $title, $role )

The lists returned by getSupportedSlotRoles() and getRequiredSlotRoles() only apply to new edits. There is no guarantee that no revisions exist that violate these constraints.


TASK DETAIL
https://phabricator.wikimedia.org/T194046

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Aklapper, gerritbot, daniel, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, LawExplorer, JJMC89, Agabi10, Susannaanas, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Lydia_Pintscher, Fabrice_Florin, Raymond, Anomie, Steinsplitter, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to