Template:Terminate sentence/doc

From Mirrorplay: Fae
Revision as of 09:25, 16 June 2024 by Storyteller (talk | contribs) (1 revision imported: Supplementary Module/Template UL)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Template:Terminate sentence
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This template returns its first argument, after adding a full stop (or its second argument) if the sentence was not finished.

Usage[edit]

  • {{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:||!}}