Template:Tlc

From Len'en Wiki
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

The {{tlc}} (template link code) template is a simple macro template used to display a template name surrounded by braces within <code>...</code>, thus showing the template name as code rather than actually invoking it. Its primary use is in instruction and documentation where it is used to refer to a template by name without invoking it.

Usage

A simple example of its use is:

{{tlc|Nihongo}} (Actually used here for its purpose)

Which will render as:

{{Nihongo}}

The template allows ten additional parameters to show the parameters of the template displayed in question "{{Nihongo|a|b|c|d|e|f|g|h}}". Any additional parameters are replaced by an ellipsis.

When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki>...</nowiki> tags you can write it more simply and concisely by using the {{tlc}} templates.

These templates work similarly to {{tl}} and {{tlx}}, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use {{tlc}} or {{tlf}} thereafter.

See also