Page MenuHomePhabricator

Support an #open-tag and #close-tag parser function to allow for generation of "unbalanced" HTML and pseudo tags in templates
Open, Needs TriagePublic

Description

This is an enhancement or feature request.

"What is the limitation or missing functionality?"

Currently there is a parser function documented here - https://www.mediawiki.org/wiki/Help:Magic_words#Parser_functions

called #tag which generates a balanced pair of tags for HTML or pseudo tags.

However it's not currently possible to split a #tag function, for situation when only one half of a pair of tags is needed. Wikisource uses a number of templates which are currently directly coded as /s /e versions containing the start or end tags respectively.

"What is the desired functionality?"

Implement an #open-tag and #close-tag function to generate the start of or end of a tag pair respectively...

"Concerns"

  • Do any pseudo tags implement attribute in their closing tag?
  • Some pseudo tags are in effect self closing like <section> tags used for Labelled Section Transclusion, without intervening content.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 25 2018, 1:20 PM
Nirmos added a subscriber: Nirmos.Jan 25 2018, 1:26 PM

Is this the same as T114432? Or perhaps T114445?

It may be related to the former.. but I couldn't necessarily realte that ticket directly to this one...

Dinoguy1000 updated the task description. (Show Details)Jan 25 2018, 3:49 PM
Aklapper renamed this task from Support an #open-tag and #close-tag parser function to allow for generation of "unbalanced" HTML and pusedo tags in templates... to Support an #open-tag and #close-tag parser function to allow for generation of "unbalanced" HTML and pseudo tags in templates.Mar 2 2018, 7:52 AM

Wikisource uses a number of templates which are currently directly coded as /s /e versions containing the start or end tags respectively.

Any example link to share?

Alsee added a subscriber: Alsee.Jul 9 2018, 1:53 AM