সাঁচ:Tlg
Explanation
সম্পাদনা কৰক{{tlg}} (template link, general) is a general template for inserting a template link. It can be used to replace or implement any of the more specific {{tl*}}
templates, e.g. {{tl}}, {{tlx}} or {{tlb}}. Parameters are:
: Boldface the text, like for {{tlb}} and {{tlxb}}bold=yes
: Italicizes the parameters, like for {{tlxi}}italic=yes
: Use a monospaced font, like for {{tlx}} and {{tlxb}}tt=yes
: Use thecode=yes
<code>...</code>
HTML attribute (usually a monospaced font), like for {{tlc}}
: Don't insert a template link, like for {{tlf}}, {{tld}}, and {{tlc}}nolink=yes
: Allow linking to arbitrary page (not just template), as with {{tlu}}anypage=yes
: Put braces inside the link, like for {{tn}}braceinside=yes
: Add asubst=yes
prefix, like for {{tls}}subst:
: Specify alternative surface text for a link, like for {{tla}}alttext=FOO
Examples
সম্পাদনা কৰক- Note
- On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code | Result | Remark |
---|---|---|
{{Tlg|Abc}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:Abc|Abc]]}} | |
{{Tlg|ABC}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:ABC|ABC]]}} | |
{{Tlg|AbC}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:AbC|AbC]]}} | |
{{Tlg|x0}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x0|x0]]}} | |
{{Tlg|x0|bold=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x0|x0]]}} | |
{{Tlg|x1|one|italic=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]|one}} | |
{{Tlg|x0|code=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x0|x0]]}}
|
|
{{Tlg|x0|tt=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x0|x0]]}} | |
{{Tlg|x0|nolink=yes}} | {{x0}} | |
{{Tlg|x0|subst=yes}} | {{subst:সাঁচ:!(সাঁচ:!(সাঁচ:x0|x0]]}} | |
{{Tlg|x0|braceinside=yes}} | সাঁচ:!(সাঁচ:!(সাঁচ:x0|{{x0}}]] | |
{{Tlg|x0|alttext=Link to x0 template}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x0|Link to x0 template]]}} | |
{{Tlg|x0|anypage=yes}} | {{সাঁচ:!(সাঁচ:!(x0|x0]]}} | Now the expression links to x0 (the spaceship, genetic disease, etc.) rather than Template:x0. Mostly useful for templates in user space. |
{{Tlg|x0|bold=yes|tt=yes|braceinside=yes}} | সাঁচ:!(সাঁচ:!(সাঁচ:x0|{{x0}}]] | No reason you can't combine multiple parameter settings. |
{{Tlg|x1|one}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]|one}} | |
{{Tlg|x2|one|two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two}} | |
{{Tlg|x2|bold=yes|tt=yes|one|two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two}} | Can combine named and anonymous parameters ... |
{{Tlg|x2|one|two|bold=yes|tt=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two}} | ... in any order … |
{{Tlg|x2|one|tt=yes|two|bold=yes|three}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two|three}} | ... even intermixed ... |
{{Tlg|x2|one|tt=yes|two|bold=yes|three|italic=yes}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two|three}} | ... with many different configurations. |
{{Tlg|x3|1|2|3|4|5|6|7|...}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x3|x3]]|1|2|3|4|5|6|7|8|9|10}} | |
{{Tlg|x4|1|2|3|4|5|6|7|...}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x4|x4]]|1|2|3|4|5|6|7|8|9|10|...}} | up to 10 parameters, then ... |
{{Tlg|x5|1|2|3|4|5|6|7|...}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x5|x5]]|1|2|3|4|5|6|7|8|9|10|11}} | | for more |
{{Tlg|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}} | unlimited parameters as one nowiki string | |
{{Tlg}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:Tlg|Tlg]]}} | with no arguments, the current page name is substituted |
{{Tlg|x1|x=u}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]}} | = won't work |
{{Tlg|x1|x=u}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]|x=u}} | = is okay |
{{Tlg|x1|x{{=}}u}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]|x=u}} | {{=}} is okay |
{{Tlg|x1|<nowiki>x=u</nowiki>}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x1|x1]]|x=u}} | sticky nowiki is okay |
{{Tlg|x2| |two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|two}} | empty won't work |
{{Tlg|x2| |two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]| |two}} |   is okay |
{{Tlg|x2| |two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]| |two}} | is okay |
{{Tlg|x2| | two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]| | two}} | | is okay |
{{Tlg|x2| {{!}} two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]| {{!}} two}} | {{!}} is dubious |
{{Tlg|x2|2=|3=two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|two}} | empty really doesn't work |
{{Tlg|x2|2=one|two}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|two}} | two clobbers 2=one |
{{Tlg|x2|3=two|2=one}} | {{সাঁচ:!(সাঁচ:!(সাঁচ:x2|x2]]|one|two}} | right to left okay |
See also
সম্পাদনা কৰকTemplate linking templates
Link Style | Linked | Unlinked | Linked with subst: | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text Style | {{tlg}} option | -- | সাঁচ:Code2 | সাঁচ:Code2 | সাঁচ:Code2 | সাঁচ:Code2 |
Normal | -- | {{tl}}, {{tlp}}; {{tlg}} | {{tlf}} | {{tls}}, {{tlsp}} | {{tn}} | {{tla}} |
Teletype | সাঁচ:Code2 | {{tlx}} | {{tld}} | {{tlxs}} | ||
Bold | সাঁচ:Code2 | {{tlb}} | ||||
Bold Teletype | সাঁচ:Code2 | {{tlxb}} | ||||
Italic Teletype | সাঁচ:Code2 | {{tlxi}} | ||||
code2
|
সাঁচ:Code2 | {{tlc}} |
NOTE: {{tlg}} is the most general, allowing any combination of the above options.
The above documentation is transcluded from সাঁচ:Tlg/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |