Template:Mxt: Difference between revisions

Jump to navigation Jump to search
24 bytes added ,  30 September 2014
Get name of template dynamically in error message
w:en>AlanM1
(New template for green, monospaced examples)
 
w:en>AlanM1
(Get name of template dynamically in error message)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|{{tl|Mxt}} is only for examples of style and formatting. Do not use it in actual articles.}}|<span class="example-mono" style="font-family:monospace; color: #006400;" {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1|Example text}}}</span>}}<noinclude>
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.}}|<span class="example-mono" style="font-family:monospace; color: #006400;" {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1|Example text}}}</span>}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
Anonymous user

Navigation menu