Manjaro Difference between revisions of "Wiki tweak page/ru"

Difference between revisions of "Wiki tweak page/ru"

From Manjaro
(Created page with "Страница настройки Вики")
 
(Created page with "== Как создавать шаблоны == {{BoxWarning|Если вы считаете, что шаблон отсутствует или нуждается в улучш...")
Line 1: Line 1:
<languages/>
<languages/>
__TOC__
__TOC__
== How to create templates ==
== Как создавать шаблоны ==
{{BoxWarning|If you feel a template is missing or needs improvement?|Use this [[Talk:Wiki_tweak_page|Discussion link]] and discuss the change with your fellow editors.
{{BoxWarning|Если вы считаете, что шаблон отсутствует или нуждается в улучшении, воспользуйтесь этой [[Talk:Wiki_tweak_page|Discussion link]] и обсудите изменения с вашими коллегами-редакторами.
<p>Before creating new templates the existing [[Help:Template|Template collection]] and preferably use one of them.</p>}}
<p>Перед созданием новых шаблонов ознакомьтесь с существующей [[Help:Template|коллекцией шаблонов]] и предпочтительно используйте один из них.</p>}}
Create a new page to serve as base
Создайте новую страницу, которая будет служить базовой
  Example: <nowiki>http://wiki.manjaro.org/index.php/Template:TemplateNameBase</nowiki>
  Пример: <nowiki>http://wiki.manjaro.org/index.php/Template:TemplateNameBase</nowiki>


After creating the page, edit it by taking the code below as example
After creating the page, edit it by taking the code below as example

Revision as of 09:43, 13 March 2023

Other languages:
English • ‎Türkçe • ‎русский

Как создавать шаблоны

Если вы считаете, что шаблон отсутствует или нуждается в улучшении, воспользуйтесь этой Discussion link и обсудите изменения с вашими коллегами-редакторами.

Перед созданием новых шаблонов ознакомьтесь с существующей коллекцией шаблонов и предпочтительно используйте один из них.


{{{2}}}

Создайте новую страницу, которая будет служить базовой

Пример: http://wiki.manjaro.org/index.php/Template:TemplateNameBase

After creating the page, edit it by taking the code below as example

<noinclude>{{Template}}</noinclude>
<includeonly>{{Box|{{{1}}}|{{{2}}}|#rgb|#rgb}}</includeonly>

Template arguments explained

- rgb is the hex code for the border's color. - rgb is the hex code for the background color. - Box is the template where these templates take their formatting.

Save your Template Base page and create a new page.

Example: http://wiki.manjaro.org/index.php/Template:TemplateName

After creating the page, edit it and use below code as example

<noinclude>{{Template}}</noinclude>
<includeonly>{{TemplateNameBase|TemplateName:|{{{1|{{Purpose}}}}}}}</includeonly>

Always preview your changes and fix bugs before you finally save the new template

Usage

{{TemplateName|Text here}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.