قالب:وصلة قالب موسعة/شرح
هذه صفحة توثيق قالب:وصلة قالب موسعة الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
}}
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 "|..."). A keyword parameter can be used with equals code = 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:
- {{قا}} 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|more}}
{{tlx|Templatename|param=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|11}} | {{x5|1|2|3|4|5|6|7|8|9|10|11}} | ...
| for more |
{{tlx|x1}} | {{x1}} | the straightforward equals-sign won't work... |
{{tlx|x1|x=u}} | {{x1}} | ...but
= 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| |two}} | {{x2| |two}} | ...but
  is okay |
{{tlx|x2| |two}} | {{x2| |two}} | ...
is also okay |
{{tlx|x2| | {{x2||two}} | <nowiki></nowiki> handles the space |
{{tlx|x2|| two}} | {{x2|| two}} | | 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
عدل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
|
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
|
{{tlxb}}
| |||||
italic+code
|
italic=yes
|
{{tlxi}}
|
<ref>
في <references>
فيه خاصية group متضاربة "arabic-abajed".Other formatting templates
عدلCode example | Effect | Notes |
---|---|---|
{{Template journal|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 |
Supports colors, placeholder texts, named and unnamed parameters |
|
{{ملاحظة علوية|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 |
With utility links
عدل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>
ناقص