Template:C./doc

From Angelina Jordan Wiki
Revision as of 23:21, 3 December 2020 by Dcljr (talk | contribs) (doc created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a subpage documenting Template:C.. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template provides a quick way to insert the string "c." followed immediately by a nonbreaking space. It also provides an explanation of the abbreviation that is usually seen in a "tooltip". The default behavior can be overridden in various ways, as seen in the examples below.

Usage

  • {{c.}}
  • {{c.|notip=char}}
  • {{c.|alternate text|gloss=expanded form|notip=char|ws=}}

The parameter notip can be used to suppress the (usually tooltip-provided) expanded form of the abbreviation. Its value can be any string containing at least one non-whitespace character. Common choices are to use notip=y or notip=true (but note that something like notip=false would have the same effect).

The first positional parameter can be used to display something other than "c.", if that is desired (for example, one might use the character ~). If this is done, you will probably also want to either suppress the expanded form by using the notip parameter or provide a different expanded form by using the gloss parameter.

The ws parameter can be used to suppress the trailing nonbreaking space, by passing it with an empty value (either no value or only whitespace), as seen in the following examples.

Examples

  • {{c.}}1950c. 1950
  • {{c.|notip=y}}1950 ⇒ c. 1950
  • {{c.|~|gloss=around}}1950~ 1950
  • {{c.|~|gloss=around|ws=}}1950~1950
  • {{c.|~|gloss=approximately|ws=}}100~100

Hover on c. and ~ in these examples to see the effect of gloss.