Changes

Jump to navigation Jump to search
11 bytes removed ,  20:10, 19 July 2012
Remove tl-nave template
== Purpose and naming ==
[http://en.wiktionary.org/wiki/mnemonic Mnemonically]] ''''T'''emplate '''l'''ink e'''x'''panded'. After <tt>{{tlx|Tltl}}</tt> ''''T'''emplate '''l'''ink'.
* This template takes another ''template-name'' and some associated [http://en.wikipedia.org/wiki/Help:Pipe trick pipe-tricked] [http://en.wikipedia.org/wiki/m:Parameter#Parameters (numbered) parameters] (or 'pass parameters'), and displays them as an 'example demonstration' of how the ''template-name'' template could be coded, literally. Its primary use is in instruction and documentation.
----
* If given no additional parameters except ''<code>&nbsp;'template&nbsp;name'&nbsp;(<nowiki>{{{1}}}</nowiki>), </code>''&nbsp;it presents the same as the similar {{tl|Tltl}} [http://en.wikipedia.org/wiki/Macro (computer science) macro] template -- a blue link nested in [http://en.wikipedia.org/wiki/brackets curly-braces]-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers.
:* {{tlx|Tltl|Tltl}} display compared to {{tlx|tlx|Tltl}}: (Tltl: {{Tltl|Tltl}} versus tlx: {{tlx|Tltl}})
* Comparatively, {{tlx|Tltl}} will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
* {{tlx|tlx}} has a named parameter ''subst''. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to [http://en.wikipedia.org/wiki/Help:Substitution Help:Substitution]. This is useful to indicate when a template should be substituted. For example {{tlx|tlx|Welcome|<nowiki>subst=Y</nowiki>}} will display {{tlx|Welcome|subst=Y}}.
{&#123;[http://en.wikipedia.org/wiki/Template:{{BASEPAGENAME}} {{BASEPAGENAME}}]&#125;}
is a generalization of {{Tltl|Tltl|x}}, {{Tltl|Tlptlp|x|y}},
etcetera with arguably better readable
output. This depends on the browser, but too narrow
== See also ==
* [http://en.wikipedia.org/wiki/Template:tlxb Template:tlxb] &ndash; same as {{tl|tlx}}, but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). [http://en.wikipedia.org/wiki/Template:Tlb tlb Template:Tlbtlb] is the same, except it uses regular text instead of a monospaced non-proportional font.
* [http://en.wikipedia.org/wiki/Template:Temt Template:Temt], &ndash; same as {{tl|tlx}}, but handles template names with the Template: prefix and templates not in the [http://en.wikipedia.org/wiki/Wikipedia:Namespace Template: namespace] <nowiki>{{ns:10}}</nowiki>.
* [http://en.wikipedia.org/wiki/Template:Para Template:Para] &ndash; for giving examples of template parameters and values only, instead of entire templates with parameters.
{{tl-nav}}
<!--- Categories applied to both /doc style Documentation page and to the parent templates --->
<!-- Add the Categories for this doc or usage page (only-- not for the calling template) BELOW THIS LINE --->

Navigation menu