Template:Tlg: Difference between revisions

Jump to navigation Jump to search
32 bytes added ,  8 June 2013
add "nowrap" parameter (prevents breaking of output)
w:en>Dinoguy1000
(class="nowrap"; {{!((}} instead of {{!(}}{{!(}}; simpler (lighter on the parser) empty parameter checks)
w:en>Patrick87
(add "nowrap" parameter (prevents breaking of output))
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
Templates tlc, tld, tlf have the following wrapping everything; do we need it?
  -- begin span of class "nowrap" if nowrap=yes
<span class="nowrap">
-->{{#if:{{{nowrap|}}}|<span class="nowrap">}}<!--
--><!--
   -- begin tt style if tt=yes or code=yes
 
   -- begin tt style if tt=yes or code=yes given
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!--
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!--
   -- opening brace unless braceinside=yes
   -- opening brace unless braceinside=yes
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!--
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!--
   -- add subst prefix, if subst=yes given
   -- add subst prefix, if subst=yes
-->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!--
-->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!--
   -- begin boldface if bold=yes given
   -- begin boldface if bold=yes
-->{{#if:{{{bold|}}}|'''}}<!--
-->{{#if:{{{bold|}}}|'''}}<!--


Line 37: Line 35:
-->{{#if:{{{nolink|}}}||]]}}<!--
-->{{#if:{{{nolink|}}}||]]}}<!--


   -- end boldface if bold=yes given
   -- end boldface if bold=yes
-->{{#if:{{{bold|}}}|'''}}<!--
-->{{#if:{{{bold|}}}|'''}}<!--
   -- begin italic style if italic=yes given
   -- begin italic style if italic=yes
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--


Line 55: Line 53:
-->{{#if:{{{12|}}}|&#124;''...''}}<!--
-->{{#if:{{{12|}}}|&#124;''...''}}<!--


   -- end italic style if italic=yes given
   -- end italic style if italic=yes
-->{{#if:{{{italic|}}}|</span>}}<!--
-->{{#if:{{{italic|}}}|</span>}}<!--
   -- closing brace unless braceinside=yes
   -- closing brace unless braceinside=yes
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!--
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!--
   -- end code style if code=yes or tt=yes given
   -- end code style if code=yes or tt=yes
-->{{#if:{{{code|}}}{{{tt|}}}|</code>}}<!--
-->{{#if:{{{code|}}}{{{tt|}}}|</code>}}<!--
  -- end span of class "nowrap" if nowrap=yes
-->{{#if:{{{nowrap|}}}|</span>}}<!--
   -- end
   -- end
--></includeonly><noinclude>
--></includeonly><noinclude>
Anonymous user

Navigation menu