Нет описания правки
Нет описания правки
Строка 10: Строка 10:
     "params": {
     "params": {
         "1": {
         "1": {
             "label": "Page name",
             "label": "Название страницы",
             "description": "Target page name. Language, interwiki and section links may be used.",
             "description": "Название целевой страницы. Можно использовать языковые, интервики и разделы ссылок.",
             "example": "ru:Structorica Wiki",
             "example": "ru:Structorica Wiki",
             "type": "wiki-page-name",
             "type": "wiki-page-name",
Строка 17: Строка 17:
         },
         },
         "2": {
         "2": {
             "label": "Page action",
             "label": "Действие страницы",
             "example": "veaction{{=}}edit&section{{=}}1",
             "example": "veaction{{=}}edit&section{{=}}1",
             "description": "All page actions, separated by '&'. You must use {{=}} or | to escape all '='.",
             "description": "Все действия страницы, разделённые '&'. Необходимо использовать {{=}} или | для экранирования всех '='.",
             "type": "string"
             "type": "string"
         },
         },
         "action": {
         "action": {
             "label": "Page action",
             "label": "Действие страницы",
             "description": "Similar to {{{2}}}, but no need to escape '='.",
             "description": "Аналогично {{{2}}}, но нет необходимости экранировать '='.",
             "example": "edit&section=1",
             "example": "edit&section=1",
             "type": "string"
             "type": "string"
         },
         },
         "nolink": {
         "nolink": {
             "label": "No link",
             "label": "Без ссылки",
             "description": "Display the URL directly without creating a link, ignoring {{{3}}} and {{{text}}}.",
             "description": "Отобразить URL напрямую без создания ссылки, игнорируя {{{3}}} и {{{text}}}.",
             "type": "string",
             "type": "string",
             "autovalue": "1"
             "autovalue": "1"
Строка 38: Строка 38:
                 "3"
                 "3"
             ],
             ],
             "label": "Text",
             "label": "Текст",
             "description": "Change the text of the link.",
             "description": "Изменить текст ссылки.",
             "example": "Edit",
             "example": "Править",
             "type": "string"
             "type": "string"
         }
         }
Строка 51: Строка 51:
         "nolink"
         "nolink"
     ],
     ],
     "description": "This template can be used to output the full wiki URL (https://structorica.wiki/index.php?title=) in plaintext or within a plainlink span using the fullurl magic word.\nThis template is useful for actions, for example action=edit to link to the edit box.",
     "description": "Этот шаблон можно использовать для вывода полного URL вики (https://ru.structorica.wiki/index.php?title=) в виде обычного текста или внутри span-элемента plainlink с использованием волшебного слова fullurl.\n\nЭтот шаблон полезен для действий, например action=edit для ссылки на поле редактирования.",
     "format": "inline"
     "format": "inline"
}
}
</templatedata>
</templatedata>


== Usage ==
== Использование ==
To use this template you put the name of the page you want and any actions you want to perform (anything that is after an &amp;).
Для использования этого шаблона укажите название нужной страницы и любые действия, которые хотите выполнить (всё, что идёт после &amp;).


=== Examples ===
=== Примеры ===
<syntaxhighlight lang="wikitext" style="max-width:280px">{{fullurl|Items|action=edit}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:280px">{{fullurl|Items|action=edit}}</syntaxhighlight>
Will output: {{fullurl|Items|action=edit}}
Вывод: {{fullurl|Items|action=edit}}


<syntaxhighlight lang="wikitext" style="max-width:350px">{{fullurl|Items|action=edit|nolink=1}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:350px">{{fullurl|Items|action=edit|nolink=1}}</syntaxhighlight>
Will output: {{fullurl|Items|action=edit|nolink=1}}
Вывод: {{fullurl|Items|action=edit|nolink=1}}


<syntaxhighlight lang="wikitext" style="max-width:400px">{{fullurl|Items|action=edit|text=Edit page}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:400px">{{fullurl|Items|action=edit|text=Править страницу}}</syntaxhighlight>
Will output: {{fullurl|Items|action=edit|text=Edit page}}
Вывод: {{fullurl|Items|action=edit|text=Править страницу}}


=== Notes ===
=== Примечания ===
* All url parameters are kept within the same parameter. (<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></code> instead of <code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></code>) <!-- Requires better wording -->
* Все параметры URL сохраняются в одном параметре. (<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></code> вместо <code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></code>)


[[Category:Ссылочные шаблоны]]
[[Category:Ссылочные шаблоны]]