Page MenuHomePhabricator

RFC: <maplink> support for link text vs fullscreen caption text
Open, HighPublic

Description

<maplink text="(map)" ...> shows up as (map) link in the article, but it also uses that same "(map)" string at the bottom (caption area) of the full screen map. We need a way to specify two different strings - one for the "in-article" anchor text, and the other for the full screen bottom line caption. We should keep the text attribute, but need to decide if it means link text or caption text, and add one more, to either mean the link text, or the caption text. The current usage is mostly for the link text, so the new one should probably be caption text. Name ideas: caption, title, description. Also, should there be an alt attribute for the full screen map when it pops up? Should it somehow work together with this, or should it be totally unrelated?

Proposed defaults when one or both values of caption & link text is not set:

  • Neither is set: link is shown as coordinates or autonumbers, caption is shown as coordinates (or blank?)
  • link text only: both are shown as the given text
  • caption text only: link is shown as coordinates or autonumbers, caption is shown as given

Event Timeline

Yurik created this task.Oct 20 2016, 7:02 AM
Restricted Application added a project: Discovery. · View Herald TranscriptOct 20 2016, 7:02 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
debt renamed this task from <maplink> support for link text vs fullscreen caption text to RFC: <maplink> support for link text vs fullscreen caption text.Oct 20 2016, 11:20 PM
debt added a project: Proposal.
MaxSem moved this task from Needs triage to Maps on the Discovery board.Oct 26 2016, 9:26 PM

For graphs (see T147768#2773162) we revisited the text attributes to be such as this:

  • Extra information with text attributes
    • "caption" = specifies extra information about a graph, displayed below the graph, Later this text could be shown in the footer of a full screen dialog, similar as how Maps render in a full screen dialog.
    • "alt" = provides alternative information for a graph snapshot, if a user for some reason cannot view it.
      • If "alt" is not specified but "caption" is, the alternative text will be created automatically from "caption".
    • "title" = specifies extra information about a graph, displayed on hover when the graph is still static.
      • If "title" is not specified but "caption" is, the title text will be created automatically from "caption".
      • Deprecated in favor of "caption".

Graphs and Maps attributes should be consistent. Maps can have an additional text attribute for <maplink> only: the text displayed as the link.

Would that work?

Yurik removed a project: Maps.Dec 15 2016, 4:39 AM

Moving off the sprint board - the Discovery team won't be able to finish this work at this time.