Module:Contentious topics/make link/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Module:Contentious topics/make link. It may contain usage information, categories and other content that is not part of the original module page. |
| File:Greek lc beta icon.svg | This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
Given a contentious topic code, this module outputs a link to a contentious topic subpage formatted to remove the "Wikipedia:Contentious topics/" prefix from the display.
Usage
[edit source]{{#invoke:Contentious topics/make link|makeTopicLink|<contentious topic code>}}
{{#invoke:Contentious topics/make link|makeTopicLink|blp}}→ Biographies of Living Persons{{#invoke:Contentious topics/make link|makeTopicLink|sasg}}→ South Asia{{#invoke:Contentious topics/make link|makeTopicLink|does not exist}}→ Error!does not existis not a valid contentious topic code{{#invoke:Contentious topics/make link|makeTopicLink}}→ Error! No contentious topic code given
From a Lua module, use code like:
require('Module:Contentious topics/make link')._makeTopicLink(<code>)