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

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

! style="font-weight:normal;" |Linked
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;" |Unlinked

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

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

! Text Style
::{{Tl|Example}}
! {{tlx|tlg}} option

| style="font-weight: bold;" |--
More complex variations are described below.
| style="font-weight: bold;" nowrap |{{code|nolink{{=}}yes}}

| style="font-weight: bold;" |{{code|subst{{=}}yes}}
===Example===
| style="font-weight: bold;" |{{code|braceinside{{=}}yes}}
{| class="wikitable"
| style="font-weight: bold;" |{{code|alttext{{=}}FOO}}
! Code
! Result
|-
|-
! style="font-weight:normal;" | Normal
| <code><nowiki>{{Tl|Void}}</nowiki></code>
| style="font-weight: bold;" |--
| {{[[Template:Void|Void]]}}
| {{tlx|tl}}, {{tlx|tlp}}; {{tlx|tlg}}
| {{tlx|tlf}}
| {{tlx|tls}}, {{tlx|tlsp}}
| {{tlx|tn}}
| {{tlx|tla}}
|-
|-
! style="font-weight:normal;" | <tt>Teletype</tt>
| <code><nowiki>{{Tl2|X1}}</nowiki></code>
| style="font-weight: bold;" |{{code|tt{{=}}yes}}
| <tt><nowiki>{{</nowiki>[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:X1|X1]]<nowiki>}}</nowiki></tt>
| {{tlx|tlx}}
| {{tlx|tld}}, {{tlx|tnull}
| {{tlx|tlxs}}
|
|
|-
|-
! style="font-weight:normal;" | '''Bold'''
| <code><nowiki>{{Tl2|SISTER=M:|3x}}</nowiki></code>
| style="font-weight: bold;" |{{code|bold{{=}}yes}}
| <tt><nowiki>{{</nowiki>[[{{{LANG|}}}M:{{ns:Template}}:3x|3x]]<nowiki>}}</nowiki></tt>
| {{tlx|tlb}}
|
|
|
|
|-
|-
! style="font-weight:normal;" | <tt>'''Bold Teletype'''</tt>
| <code><nowiki>{{Tl2|SISTER=wikibooks|LANG=de:|WP}}</nowiki></code>
| style="font-weight: bold;" |{{code|bold{{=}}yes{{!}}tt{{=}}yes}}
| <tt><nowiki>{{</nowiki>[http://de.wikibooks.org/wiki/Vorlage:WP WP]<nowiki>}}</nowiki></tt><!---
| {{tlx|tlxb}}
----- This is currently a fraudulent output result... the template code needs modified to work
|
----- 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]]
---->
|-
|-
! style="font-weight:normal;" | <tt>''Italic Teletype''</tt>
| <code><nowiki>{{Tl|1==)}}</nowiki></code>
| style="font-weight: bold;" |{{code|italic{{=}}yes{{!}}tt{{=}}yes}}
| {{Tl|1==)}}
| {{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|弘安源氏論議}}


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


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


[[ar:قالب:قا]]
[[ja:Template:Tl-nav]]
</noinclude>
[[as:Template:Tl]]
[[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>

೦೫:೫೯, ೩೦ ಅಕ್ಟೋಬರ್ ೨೦೧೨ ನಂತೆ ಪರಿಷ್ಕರಣೆ

Template linking templates
Link Style Linked Unlinked Linked with subst: Linked including braces Linked with alternative text
Text Style {{tlg}} option -- nolink=yes subst=yes braceinside=yes alttext=FOO
Normal -- {{tl}}, {{tlp}}; {{tlg}} {{tlf}} {{tls}}, {{tlsp}} {{tn}} {{tla}}
Teletype tt=yes {{tlx}} {{tld}}, {{tlx|tnull} {{tlxs}}
Bold bold=yes {{tlb}}
Bold Teletype bold=yes|tt=yes {{tlxb}}
Italic Teletype italic=yes|tt=yes {{tlxi}}
Code code=yes {{tlc}}
NOTE: {{tlg}} is the most general, allowing any combination of the above options.

Style comparison:

  • {{tlf|Milford Haven Line|弘安源氏論議}} produces: {{Milford Haven Line|弘安源氏論議}}
  • {{tld|Milford Haven Line|弘安源氏論議}} produces: {{Milford Haven Line|弘安源氏論議}}
  • {{tlc|Milford Haven Line|弘安源氏論議}} produces: {{Milford Haven Line|弘安源氏論議}}

For parameter description,

  • {{para|<var>name</var>|value}} renders: |name=value