Template:Terminate sentence: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
(Create template to terminate sentences with a full stop if required.) |
m (3 revisions imported from wikipedia:Template:Terminate_sentence) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{{1}}}{{#if:{{#invoke:text|sentenceTerminated}}||{{{2|.}}}}}<noinclude>{{documentation}}</noinclude> |
{{{1}}}{{#if:{{#invoke:text|sentenceTerminated|{{{1|}}}}}||{{{2|.}}}}}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 20:18, January 25, 2022
{{{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!