No edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
| {{tlc|tlf}} | | {{tlc|tlf}} | ||
| '''T'''emplate '''l'''ink '''f'''ormat-normal | | '''T'''emplate '''l'''ink '''f'''ormat-normal | ||
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. | | Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. | ||
The three names were based on {{tlx|tl}} '''t'''emplate '''l'''ink, despite the fact that, unlike the actual {{tlc|tl}} template, these three don't include an actual link. The mnemonics for {{tlc|tld}} and {{tlc|tlf}} were invented after the fact, since the template creator used the single letters still available rather than the preferred {{tlc|tlt}} (using <nowiki><tt></nowiki>) and {{tlc|tln}} (using "normal", non-coded text style) monikers. | The three names were based on {{tlx|tl}} '''t'''emplate '''l'''ink, despite the fact that, unlike the actual {{tlc|tl}} template, these three don't include an actual link. The mnemonics for {{tlc|tld}} and {{tlc|tlf}} were invented after the fact, since the template creator used the single letters still available rather than the preferred {{tlc|tlt}} (using <nowiki><tt></nowiki>) and {{tlc|tln}} (using "normal", non-coded text style) monikers. |
Revision as of 14:20, 22 June 2015
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This is the {{tlc}}
template.
This page also provides the full documentation for the templates {{tld}}
and {{tlf}}
, which work almost exactly identically. The only difference between {{tlc}}
and {{tld}}
is that {{tld}}
does not support |allowlinebreak=yes
.
Purpose and naming
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}}
, {{tld}}
, or {{tlf}}
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}}
, {{tld}}
or {{tlf}}
thereafter.
Template | Mnemonic | Format differentiation | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{tlc}}
|
Template link code | Uses the <code>...</code> tags meant for showing programming code. Essentially the non-linking equivalent of {{tlx}} .
| |||||||||||||||||||||||||||||||||||||||||||||||||||
{{tld}}
|
Template link dialup-host | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{{tlf}}
|
Template link format-normal | Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code.
The three names were based on Basic operationHere is how these templates look. Code is to the left; actual rendering to the right:
Use with editprotected templatesMost Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way. Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The The desired effect is to replace the DocumentationFunctional details
Usage
ExamplesNote: Wikitables make the
An alternative to using constructs such as
you can use
Both render as
If a vertical display with parameters on their own lines is desired, this can also be laid out manually in this manner, or more rapidly done with Here are the codes to emulate
|