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

Материал из Infinity Project
Перейти к навигации Перейти к поиску
(новые ссылки на правила?)
 
м (fix)
Строка 2: Строка 2:
 
Технический шаблон для страницы[[Правила сервера]]
 
Технический шаблон для страницы[[Правила сервера]]
  
Rules/Link generates the link for a rule from the provided argument.
+
Rules/LinkNew generates the link for a rule from the provided argument.
  
Rules/Link uses numbered arguments for compactness. No whitespace is permitted in any argument.
+
Rules/LinkNew uses numbered arguments for compactness. No whitespace is permitted in any argument.
  
 
1 - Rule ID. Required.
 
1 - Rule ID. Required.
Строка 12: Строка 12:
 
Below are examples of usage and their results.
 
Below are examples of usage and their results.
 
  <nowiki>
 
  <nowiki>
{{Rules/Link|01}}
+
{{Rules/LinkNew|01}}
{{Rules/Link|01b}}
+
{{Rules/LinkNew|01b}}
{{Rules/Link|03a|a}}
+
{{Rules/LinkNew|03a|a}}
{{Rules/Link|03bii|ii}}</nowiki>
+
{{Rules/LinkNew|03bii|ii}}</nowiki>
{{Rules/Link|01}}
+
{{Rules/LinkNew|01}}
  
{{Rules/Link|01b}}
+
{{Rules/LinkNew|01b}}
  
{{Rules/Link|03a|a}}
+
{{Rules/LinkNew|03a|a}}
  
{{Rules/Link|03bii|ii}}
+
{{Rules/LinkNew|03bii|ii}}
 
</noinclude>
 
</noinclude>

Версия 18:30, 10 июня 2020

Технический шаблон для страницыПравила сервера

Rules/LinkNew generates the link for a rule from the provided argument.

Rules/LinkNew uses numbered arguments for compactness. No whitespace is permitted in any argument.

1 - Rule ID. Required.

2 - Link Text. If not supplied, Rule ID is used.

Below are examples of usage and their results.

{{Rules/LinkNew|01}}
{{Rules/LinkNew|01b}}
{{Rules/LinkNew|03a|a}}
{{Rules/LinkNew|03bii|ii}}

⚹01

⚹01b

⚹a

⚹ii