Новая страница: «<includeonly>{{tsl|Template:Shortcut/styles.css}}<!-- --><div class="toc toccolours shortcut-box" style="clear: {{{align|right}}}; float: {{{align|right}}}; margin: {{{margin|0 0 1em 1em}}};"><!-- --><div class="shortcut-box-title>{{ #if: {{{redirect|}}} | Redirect | Shortcut }}{{ #if: {{{2|}}} | s }}</div><!-- --><div class="shortcut-box-row">{{fullurl|{{transclude|{{{1}}}}}|redirect{{=}}no|text={{{1}}}}}</div><!-- -->{{ #if: {{{2|}}} | <div class="short...»
 
Нет описания правки
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>{{tsl|Template:Shortcut/styles.css}}<!--
<includeonly>{{tsl|Template:Shortcut/styles.css}}<!--
--><div class="toc toccolours shortcut-box" style="clear: {{{align|right}}}; float: {{{align|right}}}; margin: {{{margin|0 0 1em 1em}}};"><!--
--><div class="toc toccolours shortcut-box" style="clear: {{{align|right}}}; float: {{{align|right}}}; margin: {{{margin|0 0 1em 1em}}};"><!--
--><div class="shortcut-box-title>{{ #if: {{{redirect|}}} | Redirect | Shortcut }}{{ #if: {{{2|}}} | s }}</div><!--
--><div class="shortcut-box-title">{{ #if: {{{перенапр|}}} | {{#if: {{{2|}}} | Перенаправления | Перенаправление }} | {{#if: {{{2|}}} | Сокращения | Сокращение }} }}</div><!--
--><div class="shortcut-box-row">{{fullurl|{{transclude|{{{1}}}}}|redirect{{=}}no|text={{{1}}}}}</div><!--
--><div class="shortcut-box-row">{{fullurl|{{transclude|{{{1}}}}}|redirect{{=}}no|text={{{1}}}}}</div><!--
-->{{ #if: {{{2|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{2}}}}}|redirect{{=}}no|text={{{2}}}}}</div> }}<!--
-->{{ #if: {{{2|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{2}}}}}|redirect{{=}}no|text={{{2}}}}}</div> }}<!--
Строка 12: Строка 12:
-->{{ #if: {{{9|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{9}}}}}|redirect{{=}}no|text={{{9}}}}}</div> }}<!--
-->{{ #if: {{{9|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{9}}}}}|redirect{{=}}no|text={{{9}}}}}</div> }}<!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>
=== Documentation ===
=== Документация ===
{{shortcut|short|shc}}
{{сокращение|сокр|shortcut|short|shc}}
Used to show up to 9 shortcut redirects for templates.
Используется для отображения до 9 сокращений и перенаправлений шаблонов.
{{-}}
{{-}}
== Usage ==
== Использование ==
{{shortcut|cmd}}
{{сокращение|cmd|shortcut}}
<code><nowiki>{{shortcut|cmd}}</nowiki></code>
<code><nowiki>{{сокращение|cmd}}</nowiki></code>
{{-}}
{{-}}


{{shortcut|v|cmd|verlink}}
{{сокращение|v|cmd|verlink}}
<code><nowiki>{{shortcut|v|cmd|verlink}}</nowiki></code>
<code><nowiki>{{сокращение|v|cmd|verlink}}</nowiki></code>
{{-}}
{{-}}


{{shortcut|redirect=yes|a}}
{{сокращение|перенапр=да|a}}
<code><nowiki>{{shortcut|redirect=yes|a}}</nowiki></code>
<code><nowiki>{{сокращение|перенапр=да|a}}</nowiki></code>
{{-}}
{{-}}


Строка 34: Строка 34:
     "params": {
     "params": {
         "1": {
         "1": {
             "label": "First shortcut",
             "label": "Первое сокращение",
             "type": "wiki-page-name",
             "type": "wiki-page-name",
             "required": true
             "required": true
         },
         },
         "2": {
         "2": {
             "label": "Second shortcut",
             "label": "Второе сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "3": {
         "3": {
             "label": "Third shortcut",
             "label": "Третье сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "4": {
         "4": {
             "label": "Fourth shortcut",
             "label": "Четвёртое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "5": {
         "5": {
             "label": "Fifth shortcut",
             "label": "Пятое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "6": {
         "6": {
             "label": "Sixth shortcut",
             "label": "Шестое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "7": {
         "7": {
             "label": "Seventh shortcut",
             "label": "Седьмое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "8": {
         "8": {
             "label": "Eighth shortcut",
             "label": "Восьмое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "9": {
         "9": {
             "label": "Ninth shortcut",
             "label": "Девятое сокращение",
             "type": "wiki-page-name"
             "type": "wiki-page-name"
         },
         },
         "align": {
         "align": {
             "label": "Force alignment",
             "label": "Принудительное выравнивание",
             "description": "Overrides the default alignment (right-aligned).",
             "description": "Переопределяет выравнивание по умолчанию (выровнено по правому краю).",
             "example": "left",
             "example": "left",
             "type": "string"
             "type": "string"
         },
         },
         "margin": {
         "margin": {
             "label": "Margins",
             "label": "Отступы",
             "description": "Override the default margins (default: 0em 0em 1em 1em)",
             "description": "Переопределить отступы по умолчанию (по умолчанию: 0em 0em 1em 1em)",
             "type": "string"
             "type": "string"
         },
         },
         "redirect": {
         "перенапр": {
             "label": "Redirect?",
             "label": "Перенаправление?",
             "description": "Changes the title from 'Shortcut' to 'Redirect' if set",
             "description": "Изменяет заголовок с 'Сокращение' на 'Перенаправление', если установлено",
             "type": "string",
             "type": "string",
             "autovalue": "yes"
             "autovalue": "да"
         }
         }
     },
     },
     "description": "Shows a floating box that will list the shortcuts to the page or section.",
     "description": "Показывает плавающую рамку со списком сокращений к странице или разделу.",
     "paramOrder": [
     "paramOrder": [
         "1",
         "1",
Строка 101: Строка 101:
         "align",
         "align",
         "margin",
         "margin",
         "redirect"
         "перенапр"
     ],
     ],
     "format": "inline"
     "format": "inline"