Template:Singular link/doc

From MOASSpedia
< Template:Singular link
Revision as of 12:46, 18 December 2020 by Wikipedia>John of Reading (→‎Usage: Typo fixing, replaced: paramter → parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Performs the "Word-ending links" or "linktrail" technique in reverse. Allows a link to be easily generated that displays the singular form of a word while linking to the plural form. Defaults to removing "s" from the end of the link as displayed.

Usage

The article name to link to is the first unnamed parameter. The suffix to remove is the second unnamed parameter (defaults to "s" if left blank). For titles or suffixes that include an equals sign (=), specify the first and second parameter using |1= and |2=.

{{sgl|test}} test
{{sgl|tests}} test
{{sgl|tests|s}} test
{{sgl|testing|ing}} test
{{sgl|1==?|2=?}} =
{{sgl|1=DJ=|2==}} DJ