Template:Tlx

From MediaWiki
Jump to navigation Jump to search


Description

[edit]

This template is a port of MediaWiki's Template:Tlx. It displays template calls without actually processing them, similar to using <pre> tags but with the name linked and without the background and border.

Usage

[edit]

Parameters

[edit]

This templates takes up to eight unnamed parameters, the first is the name of the template. The other seven are displayed as a parameter of the template call. It also has two named parameters. The first is SISTER, which can be used to pass a interwiki link prefix. The other can be specified as nowrap or yesno and, if provided, adds a nowrap class to control the wrapping behavior of the text.

Code

[edit]
{{tlx|speedydeletion|not needed anymore}}

Examples

[edit]

Code

[edit]
{{tlx|speedydeletion|not needed anymore}}

Result

[edit]

{{[[{{#if:|{{{SISTER}}}Template|Template}}:speedydeletion|speedydeletion]]{{#if:not needed anymore||not needed anymore}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}

Code

[edit]
{{tlx|speedydeletion|not needed anymore|SISTER=gbwiki:}}

Result

[edit]

{{[[{{#if:gbwiki:|gbwiki:Template|Template}}:speedydeletion|speedydeletion]]{{#if:not needed anymore||not needed anymore}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}

Code

[edit]
{{tlx|speedydeletion|not needed anymore|nowrap=true}}

Result

[edit]

{{[[{{#if:|{{{SISTER}}}Template|Template}}:speedydeletion|speedydeletion]]{{#if:not needed anymore||not needed anymore}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}