ಟೆಂಪ್ಲೇಟು:Tl/doc: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ

ವಿಕಿಪೀಡಿಯದಿಂದ, ಇದು ಮುಕ್ತ ಹಾಗೂ ಸ್ವತಂತ್ರ ವಿಶ್ವಕೋಶ
Content deleted Content added
imported>Ahora
imported>Ahora
Undid my last edit. Sorry.
೧ ನೇ ಸಾಲು: ೧ ನೇ ಸಾಲು:
{{Documentation subpage}}
{{Navbar-header|<big>Template linking templates</big>|Tl-nav|plain=1}}
{{high-risk|1,900,000+}}
{| align="center" class="wikitable collapsible" style="margin:1em auto 1em auto; width:auto; text-align:center; font-size:90%;"
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
|- style="line-height:10pt;"
__NOTOC__
!

! Link Style
The '''template link''' template is a simple [[w:Macro (computer science)|macro]] [[m:Help:template|template]] used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:
! style="font-weight:normal;" |Linked

! style="font-weight:normal;" |Unlinked
::<code><nowiki>{{Tl|Example}}</nowiki></code>
! style="font-weight:normal;" |Linked with subst:

! style="font-weight:normal;" |Linked including braces
:generates
! style="font-weight:normal;" |Linked with alternative&nbsp;text

|- valign="top"
::{{Tl|Example}}
! Text Style

! {{tlx|tlg}} option
More complex variations are described below.
| style="font-weight: bold;" |--

| style="font-weight: bold;" nowrap |{{code|nolink{{=}}yes}}
===Example===
| style="font-weight: bold;" |{{code|subst{{=}}yes}}
{| class="wikitable"
| style="font-weight: bold;" |{{code|braceinside{{=}}yes}}
! Code
| style="font-weight: bold;" |{{code|alttext{{=}}FOO}}
! Result
|-
|-
| <code><nowiki>{{Tl|Void}}</nowiki></code>
! style="font-weight:normal;" | Normal
| {{[[Template:Void|Void]]}}
| style="font-weight: bold;" |--
| {{tlx|tl}}, {{tlx|tlp}}; {{tlx|tlg}}
| {{tlx|tlf}}
| {{tlx|tls}}, {{tlx|tlsp}}
| {{tlx|tn}}
| {{tlx|tla}}
|-
|-
| <code><nowiki>{{Tl2|X1}}</nowiki></code>
! style="font-weight:normal;" | <tt>Teletype</tt>
| <tt><nowiki>{{</nowiki>[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:X1|X1]]<nowiki>}}</nowiki></tt>
| style="font-weight: bold;" |{{code|tt{{=}}yes}}
| {{tlx|tlx}}
| {{tlx|tld}}, {{tlx|tnull}
| {{tlx|tlxs}}
|
|
|-
|-
| <code><nowiki>{{Tl2|SISTER=M:|3x}}</nowiki></code>
! style="font-weight:normal;" | '''Bold'''
| <tt><nowiki>{{</nowiki>[[{{{LANG|}}}M:{{ns:Template}}:3x|3x]]<nowiki>}}</nowiki></tt>
| style="font-weight: bold;" |{{code|bold{{=}}yes}}
| {{tlx|tlb}}
|
|
|
|
|-
|-
| <code><nowiki>{{Tl2|SISTER=wikibooks|LANG=de:|WP}}</nowiki></code>
! style="font-weight:normal;" | <tt>'''Bold Teletype'''</tt>
| <tt><nowiki>{{</nowiki>[http://de.wikibooks.org/wiki/Vorlage:WP WP]<nowiki>}}</nowiki></tt><!---
| style="font-weight: bold;" |{{code|bold{{=}}yes{{!}}tt{{=}}yes}}
----- This is currently a fraudulent output result... the template code needs modified to work
| {{tlx|tlxb}}
----- per this plan, then this /doc file fixed up to match whatever the correct syntax actually is.
|
----- ALMOST work:
|
[[:de:wikibooks:{{ns:template}}:WP|WP]]
|
[[de:wikibooks:{{ns:template}}:WP|WP]]
|
---->
|-
|-
| <code><nowiki>{{Tl|1==)}}</nowiki></code>
! style="font-weight:normal;" | <tt>''Italic Teletype''</tt>
| {{Tl|1==)}}
| style="font-weight: bold;" |{{code|italic{{=}}yes{{!}}tt{{=}}yes}}
| {{tlx|tlxi}}
|
|
|
|
|-
! style="font-weight:normal;" | <code>Code</code>
| style="font-weight: bold;" |{{code|code{{=}}yes}}
|
| {{tlx|tlc}}
|
|
|
|}
|}
<div align=center style="font-size:90%;">'''NOTE:''' {{tlx|tlg}} is the most general, allowing any combination of the above options.</div>

'''Style comparison''':
* {{tlf|tlf|Milford Haven Line|弘安源氏論議}} produces: {{tlf|Milford Haven Line|弘安源氏論議}}
* {{tlf|tld|Milford Haven Line|弘安源氏論議}} produces: {{tld|Milford Haven Line|弘安源氏論議}}
* {{tlf|tlc|Milford Haven Line|弘安源氏論議}} produces: {{tlc|Milford Haven Line|弘安源氏論議}}


===See also===
For parameter description,
{{Tl-nav}}
* {{tlp|para|&lt;var>name&lt;/var>|value}} renders: {{para|<var>name</var>|value}}
* [[Template:Para]]


<includeonly>
<noinclude>
[[Category:Documentation shared content templates]]
[[Category:Internal link templates]]


[[ja:Template:Tl-nav]]
[[ar:قالب:قا]]
[[as:Template:Tl]]
</noinclude>
[[az:Şablon:Tl]]
[[ba:Ҡалып:Ҡалып]]
[[be-x-old:Шаблён:Ш]]
[[bg:Шаблон:Ш]]
[[bn:টেমপ্লেট:Tl]]
[[bs:Šablon:Šablon]]
[[ca:Plantilla:Tl]]
[[cs:Šablona:Šablona]]
[[cy:Nodyn:Nodyn]]
[[da:Skabelon:Vis]]
[[de:Vorlage:Vorlage]]
[[dsb:Pśedłoga:Pśedłoga]]
[[eo:Ŝablono:Ŝ]]
[[es:Plantilla:Template link]]
[[fa:الگو:الگوی]]
[[fi:Malline:Malline]]
[[fr:Modèle:M]]
[[he:תבנית:תב]]
[[hr:Predložak:Tl]]
[[hy:Կաղապար:Կ]]
[[hsb:Předłoha:Předłoha]]
[[ia:Patrono:Tl]]
[[id:Templat:Tl]]
[[ja:Template:Tl]]
[[ka:თარგი:Tl]]
[[ko:틀:틀]]
[[kw:Template:Viz]]
[[la:Formula:Fn]]
[[mk:Шаблон:Шв]]
[[my:Template:Tl]]
[[no:Mal:Mal]]
[[or:Template:Tl]]
[[pih:Template:Tl]]
[[pl:Szablon:S]]
[[pt:Predefinição:Ligação para predefinição]]
[[ru:Шаблон:Tl]]
[[sk:Šablóna:Tl]]
[[sl:Predloga:Tl]]
[[stq:Foarloage:Foarloage]]
[[sv:Mall:Mall]]
[[th:แม่แบบ:Tl]]
[[tr:Şablon:Tl]]
[[uk:Шаблон:Tl]]
[[ur:سانچہ:Tl]]
[[vi:Tiêu bản:Tl]]
[[zh:Template:Tl]]
[[zh-yue:Template:Tl]]
</includeonly>

೧೧:೪೫, ೮ ನವೆಂಬರ್ ೨೦೧೨ ನಂತೆ ಪರಿಷ್ಕರಣೆ


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
{{Example}}

More complex variations are described below.

Example

Code Result
{{Tl|Void}} {{Void}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} {{=)}}

See also

Template linking templates
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 of ‎<span class="nowrap">...‎</span> tags.


Style comparison
  • {{tlf|Milford Haven Line|弘安源氏論議}} …renders… {{Milford Haven Line|弘安源氏論議}}
  • {{tld|Milford Haven Line|弘安源氏論議}} …renders… {{Milford Haven Line|弘安源氏論議}}
  • {{tlc|Milford Haven Line|弘安源氏論議}} …renders… {{Milford Haven Line|弘安源氏論議}}


For parameter description
  • {{para|name|{{var|value}}}} …renders… |name=value
  • {{para|name|{{varserif|value}}}} …renders… |name=value
  • {{tlx|Milford Haven Line|first parameter{{=}}first value}} …renders… {{Milford Haven Line|first parameter=first value}}

{{yesno|yes|yes=

List

Similar internal link templates (not about templates)