Topic on Template talk:Documentation

Error with nested templates

6
Viztor (talkcontribs)

It does not seem to include properly of documentation. See Template:Module_rating and Template:Module_rating/doc for detail.

It was fine in /doc that shows {{module rating|rating}}

while in / , it somehow shows <span style="font-family:"Consolas", monospace;">{{[[Template:module rating|module rating]]|''rating''}}</span>

Iniquity (talkcontribs)

Thanks for your feedback. Can you describe the problem in more detail? I can not find the error.

Viztor (talkcontribs)

See usage section.

Iniquity (talkcontribs)

Oh, I see. I'll think what can be done with this, I'm not sure that this is because of my edits.

Viztor (talkcontribs)

the bug will surface if there is another template nested like {{pre|{{tlx|pre}}}}, which shows

<span style="font-family:"Consolas", monospace;">{{[[Template:pre|pre]]}}</span>

Hmm. Now it seems like problem with pre. it works on itsown on a standalone page though, weird.

Tacsipacsi (talkcontribs)

Putting {{/doc}} on main template page is still OK, but {{documentation|content={{/doc}} }} is not. Even weirder.

Reply to "Error with nested templates"