Модуль:Sports table/документація
Це сторінка документації для Модуль:Sports table
Ця стаття є сирим перекладом з іншої мови. Можливо, вона створена за допомогою машинного перекладу або перекладачем, який недостатньо володіє обома мовами. |
Це підсторінка документації модуля Sports table. Вона містить інформацію про використання, категорії та інший вміст, що не є частиною оригінальної сторінки модуля. |
Цей модуль позначений як К:реліз, готовий до загального вжитку (26). Він досягнув стадії готовності і вважається, що вільний від помилок і може використовуватись всюди, де знадобиться. Його можна вживати на допоміжних сторінках та інших сторінках Вікіпедії як можливість для навчання новачків. Аби зменшити навантаження на сервери та некоректний показ сторінок, його можна вдосконалювати в рамцях чернеткового тестування, а не з застосуванням спроб і помилок. |
This Lua-based module is meant to build group and league tables for sports as well. Note that this module is used extensively, so test potential changes rigorously in the sandbox and please ensure consensus exists before implementing major changes. The rest of this documentation explains how the set-up of the module. Refer to individual style pages for detailed usage instructution
Використання[ред. код]
Базовий виклик: {{#invoke:Sports table|main|style=XXX}}
where XXX refers to the particular style chosen. Refer to these specific styles pages for details about how to use this module. Доступні стилі:
- General styles
- WDL (For tables with a win-draw-loss system)
- WL (For tables with a win-loss system)
- WL OT (For tables with a win-loss system that gives different weights to overtime wins)
- WL OTL tiebreak (For tables with a win-loss-OT loss system and a separate tiebreak column)
- Sport or league specific styles
- Volleyball (For tables with volleyball system, including sets, setpoints and different points for different types of wins)
- Football (soccer) was the first creation. This style is renamed to WDL
More styles?[ред. код]
Модуль використовує Lua для створення таблиць. Most functionality is obtained from the main module, but specific column formatting comes from the style sub-modules. The existing styles can handle a lot of different options. In case you need additional options it could be useful to create a new style. Note that some tweaking of an existing style could give you the functionality you need, rather than creating a completely new style. In case you do create a new style, you might want to refer to the Lua reference manual.