Module:Type in location/doc

MyWikiBiz, Author Your Legacy — Friday April 19, 2024
< Module:Type in location
Revision as of 07:43, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:Type in location

Template:Documentation subpage Template:High use

Usage

For generating short descriptions for infoboxes of structures/small places such as dams and museums, which are often in the format of type in location. Example:

{{#invoke:Type in location|main|{{{type|}}}|{{{location|}}}|check-patterns = [Mm]useum;foo;bar}}

Description only shows if check-pattern is matched in type.

Multiple check-patterns can be specified as "pattern1;pattern2;pattern3" and so on.

Also has helper functions of prepareLoc (for removing extraneous from addresses) and generalLoc (for getting more general location from specific address) which can be used seperately.

What is specified in the Template:Para parameter will be added with a space if the check-patterns fail.

Setting Template:Para gives the full of the location (with slight processing) instead of the more general location.