User:Lakrits/sandbox3: Difference between revisions

-
(-)
(-)
Line 11: Line 11:
{| border="0"
{| border="0"
|-
|-
| {{code|He speaks Greek<nowiki>{{#if:{{{latin|}}}|and Latin}}</nowiki>.}} || &rarr; || {{samp|He speaks Greekand Latin.}}
| {{code|He speaks Greek<nowiki>{{#if:{{{latin|}}}|and Latin}}</nowiki>.}} || &nbsp;&rarr;&nbsp; || {{samp|He speaks Greekand Latin.}}
|}
|}


Line 18: Line 18:
{| border="0"
{| border="0"
|-
|-
| <code>He speaks Greek<nowiki>{{#if:{{{latin|}}}|</nowiki><span style="background-color: orange;"> </span><nowiki>and Latin}}</nowiki>.</code> || &rarr; || {{samp|He speaks Greekand Latin.}}
| <code>He speaks Greek<nowiki>{{#if:{{{latin|}}}|</nowiki><span style="background-color: orange;"> </span><nowiki>and Latin}}</nowiki>.</code> || &nbsp;&rarr;&nbsp; || {{samp|He speaks Greekand Latin.}}
|}
|}


Line 25: Line 25:
{| border="0"
{| border="0"
|-
|-
| <code>He speaks Greek<span style="background-color: orange;"> </span><nowiki>{{#if:{{{latin|}}}|and Latin}}</nowiki>.</code> || &rarr; || {{samp|He speaks Greek and Latin.}}
| <code>He speaks Greek<span style="background-color: orange;"> </span><nowiki>{{#if:{{{latin|}}}|and Latin}}</nowiki>.</code> || &nbsp;&rarr;&nbsp; || {{samp|He speaks Greek and Latin.}}
|}
|}


… but, if {{para|latin}} is left out, this code will output a space between the last word and the full stop:
… but, if {{para|latin}} is left out, this code will output a space between the last word and the full stop:
* {{samp|He speaks Greek .}}
* {{samp|He speaks Greek .}}
3,860

edits