Fix templates for Visual Editor
Closed, ResolvedPublic

Description

Present situation:

The math inside a template is not rendered in the ve, so you have to write the math in wikitext (really bad for us). All elements inside templates are not rendered.

Proposals:

1:

{{Definizione|
Questa <math>a</math>
}}

Pros:

  • nothing

Cons:

  • The wikitext is not rendered in ve.

2:

{{Definizione}}
Questa <math>a</math>

Pros:

  • Easy to be implemented in ve; easy to be used by editors (eg. graphical options to use the template: a button to start it)

Cons:

  • Difficult to determine where the template (in this case the definition) does end.
  • What do you write under the template is notext.

3:

{{InizioDefinizione}} <-- <div>
Questa <math>a</math>
{{FineDefinizione}} <-- </div>

Pros:
*Easy to be used in ve; easy to be used by editors (eg. graphical options to use the template: a button to start it)
Cons:

  • all users have to remember to close the tag.

Decision:

  • Definition/Environment template: we prefer the 3.a option. maybe with bots to check standards.
  • Fallback plan: automatically add EndEnvironment
  • Fallback plan * 2: 3.b Cons: no automatic formatting, but should work.

Subtasks:

  • Decide an implementation between the proposals.
  • Change the Environment/Theorem/Definition templates
  • Create a bot to change existing content
  • Check the possibility to create a webhook for alerts
davidev created this task.Jun 28 2016, 1:17 PM
davidev updated the task description. (Show Details)
davidev raised the priority of this task from High to Unbreak Now!.Jun 28 2016, 1:19 PM

Have we checked if this works?

https://www.mediawiki.org/wiki/VisualEditor/Portal/TemplateData

This might be what we need, I could check it today and report back

Have we checked if this works?

https://www.mediawiki.org/wiki/VisualEditor/Portal/TemplateData

This might be what we need, I could check it today and report back

No, ok it has nothing to do with this, will still check for sure

ruphy closed this task as Resolved.Jul 14 2016, 2:25 PM
ruphy claimed this task.