Page MenuHomePhabricator

VisualEditor: Provide a wiki-specific tool in the formatting menu that wraps selections in templates for semantic mark-up
Open, MediumPublic

Description

e.g. in wiktionary semantic classes such as "distinct feature," "usage example," "syllables," "pronunciation," etc.

These would likely be more important for this community than the default preformatted styles used on wikipedia.


Version: unspecified
Severity: enhancement

Details

Reference
bz65173

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:18 AM
bzimport set Reference to bz65173.

This would likely be a site admin task to add the site specific styles.

It would be good if the addition of the new text styles was as simple as eg. adding of new gadget definitions (instead of having to code long javascript code to add new items in the list)

example:

  • usage example | <span class="usageexample">{{{1|usage example}}}</span>
  • definition | <dfn class="definition">{{{1|definition}}}</dfn>

etc.

To confirm, is this is asking for a tool to wrap selections in templates?

I'd say that this may be wiki-specific, but it should also be possible to make it global.

For now, we don't have global tools, but we should have them (T121470). For tools that are global, this definition should be as global and unified as possible.

Krinkle removed a subscriber: Krinkle.Nov 28 2019, 4:19 AM