Difference between revisions of "Module:Region topic/doc"
Jump to navigation
Jump to search
blackwiki>SiBr4 m (→See also: Archived link) |
m (11 revisions imported) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Module rating|alpha}} | {{Module rating|alpha}} | ||
| − | This module contains the main code for Lua-based continent-/region-topic navboxes. | + | This module contains the main code for Lua-based [[Template:About continent and region topic templates|continent-/region-topic navboxes]]. |
| + | |||
| + | ==Usage== | ||
| + | To create a customizable navbox based on this module, create a wrapper template invoking it with the parameters "data" and "name": | ||
{{((}}#invoke:Region topic|main | {{((}}#invoke:Region topic|main | ||
| − | |data = | + | |data = Module:<var>DataPageName</var> |
| − | |name = {{param|name| | + | |name = {{param|name|{{((}}subst:PAGENAME{{))}}|nested=yes}} |
{{))}} | {{))}} | ||
| + | {{para|name}} is necessary for correct [[Template:Navbar|"V•T•E" links]]; the parameter {{param|name}} allows creation of [[Template:About continent and region topic templates#Creating a new template|further wrapper templates]]. {{para|data}} is the page name of the data module for the region names and other options. | ||
==See also== | ==See also== | ||
| − | + | *Sandboxes using this module: {{hlist|style=display:inline-block;|[[Template:Africa topic/sandbox|Africa topic]]|[[Template:Asia topic/sandbox|Asia topic]]|[[Template:Europe topic/sandbox|Europe topic]]|[[Template:North America topic/sandbox|North America topic]]|[[Template:Oceania topic/sandbox|Oceania topic]]|[[Template:South America topic/sandbox|South America topic]]|[[Module:Region topic/tests|/tests]]}} | |
| − | *Sandboxes using this module: {{hlist|style=display:inline-block;|[[Template:Africa topic/sandbox|Africa topic]]|[[Template:Asia topic/sandbox|Asia topic]]|[[Template:Europe topic/sandbox | + | *{{slink|Wikipedia:Lua/Requests/Archive 5#Re-write Template:World topic as a Lua module}} |
| − | * | ||
| − | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
| − | + | [[Category:Configurable area-topic templates]] | |
}}</includeonly> | }}</includeonly> | ||
| − | |||
Latest revision as of 08:33, 27 September 2020
| This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This module contains the main code for Lua-based continent-/region-topic navboxes.
Usage
To create a customizable navbox based on this module, create a wrapper template invoking it with the parameters "data" and "name":
{{#invoke:Region topic|main
|data = Module:DataPageName
|name = {{{name|{{subst:PAGENAME}}}}}
}}
|name= is necessary for correct "V•T•E" links; the parameter {{{name}}} allows creation of further wrapper templates. |data= is the page name of the data module for the region names and other options.
See also
- Sandboxes using this module:
- Script error: No such module "Section link".