Шаблон:Rules/Entry

Материал из Infinity Project
Перейти к навигации Перейти к поиску


Это технический шаблон для правил сервера. Он использует Шаблон: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.