Page MenuHomePhabricator

TemplateData: Add parameter type for wikitext
Closed, ResolvedPublic

Description

I would want to propose to add a type to indicate the content is contained wikitext, instead of a arbitary string. This could help VE to display a visual editor for those fields instead of showing the wikicode directly. This can't be done on "string" types as it's not certain they contain real wikitext. If the parameter is only to contain a single template invocation of a specific type, then perhaps a type "template" and a pointer to which template.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52652

Details

Reference
bz51374

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:57 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz51374.

I was going to request this, because I've seen a similar case where the parameter is to be filled with just an internal link. VisualEditor should be able to hide the wikicode markup from new users as much as possible, and this seems to be a very common place where it still appears. See e.g. the values of the parameters "imagem_legenda" and "cidade" of the [[pt:Template:Info/Bairro do Brasil]]:
http://toolserver.org/~kolossos/templatetiger/tt-table4.php?template=Info/Bairro%20do%20Brasil&lang=ptwiki&where=&is=

We see things like "A [[Praça Dom Sebastião]], com a [[Igreja da Conceição]] ao fundo (2007)."

Change 91624 had a related patch set uploaded by Krinkle:
Specify "wiki-markup" as a valid parameter type

https://gerrit.wikimedia.org/r/91624

Change 91624 merged by jenkins-bot:
Specify "content" and "unbalanced-wikitext" as a valid parameter types

https://gerrit.wikimedia.org/r/91624