Module:Region topic/doc

This is the current revision of this page, as edited by imported>Uzume at 15:03, 12 February 2020 (→‎See also). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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:
  • Wikipedia:Lua/Requests/Archive 5 § Re-write Template:World topic as a Lua module