Шаблон:Fullurl

Материал из Structorica Wiki
Версия от 06:31, 16 января 2026; Ivan (обсуждение | вклад) (Новая страница: «<includeonly>{{ #vardefine: $fullurl-url | {{fullurl: {{#replace:{{{1|{{FULLPAGENAMEE}}}}}| |_}} | {{ #if: {{{2|}}} | {{#replace:{{{2}}}| |_}} | {{ #if: {{{action|}}} | action={{{action}}} }} }} }} }}{{ #if: {{{nolink|}}} | {{ #tag: nowiki | {{ #var: $fullurl-url }} }} | [{{ #var: $fullurl-url }} {{ #if: {{{text|{{{3|}}}}}} | {{{text|{{{3}}}}}} | {{ #var: $fullurl-url }} }}] }}</includeonly><noinclude> === Documentation === <templatedata> { "params"...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Documentation

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. This template is useful for actions, for example action=edit to link to the edit box.

Параметры шаблона[Править данные шаблона]

Шаблон использует строчное форматирование параметров.

ПараметрОписаниеТипСтатус
Page name1

Target page name. Language, interwiki and section links may be used.

По умолчанию
{{FULLPAGENAME}}
Пример
ru:Structorica Wiki
Имя страницынеобязательный
Page action2

All page actions, separated by '&'. You must use {{=}} or &#124; to escape all '='.

Пример
veaction{{=}}edit&section{{=}}1
Строковый (без форматирования)необязательный
Page actionaction

Similar to {{{2}}}, but no need to escape '='.

Пример
edit&section=1
Строковый (без форматирования)необязательный
Texttext 3

Change the text of the link.

Пример
Edit
Строковый (без форматирования)необязательный
No linknolink

Display the URL directly without creating a link, ignoring {{{3}}} and {{{text}}}.

Автозначение
1
Строковый (без форматирования)необязательный

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 &).

Examples

{{fullurl|Items|action=edit}}

Will output: https://ru.structorica.wiki/index.php?title=Items&action=edit

{{fullurl|Items|action=edit|nolink=1}}

Will output: https://ru.structorica.wiki/index.php?title=Items&action=edit

{{fullurl|Items|action=edit|text=Edit page}}

Will output: Edit page

Notes

  • All url parameters are kept within the same parameter. ({{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}} instead of {{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}})