Шаблон:Fullurl: различия между версиями

Материал из 7 Days to Die Вики
Перейти к: навигация, поиск
 
(не показана 1 промежуточная версия 1 участника)
Строка 1: Строка 1:
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://7daystodie-ru.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!--
+
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://7daystodie.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!--
 
--><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude>
 
--><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude>
   
 
==Usage==
 
==Usage==
This template can be used to output the full wiki URL (<nowiki>http://7daystodie-ru.gamepedia.com/index.php?title=</nowiki>) in plaintext or within a plainlink span using the fullurl magic word.
+
This template can be used to output the full wiki URL (<nowiki>http://7daystodie.gamepedia.com/index.php?title=</nowiki>) 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.
 
This template is useful for actions, for example action=edit to link to the edit box.
Строка 24: Строка 24:
 
* 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 -->
 
* 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 -->
   
[[Категория:Шаблоны:Форматирование|{{PAGENAME}}]]
+
[[Category:Formatting templates|{{PAGENAME}}]]
   
[[en:Template:Fullurl]]
+
[[de:Vorlage:Fullurl]]
  +
[[es:Plantilla:Fullurl]]
  +
[[it:Template:Fullurl]]
  +
[[nl:Sjabloon:Fullurl]]
  +
[[pl:Szablon:Fullurl]]
  +
[[ru:Шаблон:Fullurl]]
 
</noinclude>
 
</noinclude>

Текущая версия на 19:33, 6 декабря 2016


Содержание

Usage

This template can be used to output the full wiki URL (http://7daystodie.gamepedia.com/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.

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|Blocks|action{{=}}edit}}

Will output: https://7daystodie-archive.fandom.com/ru/wiki/Blocks?action=edit

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

Will output: http://7daystodie.gamepedia.com/index.php?title=Blocks&action=edit

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

Will output: Edit page

Notes

  • Any = signs in the second parameter must be replaced with the {{=}} template.
  • 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}})

ru:Шаблон:Fullurl