Note page has hidden operative code when viewed directly.


Version at a glance for M:TSP [ Template:Tlxc ]
Version Origin Change Description datestamp and programmer
Ver: B Wikispecies
and then Meta
Fix up message for all sites, Add version table and update. FrankB 08:57, 28 February 2007 (UTC)
Ver: A Meta change-1 Macro Cms ---> CMS per register standard naming FrankB 06:38, 28 February 2007 (UTC)
Ver: _ Commons Origin--one of several interwiki templates for documentation needs to sisters FrankB 03:12, 15 February 2007 (UTC)


This interwiki template allows links to template space on Mediawiki Commons, and being based on {{Tlx}}, will also represent several other placeholder parameters, allowing it to be used in documentation examples and for instruction.
Note: This documentation for {{وصلة قالب موسعة}} is also ويكيبيديا:توثيق قالب by its derivatives {{tlxb}}, {{Tlxc}}, {{وصلة قالب موسعة}} (edit · master page).

}}

This template is used to show example template usage without expanding the template itself.

Basic use

عدل

(Note: In the following examples, ثلاث نقاط indicate where parameters have been omitted.)

{{tlx|Template|first parameter|second parameter|third|...|tenth}} produces: {{Template|first parameter|second parameter|third|...|tenth}}

Where parameters might contain one or more equals-signs ("="), replace each equals-sign with {{=}}:

{{tlx|Template|first{{=}}something|second|third{{=}}something|...|tenth}} produces: {{Template|first=something|second|third=something|...|tenth}}

For more than ten parameters, possibly also containing equals-signs, use <nowiki></nowiki> thus:

{{tlx|Template|<nowiki>''first''|''second''|''third=something''|...|''999th''</nowiki>}} produces: {{Template|first|second|third=something|...|999th}}

Purpose and naming

عدل

Mnemonically, "[t]emplate [l]ink e[x]panded" (after {{قا}}, "[t]emplate [l]ink").

This template allows an example of calling a template, accompanied by one or more parameters, to be displayed without also causing the template to be called.

Up to ten of the template's parameters (numbered or nowiki-keywords) may be displayed as placeholders, while more than over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki></nowiki>" tags; see Examples at bottom. For more details, see this talk page.

Exceptions

If the intended template lists numerous parameters, then perhaps this template should really not be used, and just hardcode the usage with <code></code><nowiki></nowiki>. For example:

<code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>.

If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre></pre>.

المعلمات

عدل
  • If the only parameter supplied is 1, i.e. a template's name, {{tlx}}'s output is the same as {{قا}} – i.e. a link within قوس (ترقيم) – but in a monospaced font:
    • {{وصلة قالب|tl}} produces: {{قا}}
    • {{tlx|tl}} produces: {{tl}}
{{قا}} will also not take nor display additional parameters.
Named parameters

|subst=

Setting this parameter to any non-blank value will prefix the string subst: linked to مساعدة:Substitution. This is useful to indicate when a template should be substituted. For example, {{tlx|Welcome|subst=Y}} produces: {{نسخ:Welcome}}. This is similar to the action of the {{tlxs}} template: {{tlxs|Welcome}} produces: {{نسخ:Welcome}}.

|SISTER=

For an interwiki link to other sister projects, such as: |SISTER=M: (Meta), |SISTER=Q: (WikiQuote), |SISTER=S: (WikiSource), etc, facilitating interwiki template documentation and/or discussion.

|LANG=

For a link to مساعدة:وصلات اللغات, such as: |LANG=de: (ألمانيا), |LANG=sv: (السويد), etc, facilitating cross-language template documentation and/or discussion.

Documentation

عدل

{{وصلة قالب موسعة}} is a generalization of {{قا|x}}, {{قاو|x|y}} etc., with output that is arguably more legible. This depends on the browser, but narrow gaps between characters such as " { ", " | ", " } " and links can be hard to read when not monospaced (and hard to click on; for uses like {{!}}, see {{Tn}}, which makes the click target bigger).

الاستخدام

