Template:Template link with link off/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} {{Lua|Module:Template link general}} == Purpose and naming == This template, abbreviated as {{tl|tlf}}, is used to link a template without actually using the template itself. The code generated will be displayed inline. === Basic operation === Here is how this template looks. Code is to the left; actual rendering to the right: : {{tji|tlf|name|parameters}} {{Rarr}} {{tlf|name|parameters}} === Usage === {{tji|Tlf|Template|first_parameter|seco...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Lua|Module:Template link general}}
{{Lua|Module:Template link general}}
{{tsh|tlf}}
__NOTOC__


== Purpose and naming ==
== Purpose and naming ==
Line 71: Line 73:


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Template-link templates]]
[[Category:Template-link templates]]
[[Category:Documentation formatting templates]]
[[Category:Documentation formatting templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 02:11, 20 August 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.


Purpose and naming

This template, abbreviated as {{tlf}}, is used to link a template without actually using the template itself. The code generated will be displayed inline.

Basic operation

Here is how this template looks. Code is to the left; actual rendering to the right:

{{tlf|name|parameters}}{{name|parameters}}

Usage

{{Tlf|Template|first_parameter|second|third|fourth|...|eighth}}{{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}

Examples

Code Result Comment
{{tlf|name}} {{name}}
{{tlf|name|one}} {{name|one}}
{{tlf|name|one|two}} {{name|one|two}}
{{tlf|name|1|2|3|4|5|6|7|8|9|10}} {{name|1|2|3|4|5|6|7|8|9|10}} Ten parameters
{{tlf|name|||three|four}} {{name|three|four}} Empty parameters are discared.
{{tlf|name|one=a|two=b}} {{name}} The use of equal signs is a problem, but there is a fix; see next row.
{{tlf|name|one{{=}}a|two{{=}}b}} {{name|one=a|two=b}} Use {{=}} in place of an equal sign, so that it gets rendered properly.

See Also

TemplateData

This template is used to link a template without actually using the template itself. Its primary use is in instruction and documentation.

Template parameters

ParameterDescriptionTypeStatus
template name1

positional parameter: the template name without the namespace prefix “Template:”, which is added automatically

Templaterequired