Difference between revisions of "Module:Region topic/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>SiBr4
(Starting expansion)
m (11 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
  
 
==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 2|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|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]]}}
*[[Wikipedia:Lua/Requests/Archive 5#Re-write Template:World topic as a Lua module]]
+
*{{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]]
 
[[Category:Configurable area-topic templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 08:33, 27 September 2020

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