Vorlage:Force last punctuation

Aus Open Source Ecology - Germany
Version vom 13. Juni 2018, 09:00 Uhr von Andreas Plank (Diskussion | Beiträge) (1 Version importiert: Import für Literatursystem von https://offene-naturfuehrer.de/web/Vorlage:Literatur)
Zur Navigation springen Zur Suche springen

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:

  1. {{force last punctuation | : |Text had a dot.}} → Text had a dot:
  2. {{force last punctuation | . |Text and question mark remains? | allow = ? }} → Text and question mark remains? (force a dot if no question mark)
  3. {{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?}}.