Vorlage:Force last punctuation
Version vom 13. Juni 2018, 09:00 Uhr von Andreas Plank (Diskussion | Beiträge) (Import Vorlagen, Formulare für Literatur)
This template checks for the last punctuation character and removes it if there should be comma (,) colon (:) semicolon (;) exclamation mark (!) question mark (?) or a dot (.). So it forces to be there one of these characters. But it can also remove the last character. Examples:
{{force last punctuation | : |Text had a dot.}}
→ Text had a dot:{{force last punctuation | . |Text and question mark remains? | allow = ? }}
→ Text and question mark remains? (force a dot if no question mark){{force last punctuation | delete |Text had a question mark?}}
→ Text had a question mark
There exist also the template: remove last punctuation, which is just a wrapper to {{force last punctuation | delete |Text had a question mark?}}
.