Template:T1/doc

The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is:


 * which generates
 * which generates

{ "description": "This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.", "params": { "1": {   "label": "template name", "description": "the template name without the namespace prefix “Template:”, which is added automatically", "type": "line", "required": true } }}

More complex variations are described below.