Topic on Help talk:TemplateData/Archive 2

How to test custom format strings

2
Daask (talkcontribs)

How can I test the output of custom formats? Obviously, it's possible to do it like this:

  1. Create or edit a template with some TemplateData
  2. Save the page
  3. Create or edit another page that invokes the template, using the visual editor or some other automated tool that uses TemplateData.
  4. Switch to the wikitext editor from the visual editor.
  5. Observe the output.
  6. Repeat steps 1-5 for any other custom formats you'd like to try.

That's really tedious.

Tacsipacsi (talkcontribs)

Steps 3 and 4 can be merged if you switch from the visual editor to Extension:TemplateWizard (available on all WMF wikis), which works directly in the wikitext editor. It doesn’t support editing existing template transclusions, but it supports adding all parameters with a single click and then inserting the template, which should be enough for this kind of task.

I don’t know of an even quicker way, although I think it should be possible to write a gadget (or build a feature into TemplateData itself) that renders a transclusion with all parameters based on the currently-edited TemplateData block.

Reply to "How to test custom format strings"