Template:Terminate sentence: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Create template to terminate sentences with a full stop if required.) |
(fix) |
||
Line 1: | Line 1: | ||
{{{1}}}{{#if:{{#invoke:text|sentenceTerminated}}||{{{2|.}}}}}<noinclude>{{documentation}}</noinclude> |
{{{1}}}{{#if:{{#invoke:text|sentenceTerminated|{{{1|}}}}}||{{{2|.}}}}}<noinclude>{{documentation}}</noinclude> |
Revision as of 20:51, November 28, 2021
{{{1}}}.
This template returns its first argument, after adding a full stop (or its second argument) if the sentence was not finished.
Usage
{{Terminate sentence|The rain in Spain}}
→ The rain in Spain.{{Terminate sentence|falls mainly on the plain.}}
→ falls mainly on the plain.{{Terminate sentence|BANG|!}}
→ BANG!