Template:Terminate sentence/doc: Difference between revisions

From Mirrorplay: Fae
Jump to navigation Jump to search
mpfae>Tom.Reding
m ({{High-use}})
 
m (1 revision imported: Supplementary Module/Template UL)
 
(No difference)

Latest revision as of 09:25, 16 June 2024

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