Topic on Extension talk:TemplateData

Will noincluding TemplateData still keep it in VisualEditor?

2
Andre601 (talkcontribs)

I was wondering if wrapping the TemplateData in noinclude tags will result in it not being displayed within the template page, but still be included within the visual editor.

I want to have a more visually appealing documentation on the main template page while also having the template data present. Sadly, the fact that TemplateData can't render wiki text makes it not a great option for me to use here, so I would like to use this aproach, if doable.

Tacsipacsi (talkcontribs)

TemplateData blocks apply to template pages they’re included in. This means that you can (and should) put it in a <noinclude> block on the template page to avoid it appearing everywhere the template used, but you cannot put it in a <noinclude> on the /doc subpage to avoid it appearing on the template page itself. You can, however, put it in a collapsible box or even completely hide it with style="display:none" (but you should completely hide it only if it’s ensured that equivalent content appears, e.g. with a template like de:Vorlage:TemplateData, since otherwise people wanting to improve the documentation will have a hard time finding it and especially previewing their modifications).

Reply to "Will noincluding TemplateData still keep it in VisualEditor?"