ಟೆಂಪ್ಲೇಟು:Tl/doc: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ
Content deleted Content added
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 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|<var>name</var>|value}} renders: {{para|<var>name</var>|value}} |
|||
* [[Template:Para]] |
|||
<includeonly> |
|||
<noinclude> |
|||
[[Category: |
[[Category:Internal link templates]] |
||
[[ |
[[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> |
೧೧:೪೫, ೮ ನವೆಂಬರ್ ೨೦೧೨ ನಂತೆ ಪರಿಷ್ಕರಣೆ
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Tl. It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
This template is used on ೬೫,೪೦,೦೦೦+ pages, or roughly 4672% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
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
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | {{tlg}} option1
|
— | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=Foo 2=Foo
|
Normal | — | {{tlg}} 1, 2{{tl}} {{t links}} {{tlp}} 2
|
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
code=yes ortt=yes
|
{{tlx}}
|
{{tlc}} 2{{tld}} {{tnull}}
|
{{tlxs}}
|
||
Bold | bold=yes
|
{{tlb}}
|
||||
Bold code
|
bold=yes|code=yes
|
{{tlxb}}
| ||||
Italic code
|
italic=yes|code=yes
|
{{tlxi}}
|
1 =
2 = Prevents wrapping of text by placing it inside of
{{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
- Template:cl (backlinks edit) – to link to a category
- Template:lts (backlinks edit) – see lts discussion for more variants
- Template:t links (backlinks edit) – provides a basic list of links to a template
- Template:tfd links (backlinks edit) – used for marking templates for deletion
- Template:tiw (backlinks edit) – provides backlinks and edit link with no brackets
- Template:tl (backlinks edit) – links and edit history of the tl template
- Template:tl2 (backlinks edit) – links and edit history of the tl2 template
- Template:tlp (backlinks edit) – template link, with single parameter
- Template:tlsp (backlinks edit) – template link, ditto subst'ed
- Template:tlu (backlinks edit) – like
{{tl}}
/{{tlp}}
for any namespace - Template:tlx (backlinks edit) – template link expanded, up to ten parameters
- Template:tn (backlinks edit) – same as tl, but shows the braces as part of the link
- Template:xpd (backlinks edit) – show live example
- Similar internal link templates (not about templates)