Template:Title-period

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.

A helper for the citation templates. It is not meant to be used in articles.

Given a title, it returns the period that should close it, or nothing if the title already ends in punctuation that closes a sentence. book, website, article-book, article-journal, article-magazine and article-newspaper each call it once, immediately after the title, so that the first line of a citation always ends in a stop the way the author and the year already do:

{{title-period|1={{{title|}}}}}

The test is on the last character of the title after quotation marks and apostrophes have been removed, so a question mark inside a closing quotation mark still counts:

  • What in an Elvenstar? — nothing.
  • What are "Otherkind"? — nothing.
  • A Brief(ish) History of the Word "Otherkind" — a period,
 placed after the closing quotation mark, since it is not part of what was
 quoted.
  • Bad Publicity and Fictional Literalism...... — nothing.
  • A title truncated with an ellipsis — nothing, whether it was typed as a single
 character or as the HTML entity.

In the five templates that turn the title into a link when a url is given, the call sits outside the link, so the period is never part of the link text.