alistair3149 added a comment.

  > Yeah I think this should be a core hook, not a skin hook.
  
  Yes it should be a core hook that is accessible by both skins and extensions.
  
  > Can you envision a wiki where the tagline is not a short description of the 
article but something different?
  
  By default the tagline is the content of `MediaWiki:Tagline`. Short 
description is exclusively used by wikis that is accompanied by Wikibase, which 
is mostly WMF wikis so most wikis either have it hidden or use a site tagline. 
There are also other usage for the tagline such as Minerva put registration 
date on the user pages.
  
  > Whether it makes sense to also have a hook in MobileFrontend to determine 
what the tagline should be (which would then invoke the core hook), or just 
hardcode it to always show the short description, I'm not sure.
  
  Last I checked MobileFrontend looks for the short description from Wikibase 
and set a global variable, and Minerva check if it exists, so the display is 
hardcoded into Minerva.
  
  > I'd avoid "tagline" which is more about where it is displayed than what it 
contains
  
  I use the term "tagline" as this task as it is just how it was referred in 
the task. Nevertheless I view this task as creating a core hook to set the 
generic tagline of a page rather than strictly short description, as there are 
other usages outside of article namespace and it can be useful for extensions 
and special pages.
  
  To be more specific, there should be:
  
  1. Core hook that allows extensions to define the `description` property of 
the page, as it is how VE and the app retrieve the short description from a page
  2. Description should feed into `SearchResultProvideDescriptionHook`, which 
is used by the MediaWIki Search REST API
  3. A way for skin developer to display the description

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

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

To: alistair3149
Cc: Tgr, alistair3149, Ammarpad, Masumrezarock100, Jdlrobson, pmiazga, 
Aklapper, Invadibot, maantietaja, Akuckartz, Demian, darthmon_wmde, DannyS712, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
Winter, _jensen, rosalieper, Scott_WUaS, Izno, Wikidata-bugs, aude, 
Dinoguy1000, Addshore, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to