عدل
{{tlx|Templatename}}
{{tlx|Templatename|param}}
{{tlx|Templatename|1|2|3|4|5|6|7|8|9|10}}
{{tlx|Templatename|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{tlx|Templatename|param&#61;value}}

There are up to 10 placeholders for parameters of the specified template.

أمثلة

عدل
Note
At the en.wikipedia and Meta sites, 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.
Code Result Remarks
{{tlx|x0}} {{x0}}  
{{tlx|Abc}} {{Abc}}  
{{tlx|ABC}} {{ABC}}  
{{tlx|AbC}} {{AbC}}  
{{tlx|x1|one}} {{x1|one}}  
{{tlx|x2|one|two}} {{x2|one|two}}  
{{tlx|x3|1|2|3|4|5|6|7|8|9|10}} {{x3|1|2|3|4|5|6|7|8|9|10}}  
{{tlx|x4|1|2|3|4|5|6|7|8|9|10|11}} {{x4|1|2|3|4|5|6|7|8|9|10|11}} up to 10 parameters...
{{tlx|x5|1|2|3|4|5|6|7|8|9|10&#124;11}} {{x5|1|2|3|4|5|6|7|8|9|10|11}}
...&#124; for more
{{tlx|x1}} {{x1}} the straightforward equals-sign won't work...
{{tlx|x1|x&#61;u}} {{x1}}
...but &#61; is okay
{{tlx|x1|x{{=}}u}} {{x1|x=u}}
...and {{=}} is okay
{{tlx|x1}} {{x1|x=u}}
sticky nowiki also okay
{{tlx|x2| |two}} {{x2|two}} empty won't work...
{{tlx|x2|&#32;|two}} {{x2| |two}}
...but &#32; is okay
{{tlx|x2|&nbsp;|two}} {{x2| |two}}
...&nbsp; is also okay
{{tlx|x2|<nowiki></nowiki>|two}} {{x2||two}}
<nowiki></nowiki> handles the space
{{tlx|x2|&#124; two}} {{x2|| two}}
&#124; is okay
{{tlx|x2|| two}} {{x2|| two}}
{{!}} is dubious
{{tlx|x2|2=|3=two}} {{x2|two}} empty really doesn't work
{{tlx|x2|2=one|two}} {{x2|two}} "two" overrides "2=one"
{{tlx|x2|3=two|2=one}} {{x2|one|two}}
irregular parameter order is okay
Unlimited parameters as one <nowiki></nowiki> string
{{tlx|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}}

انظر أيضاً

عدل
  • {{tlxb}}, a version of {{tlx}} where the template name is shown in bold.
    {{Tlb}}, a version of {{قا}} where the template name is shown in bold.
  • {{temt}}, a version of {{tlx}} that handles templates whose names include "Template:" and pages outside the Template: ويكيبيديا:نطاق that are treated as templates.
  • {{وسيط}}, for the presentation of template parameters and values (e.g. |paraname=val, |another=).

قوالب وصلة قالب

عدل

General-purpose formatting

عدل
Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ {{tlg}} options[ا]
to achieve text style
Link style
Linked Unlinked Linked with subst Unlinked with subst Linked including braces Linked with alternative text
{{tlg}} options[ا]
to achieve link style
DEFAULT nolink=yes subst=yes nolink=yes|subst=yes braceinside=yes alttext=Foo
2=Foo
normal DEFAULT {{tlg}}[ا]
{{وصلة قالب}}
{{قاو|1}}[ب]
{{Template:tlu}}[ج]
{{وصلة قالب بوصلة موقوفة}}[ب]
<template link>
{{نسخ:نقا}}
{{نسخ:Template:tlsu}}[ج]
قالب:Tlsf[ب]
<template link  [لغات أخرى]‏>
{{tn}} {{tla}}
code code=yes {{tl2}}
{{tlx}}
{{Template:tlxu}}[ج]
{{tlc}}[ب]
<template link>
{{tnull}}<template link>
{{نسخ:tlxs}} {{نسخ:tlsc}}[ب]
<template link>
monospace plaincode=yes[د] {{subst:tltss}}[ه]
kbd kbd=yes[ه]
bold bold=yes {{tlb}}
bold+code bold=yes|code=yes {{tlxb}}
italic+code italic=yes|code=yes {{tlxi}}
الوسم <ref> في <references> فيه خاصية group متضاربة "arabic-abajed".

Other formatting templates

عدل
Templates producing specialised formatting effects for given templates, modules or parameters
Code example Effect Notes
{{Template journal|Hatnote|Some text|selfref: yes|category: no|lang: fr}}
{{Hatnote
| Some text
| selfref = yes
| category = no
| lang = fr
}}
Supports colors, placeholder texts, named and unnamed parameters
<syntaxhighlight lang="wikitext">
{{ملاحظة علوية
   | Some text
   | selfref = yes
   | category = no
   | lang = fr
}}
</syntaxhighlight>
{{ملاحظة علوية
    | Some text
    | selfref = yes
    | category = no
    | lang = fr
}}
Same as above
{{Tji|Hatnote|Some text|selfref: yes|category: no|lang: fr}} {{Hatnote|Some text|selfref=yes|category=no|lang=fr}} Supports colors, placeholder texts, named and unnamed parameters
<syntaxhighlight lang="wikitext" inline>{{ملاحظة علوية|Some text|selfref=yes|category=no|lang=fr}}</syntaxhighlight> {{ملاحظة علوية|Some text|selfref=yes|category=no|lang=fr}} Same as above
{{tl2|Hatnote|lang=fr}} {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
{{demo|<nowiki>{{ملاحظة علوية|lang=fr|Some text}}</nowiki>}}
{{hatnote|lang=fr|Some text}}
Shows code and example
{{tln|ملاحظة علوية}} قالب:ملاحظة علوية Produces a normal link to the template
{{elc|Template:ملاحظة علوية}}
{{elc|Template:Hatnote|Hatnote}}
[[Template:ملاحظة علوية]]
[[Template:Hatnote|Hatnote]]
Formats wikilink, with optional piped link text and blended suffix
{{ml|Example|hello}} {{#استدعاء:Example|hello}} Counterpart to {{وصلة قالب}} for linking to Lua modules
{{mfl|Example|hello}} قالب:Mfl Similar to {{ml}}, but expects the function to be documented and creates a link to the corresponding section
{{mlx|Example|hello}} {{#استدعاء:Example|hello}} Counterpart to {{tlx}} for linking to Lua modules
{{ml-lua|Module:Example|hello}} قالب:Ml-lua Link to Lua modules and built-in libraries, showing Lua code.
{{para|title|<var>book title</var>}} |title=book title Formats template parameters for display, with or without values
{{sclx|LASTING}} [[WP:LASTING]] Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code></code> tag.
{{tag|ref}}
{{xtag|templatedata}}
<ref></ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
{{dtl|Ping project}} {{d:Ping project}} Wikidata counterpart to {{وصلة قالب}}
{{pf|if}}
{{pf|if|{{{1}}}|true|false}}
قالب:Pf
قالب:Pf
Parser function equivalent to {{وصلة قالب}}
{{magic word|uc:}} {{uc:}} Magic word links
عدل
Templates producing utility links for a given template (Hatnote used here as example)
Code example Effect
{{lt|ملاحظة علوية}} قالب:ملاحظة علوية (عدل | نقاش | تاريخ | وصلات | راقب | سجل)
{{lts|ملاحظة علوية}} قالب:ملاحظة علوية(تحرير نقاش ارتباطات تاريخ)
{{t links|ملاحظة علوية}} ملاحظة علوية (عدل نقاش تاريخ وصلات # /صفحات فرعية /شرح /شرح عدل /ملعب /ملعب فرق /مختبر)
{{tfd links|ملاحظة علوية}} Template:ملاحظة علوية (نقاش · تاريخ · تحويلات · سجلات · صفحات فرعية)
{{tetl|ملاحظة علوية}} {{ ملاحظة علوية }}
ارتباطات نقاش عرض
{{tsetl|ملاحظة علوية}} {{نسخ:ملاحظة علوية}}
 وصلات نقاش عدّل
{{ti|ملاحظة علوية}} قالب:ملاحظة علوية (نقاش, روابط, تحرير)
{{tic|ملاحظة علوية}} قالب:ملاحظة علوية (نقاش وصلات تعديل)
{{tim|ملاحظة علوية}} قالب:ملاحظة علوية ( نقاش، ماذا يصل هنا، عدل)
{{tiw|ملاحظة علوية}} قالب:ملاحظة علوية (نقاش، ماذا يصل هنا، تعديل)
{{tlt|ملاحظة علوية}} {{ملاحظة علوية}} (نقاش)
{{ttl|ملاحظة علوية}} {{ملاحظة علوية}} (t/l)
{{twlh|ملاحظة علوية}} قالب:ملاحظة علوية (وصلات، نقاش)




وسوم <ref> موجودة لمجموعة اسمها "arabic-abajed"، ولكن لم يتم العثور على وسم <references group="arabic-abajed"/> أو هناك وسم </ref> ناقص