Шаблон:Rules/Entry

Материал из SS220
Версия от 18:59, 6 марта 2024; Mangusta (обсуждение | вклад) (Новая страница: «<includeonly><p>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|<b id="{{Rules/Snowflake|{{{1}}}|{{{2}}}}}">{{Rules/Link|{{{1}}}|{{{2}}}}}. {{{3}}}</b>{{#if:{{{s1|}}}|<p id="{{Rules/Snowflake|{{{1}}}|{{{2}}}|1}}" class="rule-indent">{{Rules/Link|{{{1}}}|{{{2}}}|1}}. {{{s1}}}{{#if:{{{s11|}}}|<p id="{{Rules/Snowflake|{{{1}}}|{{{2}}}|1|1}}" class="rule-indent2">{{Rules/Link|{{{1}}}|{{{2}}}|1|1}}. {{{s11}}}</p>|}}{{#if:{{{s12|}}}|<p id="{{Rules/Snowflake|{{{1}}}|{{...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску


Это технический шаблон для правил сервера. Он использует Шаблон:Rules/Snowflake и Шаблон:Rules/Digits

Ниже оригинальное английское описание и пример использования.


This is a template for Rules entries. It makes use of Template:Rules/Link and Template:Rules/Snowflake.


Rules/Entry provides the main, bolded line of a rule, permits for two nesting levels of sub-rule, and allows rules to be individually linked to.


This template uses numbered arguments for compactness. No whitespace is permitted in the category or number arguments. Numbered arguments always come before named arguments.

1 - Rule category. String. Required.

2 - Rule number. Integer. Required.

3 - Main rule text. String. Required.


This template uses named arguments to provide optional additions. Since there are lots and they are numbered sequences, this list is curtailed and provides visual ranges instead.

s1 - Sub rule 1 text. String. Optional. Required if any s1N. ... s6

s11 - Sub rule 1's Sub rule 1 text. String. Optional.

...

s16

...

s66 - Sub rule 6's sub rule 6. String. Optional. I hope we never reach here.

lastly - Freeform text without an id. String. Optional.

Below are examples of usage and their results.

{{Rules/Entry|character|3|Main rule text}}

{{Rules/Entry|server|1|Main rule text
|s1=Sub rule 1 text.
|s2=Sub rule 2 text.
}}

{{Rules/Entry|antagonist|5|Main rule text
|s1=Sub rule 1 text.
|s11=Sub rule 1's sub rule 1 text.
|s12=Sub rule 1's sub rule 2 text.
|s2=Sub rule 2 text.
|lastly='''This''' rule clarifies ''blah blah'', something ethos, something fun for players.
}}

↪ 3. Main rule text


↪ 1. Main rule text

↪ 1.1. Sub rule 1 text.

↪ 1.2. Sub rule 2 text.


↪ 5. Main rule text

↪ 5.1. Sub rule 1 text.

↪ 5.1.1. Sub rule 1's sub rule 1 text.

↪ 5.1.2. Sub rule 1's sub rule 2 text.

↪ 5.2. Sub rule 2 text.

This rule clarifies blah blah, something ethos, something fun for players.