For example the caution in Manual:Installing third-party tools and the warning in Extension:Git2Pages , neither shows the text parameter. I'm not sure what changed. @Legoktm suggested User:Anomie/previewtemplatelastmod.js to indentify.
Topic on Project:Village Pump/Flow
@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.
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.
Bawolff reverted Template:Warning, so {{Warning|Here is the text}} works again:
Warning: | Here is the text |
but as of 10 November 2015[update], {{Caution|Here is the text}} is still broken:
- Caution:
Why not just import Wikipedia's version of Template:Caution?
Because our templates are translated, although this seems the main reason for the break. Wikipedia templates are always in English, not translatable.
{{Warning|Here is the text}}
Warning: | Here is the text |
{{Caution|Here is the text}}
Caution: | Here is the text |