Global Lua Modules/LinkTemplate

LinkTemplate is a library that can be used to easily create link templates.

Installation
Create a page called  on your wiki with the following content:

Usage
Use this template to create Link Templates, to either other wikis or namespaces.
 * Interwiki
 * Add  to your template.
 * Then use the template.
 * returns a link to the wiki with the default text being its full wiki name.
 * returns a link to the page with the text being the page's name.
 * links to the same page as the above but with different text.
 * adds URL parameters.
 * Namespace
 * Add  to your template.
 * Then use the template.
 * returns a link to the all pages in that namespace with the default text being the namespace's name.
 * returns a link to a page in the namespace; the text is the page's name.
 * links to the same page as the above but with different text.
 * links to the page but with both the namespace and the name displayed.
 * adds URL parameters.

Changelog

 * v1.0 — November 15, 2018
 * Initial revision