Template:Terminate sentence
{{{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 49,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:||!}}
{{#if:{{#ifeq:Termina|sandbox|1}}{{#ifeq:Terminate sentence|doc|1}}|| {{safesubst:#switch:
{{safesubst:#switch: {{safesubst:#if: | {{{demospace}}} | {{safesubst:#if: | {{safesubst:#ifeq:| | talk | }} | {{safesubst:#ifeq:template|template talk | talk | template }} }} }} | showall = showall | main | = 2 | talk = 2 | user = 1 | wikipedia = 2 | file | image = 2 | mediawiki = 2 | template = 2 | help = 2 | category = 2 | portal = 2 | draft = 1 | other | #default = 2 }}
| 1 =
| 2 = {{#ifeq:Template:Terminate sentence|Main Page||This template has not been added to any {{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }} | main = content | other | #default = }} categories. Please help out by adding categories to it so that it can be listed with similar {{#ifeq: template | category | categorie | template }}s{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }} | main = {{safesubst:#switch: no |no |n |f |false |off |0 = Template:Stub other | = Template:Stub other |¬ = |yes |y |t |true |on |1 = , in addition to a stub category |#default = , in addition to a stub category }} | other | #default = }}. {{#if:|({{{date}}})}} |
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Terminate sentence}}|1}} | {{ safesubst:#if:|{{{1}}}|Template:Terminate sentence}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Template|0|1}}+{{#ifeq:{{#switch:Template|Template|Category|File=no|yes}}|yes|0|1}}
|{{#if: |{{#ifexist:Category:Uncategorized from ||}} |[[Category:{{#if:Uncategorized pages |Uncategorized pages|Uncategorized}}]]}}{{#if:All uncategorized pages |}}}}}}|}}}}
| 3 = | 4 = | 5 = | 6 = | 7 = | 8 = | 9 = | 10 = | 11 = | 12 = | 13 =
| showall = {{#ifeq:Template:Terminate sentence|Main Page||This template has not been added to any {{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }} | main = content | other | #default = }} categories. Please help out by adding categories to it so that it can be listed with similar {{#ifeq: template | category | categorie | template }}s{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }} | main = {{safesubst:#switch: no |no |n |f |false |off |0 = Template:Stub other | = Template:Stub other |¬ = |yes |y |t |true |on |1 = , in addition to a stub category |#default = , in addition to a stub category }} | other | #default = }}. {{#if:|({{{date}}})}} |
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Terminate sentence}}|1}} | {{ safesubst:#if:|{{{1}}}|Template:Terminate sentence}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Template|0|1}}+{{#ifeq:{{#switch:Template|Template|Category|File=no|yes}}|yes|0|1}}
|{{#if: |{{#ifexist:Category:Uncategorized from ||}} |[[Category:{{#if:Uncategorized pages |Uncategorized pages|Uncategorized}}]]}}{{#if:All uncategorized pages |}}}}}}|}}}}
}} }}