साँचा:Template link with subst
दिखावट
{{subst:साँचा:Template link with subst}}
साँचा विवरणपृष्ठ[देखें] [संपादित करें] [इतिहास] [ताज़ा करें]
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 forbold=yes
{{tlb}}
and{{tlxb}}
: Italicizes the parameters, like foritalic=yes
{{tlxi}}
: Use a monospaced font, like fortt=yes
{{tlx}}
and{{tlxb}}
: Use thecode=yes
<code>...</code>
HTML attribute (usually a monospaced font), like for{{tlc}}
: Don't insert a template link, like fornolink=yes
{{tlf}}
,{{tld}}
, and{{tlc}}
: Allow linking to arbitrary page (not just template)anypage=yes
: Put braces inside the link, like forbraceinside=yes
{{tn}}
: Add asubst=yes
prefix, like forsubst:
{{tls}}
: Specify alternative surface text for a link, like foralttext=FOO
{{tla}}
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.
- Unlimited parameters as one nowiki string
{{tlg|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}}
See also
[सम्पादन]General-purpose formatting
[सम्पादन]Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 →
|
N/A |
|
|
|
|
Normal | N/A | {{tlg}} 1, 2{{tl}} {{tlp}} 2 |
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
or
|
{{tlx}}
|
{{tlc}} 2{{tld}} 2{{tnull}}
|
{{tlxs}}
|
N/A | |
Bold |
|
{{tlb}}
|
N/A | |||
Bold code
|
|
{{tlxb}}
|
- 1
{{tlg}}
is the most general, allowing any combination of text style and/or link style options. - 2 Prevents wrapping of text by placing it inside
<span class="nowrap">...</span>
tags. - 3 Uses monospace font but not
<code>...</code>
. - 4 Allows links to templates in any namespace.
ऊपर दिया गया विवरणपृष्ठ साँचा:Tlg/doc से ट्रांसक्लूड किया गया है। (संपादित करें | इतिहास) संपादकगण इस साँचे के sandbox (बनाएँ | मिरर करें) और testcases (बनाएँ) पन्नों पर अपने प्रयोग/परीक्षण कर सकते हैं। इस साँचे के उपपृष्ठ देखें। |