Módulo:Type in location/doc
Esta es la página de documentación de Módulo:Type in location
| This is a documentation subpage for Módulo:Type in location. It contains usage information, categories and other content that is not part of the original módulo page. |
| This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Tranclusion count updated automatically (see documentation). |
| This module depends on the following other modules: |
Usage
[hace edit con el source]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.
Multiple infobox location parameters can be specified using {{comma separated entries}}; see {{Infobox television station}} and {{Infobox hospital}} for complex examples.
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 |invalidadd= parameter will be added with a space if the check-patterns fail.
Setting |full-loc= gives the full of the location (with slight processing) instead of the more general location.