الگو:پیوند الگو کلی/آزمایشی

از ویکی‌پدیا، دانشنامهٔ آزاد

آزمودن نسخهٔ تمرینی[ویرایش]

Code Output Remarks
{{tlg|Abc}} {{Abc}}
{{tlg|abC}} {{abC}} template names are case-sensitive
{{tlg|abc}} {{abc}} first letter is case-insensitive though
{{tlg|x0}} {{x0}}
{{tlg|x0|code=on}} {{x0}} <code> style
{{tlg|x0|plaincode=on}} {{x0}} plaincode style
{{tlg|x0|bold=on}} {{x0}} bold link/name
{{tlg|x1|one|italic=on}} {{x1|one}} parameter/s in italics
{{tlg|x0|nolink=on}} {{x0}}
{{tlg|x0|subst=on}} {{جا:x0}}
{{tlg|x0|braceinside=on}} {{x0}}
{{tlg|x0|alttext=x0 link}} {{x0 link}}
{{tlg|x0|bold=on|code=on|braceinside=on}} {{x0}} No reason you can't combine multiple parameter settings
{{tlg|x1|one}} {{x1|one}}
{{tlg|x2|one|two}} {{x2|one|two}}
{{tlg|x2|bold=on|code=on|one|two}} {{x2|one|two}} Can combine named and anonymous parameters …
{{tlg|x2|one|two|bold=on|code=on}} {{x2|one|two}} … in any order …
{{tlg|x2|one|code=on|two|bold=on|three}} {{x2|one|two|three}} … even intermixed …
{{tlg|x2|one|code=on|two|bold=on|three|italic=on}} {{x2|one|two|three}} … with many different configurations.
{{tlg|x3|1|2|3|4|5|6|7|8|9|10}} {{x3|1|2|3|4|5|6|7|8|9|10}}
{{tlg|x4|1|2|3|4|5|6|7|8|9|10|11}} {{x4|1|2|3|4|5|6|7|8|9|10|…}} up to 10 parameters, then …
{{tlg|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
{{tlg}} {{پیوند الگو کلی/آزمایشی}} with no arguments, the current page name is substituted
{{tlg|x1|x=u}} = won't work {{tlg|x1|x&#61;u}}
{{x1|x=u}}
&#61; is okay
{{tlg|x1|x{{=}}u}}
{{x1|x=u}}
{{=}} is okay
{{tlg|x1|x<nowiki>=</nowiki>u}}
{{x1|x=u}}
sticky nowiki is okay
{{tlg|x2||two||}}
{{x2||two||}} empty parameters work too, even at the end {{tlg|x2|2=one|two}}
{{x2|2=one|two}} two clobbers 2=one {{tlg|x2|3=two|2=one}}
{{x2|3=two|2=one}}
right to left okay

آزمودن الگوی اصلی[ویرایش]

Code Output Remarks
{{tlg|Abc}} {{Abc}}
{{tlg|abC}} {{abC}} template names are case-sensitive
{{tlg|abc}} {{abc}} first letter is case-insensitive though
{{tlg|x0}} {{x0}}
{{tlg|x0|code=on}} {{x0}} <code> style
{{tlg|x0|plaincode=on}} {{x0}} plaincode style
{{tlg|x0|bold=on}} {{x0}} bold link/name
{{tlg|x1|one|italic=on}} {{x1|one}} parameter/s in italics
{{tlg|x0|nolink=on}} {{x0}}
{{tlg|x0|subst=on}} {{جا:x0}}
{{tlg|x0|braceinside=on}} {{x0}}
{{tlg|x0|alttext=x0 link}} {{x0 link}}
{{tlg|x0|bold=on|code=on|braceinside=on}} {{x0}} No reason you can't combine multiple parameter settings
{{tlg|x1|one}} {{x1|one}}
{{tlg|x2|one|two}} {{x2|one|two}}
{{tlg|x2|bold=on|code=on|one|two}} {{x2|one|two}} Can combine named and anonymous parameters …
{{tlg|x2|one|two|bold=on|code=on}} {{x2|one|two}} … in any order …
{{tlg|x2|one|code=on|two|bold=on|three}} {{x2|one|two|three}} … even intermixed …
{{tlg|x2|one|code=on|two|bold=on|three|italic=on}} {{x2|one|two|three}} … with many different configurations.
{{tlg|x3|1|2|3|4|5|6|7|8|9|10}} {{x3|1|2|3|4|5|6|7|8|9|10}}
{{tlg|x4|1|2|3|4|5|6|7|8|9|10|11}} {{x4|1|2|3|4|5|6|7|8|9|10|…}} up to 10 parameters, then …
{{tlg|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
{{tlg}} {{پیوند الگو کلی/آزمایشی}} with no arguments, the current page name is substituted
{{tlg|x1|x=u}} = won't work {{tlg|x1|x&#61;u}}
{{x1|x=u}}
&#61; is okay
{{tlg|x1|x{{=}}u}}
{{x1|x=u}}
{{=}} is okay
{{tlg|x1|x<nowiki>=</nowiki>u}}
{{x1|x=u}}
sticky nowiki is okay
{{tlg|x2||two||}}
{{x2||two||}} empty parameters work too, even at the end {{tlg|x2|2=one|two}}
{{x2|2=one|two}} two clobbers 2=one {{tlg|x2|3=two|2=one}}
{{x2|3=two|2=one}}
right to left okay