"ಟೆಂಪ್ಲೇಟು:Tl/doc" ಆವೃತ್ತಿಗಳ ಮಧ್ಯದ ಬದಲಾವಣೆಗಳು

Jump to navigation Jump to search
Undid my last edit. Sorry.
imported>Ahora
(Added Template:para)
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:DocumentationInternal shared contentlink templates]]
 
[[jaar:Templateقالب:Tl-navقا]]
[[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>
ಅನಾಮಿಕ ಸದಸ್ಯ
"https://kn.wikipedia.org/wiki/ವಿಶೇಷ:MobileDiff/397758" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ

ಸಂಚರಣೆ ಪಟ್ಟಿ