Перейти к содержимому страницы
Переключить меню
Переключить меню настроек
Переключить персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.
Сообщество «Повелителя Тайн»Telegram — новости, дунхуа, игры и мерчDiscord — обсуждение книг и теорий, вопросы по вики

Шаблон:Pathway/commondoc

Материал из проекта «Повелитель Тайн Вики»
Этот шаблон использует Module:Pathways (править|история), скрипт на языке Lua.

This template create a small, linked icon with a link text, corresponding to the Pathways. There are specific sub-templates for each.

  • {{Pathway/one}} for only one pathway.
  • {{Pathway}} for multiple with certain distributive settings.
  • {{Pathway/group}} for expanding an AtS group into multiple.

Parameters

Pathway/one
Display a singular pathway with an icon, link and note like so:
Путь Шута
Template Parameters
ParametersTypeDescriptionStatus
IdLabel
Name1stringThis can be the Above the Sequence name, which will point to the ATS with the ATS icon. Using Pathway name or the Sequence name displays the pathway card.required
Add Pathwaypathway
path
p
booleanIf true, it adds a ' Pathway' at the end of the linked text. 1 or 'y' also works.optional
Custom LabellabelstringIf this has contents, it replaces the linked text with this one. This naturally overwrites the 'Pathway' operation.optional
NotenotestringAdds a text outside the link. This cannot be overwritten by the 'Custom Label'.optional
Icon SizeiconsizestringThe size of the icon. The default is '26px'.Default: 26px
ModemodestringThe display mode. It supports multiple modes. It can be any or multiple of noicon;centre;nolink;nohref, separate them with semicolons. See doc for examples.optional
Pathway
Same as {{Pathway/one}} except that this one supports multiple names, and each parameters of that template is a sub-parameter.
Template Parameters
ParametersTypeDescriptionStatus
IdLabel
Pathway/one1..10stringThe {{Pathway/one}} arguments as a sub-paramter. Where ;; are used as a delimeter instead of | and :: are used as a named parameter instead of =.required
Add Pathwaypathway
path
p
booleanIf true, it adds a ' Pathway' at the end of the linked text. 1 or 'y' also works.
Note that this property can be overwritten for each {{Pathway/one}} sub-parameters.
optional
Icon SizeiconsizestringThe size of the icon. The default is '26px'.
Note that this property can be overwritten for each {{Pathway/one}} sub-parameters.
Default: n/a
ModemodestringThe display mode. It supports multiple modes. It can be any or multiple of noicon;centre;nolink;nohref, separate them with semicolons. See doc for examples.
Note that this property can be overwritten for each {{Pathway/one}} sub-arameters.
optional
Separatorseparatorstring

The separator. If left nil and mode≠inline, the default is <br/>. Adding a value to this property overrides that. If you wish to use white-spaces, you might have to use html text.

The separator for mode=inline is: &nbsp; &bull; &nbsp; for Шут  •   Красный Жрец

optional

Usage

Template:Pathway/one: {{Pathway/one|<Name>|<add pathway>|<label>|<note>|<iconsize>|<mode>}}
Template:Pathway: {{Pathway|<Pathway/one items 1-10>|<add pathway>|<iconsize>|<mode>|<separator>}}

Examples

{{Pathway/one|Fool}} yields: Шут
{{Pathway/one|Seer}} yields: Провидец
{{Pathway/one|Corpse Collector|pathway=true}} yields: Путь Собирателя трупов
{{Pathway/one|White Tower|iconsize=69px}} yields: Белая Башня

{{Pathway|Fool|Door|Error}} yields: 


{{Pathway|Primordial Demoness|Red Priest}} yields: 


{{Pathway|Paragon|Hermit|Everlasting|separator=&nbsp;||&nbsp;}} yields: Эталон ||  Отшельник ||  Вечный


Sub-parameters in Pathway

As said in the Parameters:

  • ;; are used as a delimeter instead of |.
  • :: are used as a named parameter instead of =.

For the number parameters, all parameters in {{Pathway/one}} are all supported as a sub-parameter.
Additionally, while parameters of {{Pathway}} such as iconsize, mode, and separator are distributive, the sub-parameters take bigger priority when they do have value.

|Lord of Mysteries;;iconsize::40px
|God Almighty
|Goddess of Depravity
|iconsize=12px
}}
 yields:  

Take notice of the Lord of Mysteries one, as it has a custom size of 60px.

|Monster;;pathway::false
|Dancer;;pathway::false
|Dreamless
|pathway=true
}}
 yields:  

In this case, pathway is true by default, and the first two explicitly made them false.

Custom Label

You can place your own custom label or main text for each.

{{Pathway/one|Lord of Mysteries|label=Cowardly Trio Pathways}} yields: Cowardly Trio Pathways
{{Pathway|God Almighty;;label::Quintessential Irrelevance Pathways|mode=inline}} yields: Quintessential Irrelevance Pathways

Note

The note parameter is a feature to add additional non-link text:

{{Pathway/one|Painter|note=(Notorious in CoI)}} yields: Художник (Notorious in CoI)

|iconsize=40px
|Visionary
|Hanged Man
|Sun;;note::Example text
|Tyrant;;note::Example text 2
|White Tower
}}
 yields:  
|pathway=true
|Fool;;note::{{c|Current}}
|Door;;note::<ref>Example</ref>
|Error;;note::{{status|former}}
}}
 yields:  

Mode

Parameter values for {{Pathway|<mode>}} or {{Pathway/one|<mode>}} and the corresponding sub-parameter.

mode=inline is meant only for {{Pathway}}.
{{Pathway|mode=inline|Visionary|Hanged Man|Sun|Tyrant|White Tower}} yields:
Мечтатель  •   Повешенный  •   Солнце  •   Тиран  •   Белая Башня

mode=nolink removes the link or main text.
{{Pathway|mode=nolink;inline|Visionary|Hanged Man|Sun|Tyrant|White Tower}} yields:   •    •    •    •   {{Pathway/one|mode=nolink|Door}} yields:

mode=center places the result in the centre. Center also works, but centre is the more superior spelling.
{{Pathway/one|mode=center|Twilight Giant}} yields:


Сумеречный Гигант

mode=nohref removes the hyperlink of the main text.
{{Pathway/one|mode=nohref|Darkness|label=Evernight}} yields: Evernight

mode=noicon removes the icon.
{{Pathway/one|mode=noicon|Eternal Sleeper}} yields: Смерть

You can also try to combine different modes, you only need to separate them with a ;.

  1. ↑ Example