Template:Tlg: Difference between revisions

32 bytes added ,  10 years ago
add "nowrap" parameter (prevents breaking of output)
(class="nowrap"; {{!((}} instead of {{!(}}{{!(}}; simpler (lighter on the parser) empty parameter checks)
(add "nowrap" parameter (prevents breaking of output))
Line 1:
<includeonly><!--
-- begin span of class "nowrap" if nowrap=yes
Templates tlc, tld, tlf have the following wrapping everything; do we need it?
-->{{#if:{{{nowrap|}}}|<span class="nowrap">}}<!--
-- begin tt style if tt=yes or code=yes given
--><!--
 
-- begin tt style if tt=yes or code=yes given
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!--
-- opening brace unless braceinside=yes
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!--
-- add subst prefix, if subst=yes given
-->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!--
-- begin boldface if bold=yes given
-->{{#if:{{{bold|}}}|'''}}<!--
 
Line 37 ⟶ 35:
-->{{#if:{{{nolink|}}}||]]}}<!--
 
-- end boldface if bold=yes given
-->{{#if:{{{bold|}}}|'''}}<!--
-- begin italic style if italic=yes given
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--
 
Line 55 ⟶ 53:
-->{{#if:{{{12|}}}|&#124;''...''}}<!--
 
-- end italic style if italic=yes given
-->{{#if:{{{italic|}}}|</span>}}<!--
-- closing brace unless braceinside=yes
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!--
-- end code style if code=yes or tt=yes given
-->{{#if:{{{code|}}}{{{tt|}}}|</code>}}<!--
-- end span of class "nowrap" if nowrap=yes
-->{{#if:{{{nowrap|}}}|</span>}}<!--
-- end
--></includeonly><noinclude>
Anonymous user