Jump to content

Module:World topic/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '{{Module rating |beta}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Us...'
 
Document override links
 
Line 7: Line 7:


This module is callable from other modules. In order to do so, please call the _main function with an table of arguments.
This module is callable from other modules. In order to do so, please call the _main function with an table of arguments.

Individual links can be overridden using <code>link_''country''=''title''</code>, with any spaces in the country replaced by underscores. See {{tl|Football in the World}} for an example.


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 10:32, 9 December 2022

Usage

[edit]

This module is intended to replace the World topic template. Please see the template for usage instructions.

In order to add an country to this module, simply add it to the countries table. The countries table has an subtable. The first value in said subtable stands for the displayed title, while the second stands for the link target. The link target is only specified if it differs from the displayed title.

This module is callable from other modules. In order to do so, please call the _main function with an table of arguments.

Individual links can be overridden using link_country=title, with any spaces in the country replaced by underscores. See {{Football in the World}} for an example.