साँचा: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:

  • bold=yes: Boldface the text, like for {{tlb}} and {{tlxb}}
  • italic=yes: Italicizes the parameters, like for {{tlxi}}
  • tt=yes: Use a monospaced font, like for {{tlx}} and {{tlxb}}
  • code=yes: Use the <code>...</code> HTML attribute (usually a monospaced font), like for {{tlc}}
  • nolink=yes: Don't insert a template link, like for {{tlf}}, {{tld}}, and {{tlc}}
  • anypage=yes: Allow linking to arbitrary page (not just template)
  • braceinside=yes: Put braces inside the link, like for {{tn}}
  • subst=yes: Add a subst: prefix, like for {{tls}}
  • alttext=FOO: Specify alternative surface text for a link, like for {{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.

साँचा:Aligned table

Unlimited parameters as one nowiki string

{{tlg|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}}

See also[सम्पादन]

General-purpose formatting[सम्पादन]

  • 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.