Template:Terminate sentence
Appearance
{{{1}}}{{#if:||.}}
{{#ifeq:terminate sentence |doc
|
{{#ifeq:show |show
|| This is a documentation subpage for Template:Terminate sentence{{#if:||.}} It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Terminate sentence
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| This template is used on approximately 53,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
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{{#if:||.}}{{Terminate sentence|falls mainly on the plain.}}→ falls mainly on the plain.{{#if:1||.}}{{Terminate sentence|BANG|!}}→ BANG{{#if:||!}}
{{safesubst:#if:{{safesubst:#ifeq:Termina|sandbox|1}}{{safesubst:#ifeq:Terminate sentence|doc|1}}|| }}