Page MenuHomePhabricator

TemplateData: Add parameter type for wikitext
Closed, ResolvedPublic


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:



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.
AzaToth created this task.Jul 15 2013, 5:38 PM
He7d3r added a comment.Aug 8 2013, 1:41 PM

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]]:

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

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