Шаблон:Миль/год

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
Цей шаблон i18n-ready, що означає, що його легко локалізувати для різних мов. Будь ласка, ознайомтеся з i18n та l10n для шаблонів, щоб дізнатися більше.
Див. «Шаблон:Миль/год/l10n» для локалізації цього шаблону.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:Миль/год/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

This template is used to display a speed/velocity value in miles per hour, optionally including the equivalent in tiles per second.

Usage

{{ mph | <numerical mph/tiles-per-sec value> | tiles/tiles_text/text_tiles/full (optional) | mode = tiles/tiles_text/text_tiles/full (optional) }}

First unnamed parameter

The numerical value of the speed/velocity in mph or tiles per second. The string tile or tiles needs to be appended for values in tiles per second (e.g. 31 tiles). Supports decimals and negative numbers.

Second unnamed parameter or mode

Control the output format:

Mode Description
(default) The numerical speed/velocity appended with mph, as displayed in-game
tiles Raw numerical tiles-per-second value
tiles_text
text_tiles
The tiles-per-second value with unit
full The default output appended with the tiles_text output

All mph values can be hovered over to reveal a brief explanation.

Examples

Code Result
No input
{{mph}} миль/год
Mph input
{{mph|31}} 31 миль/год
{{mph|3.1415}} 3,1415 миль/год
{{mph|-31415}} −31 415 миль/год
{{mph|31|tiles}} 22,73
{{mph|31|tiles_text}} 22,73 tiles/second
{{mph|31|full}} 31 миль/год (22,73 tiles/second)
{{mph|{{#expr:15/11 round 4}}|full}} 1,3636 миль/год (1 tile/second)
Tiles/sec input
{{mph|31tile}} 42 миль/год
{{mph|3.1415tiles}} 4 миль/год
{{mph|-31415 tile}} −42 839 миль/год
{{mph|31 tiles|mode=tiles}} 31
{{mph|31 TILES|mode=tiles_text}} 31 tile/second
{{mph|31TILE|mode=full}} 42 миль/год (31 tile/second)
{{mph|{{#expr:11/15 round 4}}tiles|mode=full}} 1 миль/год (0,7333 tiles/second)

Notes

  • Note the rounding that is issued when displaying mph values:
    • {{mph|42|full}}42 миль/год (30,8 tiles/second)
    • {{mph|31 tiles|mode=full}}42 миль/год (31 tile/second)
The exact mph equivalent of 31 tiles per second would be 42.272727272727 mph, but this value is rounded just like it is in-game.

Options

Шаблон:Миль/initOptionsЦей шаблон підтримує параметри через шаблон {{options}}. Нижче наведено всі дійсні параметри. Щодо використання та іншої інформації перегляньте {{options}}.

Дивіться Template:миль/initOptions, щодо налаштування параметрів цього шаблону.

НазваІнша назваЗначення за замовчуваннямЗаміна значень[1]Примітка
  1. Значення із заміною будуть збережені та завантажені як замінені значення. Інші значення без замін будуть збережені та завантажені як є.

Example:

{{mph|10}}
{{options|mph|mode=tiles_text}}
{{mph|10}}
{{options|mph|mode=tiles}}
{{mph|10}}
{{options|mph|reset}}
{{mph|10}}

Will output:

10 миль/год

7,33 tiles/second

7,33

10 миль/год