Шаблон:Template shortcut: відмінності між версіями

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку
[перевірена версія][перевірена версія]
Вилучено вміст Додано вміст
Немає опису редагування
Немає опису редагування
Рядок 26: Рядок 26:


--> | {{#if:{{{10|}}} | &#123;&#123;{{{pre10|}}}{{#ifexist:Шаблон:{{{10}}} |[{{fullurl:Шаблон:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}] |[[Шаблон:{{{10}}}|{{#if:true|{{{10}}}}}]]}}&#125;&#125; }}<!--
--> | {{#if:{{{10|}}} | &#123;&#123;{{{pre10|}}}{{#ifexist:Шаблон:{{{10}}} |[{{fullurl:Шаблон:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}] |[[Шаблон:{{{10}}}|{{#if:true|{{{10}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{11|}}} | &#123;&#123;{{{pre11|}}}{{#ifexist:Шаблон:{{{11}}} |[{{fullurl:Шаблон:{{{11}}}|redirect=no}} {{#if:true|{{{11}}}}}] |[[Шаблон:{{{11}}}|{{#if:true|{{{11}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{12|}}} | &#123;&#123;{{{pre12|}}}{{#ifexist:Шаблон:{{{12}}} |[{{fullurl:Шаблон:{{{12}}}|redirect=no}} {{#if:true|{{{12}}}}}] |[[Шаблон:{{{12}}}|{{#if:true|{{{12}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{13|}}} | &#123;&#123;{{{pre13|}}}{{#ifexist:Шаблон:{{{13}}} |[{{fullurl:Шаблон:{{{13}}}|redirect=no}} {{#if:true|{{{13}}}}}] |[[Шаблон:{{{13}}}|{{#if:true|{{{13}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{14|}}} | &#123;&#123;{{{pre14|}}}{{#ifexist:Шаблон:{{{14}}} |[{{fullurl:Шаблон:{{{14}}}|redirect=no}} {{#if:true|{{{14}}}}}] |[[Шаблон:{{{14}}}|{{#if:true|{{{14}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{15|}}} | &#123;&#123;{{{pre15|}}}{{#ifexist:Шаблон:{{{15}}} |[{{fullurl:Шаблон:{{{15}}}|redirect=no}} {{#if:true|{{{15}}}}}] |[[Шаблон:{{{15}}}|{{#if:true|{{{15}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{16|}}} | &#123;&#123;{{{pre16|}}}{{#ifexist:Шаблон:{{{16}}} |[{{fullurl:Шаблон:{{{16}}}|redirect=no}} {{#if:true|{{{16}}}}}] |[[Шаблон:{{{16}}}|{{#if:true|{{{16}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{17|}}} | &#123;&#123;{{{pre17|}}}{{#ifexist:Шаблон:{{{17}}} |[{{fullurl:Шаблон:{{{17}}}|redirect=no}} {{#if:true|{{{17}}}}}] |[[Шаблон:{{{17}}}|{{#if:true|{{{17}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{18|}}} | &#123;&#123;{{{pre18|}}}{{#ifexist:Шаблон:{{{18}}} |[{{fullurl:Шаблон:{{{18}}}|redirect=no}} {{#if:true|{{{18}}}}}] |[[Шаблон:{{{18}}}|{{#if:true|{{{18}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{19|}}} | &#123;&#123;{{{pre19|}}}{{#ifexist:Шаблон:{{{19}}} |[{{fullurl:Шаблон:{{{19}}}|redirect=no}} {{#if:true|{{{19}}}}}] |[[Шаблон:{{{19}}}|{{#if:true|{{{19}}}}}]]}}&#125;&#125; }}<!--

--> | {{#if:{{{20|}}} | &#123;&#123;{{{pre20|}}}{{#ifexist:Шаблон:{{{20}}} |[{{fullurl:Шаблон:{{{20}}}|redirect=no}} {{#if:true|{{{20}}}}}] |[[Шаблон:{{{20}}}|{{#if:true|{{{20}}}}}]]}}&#125;&#125; }}<!--


-->}}<!--
-->}}<!--

Версія за 11:35, 14 лютого 2020

{{i}} Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

This template shows shortcuts (= redirects) to a template, like the box appearing at the right. {{Tsh}} is a shortcut to {{template shortcut}}.

Використання

Which to show?

Although the template can show up to ten aliases, editors are encouraged to choose well which ones to display. Even if many redirects exist, two or three at the most is almost always enough, and by keeping the number small, it facilitates remembering them, and the situation is kept well organized.

List others in the "aliases" section of the template documentation. Again, not all of them need to be listed; some shortcuts are there just for historical reasons, and others differ only in whitespaces or in capitalization. Such names are usually better to hide.

Place this template at the top of the template documentation page.

Optional parameters

This template has several optional parameters:

  • float – if set to "left", then the box will float to the left of the page, instead of the default float "right".
  • clear – if set to "right" (and float = right) the box will be pushed to the right margin of the page, and prevent it from nest to the left of other right floating elements. Similarly, if set to "left" (and float = left) the box will be pushed to the left margin of the page.
  • pre, pre2, pre3 ... up to pre10 – can be used to show some text before the shortcut links, but within the braces. This is mostly used to indicate that the template should be used with substitution.
  • top – to change the padding above the box (e.g. |top=0 for no padding, |top=0.2em, |top=4 / |top=4px).

Приклади

Basic

For one template shortcut named {{uw-v1}}:

{{template shortcut|uw-v1}}

To indicate that {{uw-vandalism1}} has three shortcuts named: {{uw-v1}}, {{uw-vand1}}, and {{uw-vandal1}}; then the following code may be used:

{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}

With additional parameters

Using |float=left makes this template flow to the left of the page:

{{template shortcut|float=left|uw-v1}}

Using |pre2=subst: and |pre3=subst: will show "subst:" before the shortcut links, but within the braces. For example:

{{template shortcut|uw-v1|pre2=subst:|uw-vand1|pre3=subst:|uw-vandal1}}

Див. також

  • {{Перенаправлення}} — стандартне повідомлення перенаправлення.
    • {{shortcut-l}} — стандартне повідомлення перенаправлення ліворуч.
  • {{policy shortcut}} — для скорочень назв правил і настанов.