Jump to content

Topic on Project:Village Pump

{{Caution}} and {{Warning}} templates broken!

7
SPage (WMF) (talkcontribs)
SPage (WMF) (talkcontribs)

@Shirayuki moved existing {{warning}} to {{warning/core}} on September 26 and the replacement invokes this via a module:

{{#invoke:Template translation|renderTranslatedTemplate|template=Warning/core|1={{{1|}}}}}

So perhaps this is more translation machinery that breaks when not invoked with the magic {{TNT|Actual template|blahblah}} incantation, which most mediawiki.org pages don't use.

SPage (WMF) (talkcontribs)

The renamed warning/core "subtemplate" still works:

{{TNT|warning/core|Here is the text}} produces the correct:
Warning: Here is the text

so it must be something about Module:Template translation or its invocation.

@Shirayuki moved the /doc subpage down to Template:Warning/core/doc, but I think that was unintentional.

SPage (WMF) (talkcontribs)

Bawolff reverted Template:Warning, so {{Warning|Here is the text}} works again:

Warning: Here is the text

but as of 10 November 2015, {{Caution|Here is the text}} is still broken:

Caution:
Peculiar Investor (talkcontribs)
Ciencia Al Poder (talkcontribs)

Because our templates are translated, although this seems the main reason for the break. Wikipedia templates are always in English, not translatable.

Shirayuki (talkcontribs)

{{Warning|Here is the text}}

Warning: Here is the text

{{Caution|Here is the text}}

Caution: Here is the text
Reply to "{{Caution}} and {{Warning}} templates broken!"