Module:Other uses/doc

This module produces an "other uses" hatnote for linking to disambiguation pages. It implements the other uses template.

otheruses
The  function directly implements other uses and probably shouldn't be used anywhere else.

otherX
The  function allows direct implementation of templates that differ from other uses in only phrasing. For example, where other uses is phrased with "other uses", other places is phrased with "other places with the same name" and can be implemented using, which takes the custom phrasing as its parameter at the module invocation. other places in particular could be implemented with this wikitext:

Note that the leading "other" is automatically supplied; if a template would not use this phrasing, it should not use.

Usage from Lua
To use this module from Lua, first load the module:

The module functions can then be used through the  function:

Parameters of

 * args
 * A table containing strings of link text, without brackets. For example, . Make sure that there are no gaps or nil values, as that can confuse the   function the module uses. If in doubt, use   from Module:TableTools. This may be empty or nil.


 * options
 * A table containing a number of optional named values; you must supply at least one of  or  ; in most cases setting the latter to   is advisable. The following options are supported:
 * : String; completely overrides the linked page when no arguments are supplied
 * : String; sets the title used before the "(disambiguation)" suffix.
 * : String; replaces "disambiguation" in the suffix
 * : String; replaces "uses" in "other uses"