Andoza:WDL/doc: Versiyalar orasidagi farq
Oʻzbekcha Vikipediyadan import qilindi. | Oʻzbekcha Vikipediyadan import qilindi. |
$2, $3 dagi (joriy) koʻrinishi
| Ushbu sahifa WDL andozasining hujjat sahifasidir. Bu yerda andozaning asosiy sahifasidan joy olmagan foydalanish qoidalari, turkumlar va boshqa foydali maʼlumotlar joylashtiriladi. |
| Bu andoza quyidagi Luadan foydalanadi: |
Foylanaish
[tahrir | manbasini tahrirlash]This template is for use within tables, and will automatically calculate a Win %
There is the option to align the numbers by adding align= and then left/centre/right as required, and choose the number of decimal places by defining decimals=
For example, putting
{{WDL|30|10|12|8}}
within a table will display this. It will display trailing zeroes (e.g. the second and third case)
| Natija | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 30 | 10 | 12 | 8 | 33,33 |
| 100 | 10 | 1 | 89 | 10,00 |
| 100 | 100 | 0 | 0 | 100,00 |
To align the numbers to the right, use |align=right
{{WDL|30|10|12|8|align=right}}
within a table will display this. It will display trailing zeroes (e.g. the second and third case)
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 30 | 10 | 12 | 8 | 33,33 |
| 100 | 10 | 1 | 89 | 10,00 |
| 100 | 100 | 0 | 0 | 100,00 |
There is also the option of adding in two goals columns before the percentage by using for= and against=. For example, {{WDL|100|10|1|89|for=112|against=88}} or {{WDL|100|10|1|89|for=112|against=88|diff=yes}}:
| Natijalar | ||||||
|---|---|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % | ||
| 100 | 10 | 1 | 89 | 112 | 88 | 10,00 |
| Natijalar | |||||||
|---|---|---|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % | |||
| 100 | 10 | 1 | 89 | 112 | 88 | +24 | 10,00 |
For a total column at the bottom use {{WDLtot}} in the same way.
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 30 | 10 | 12 | 8 | 33,33 |
| 100 | 10 | 1 | 89 | 10,00 |
| 100 | 100 | 0 | 0 | 100,00 |
| 230 | 120 | 13 | 97 | 52,17 |
If the numbers of wins, losses and draws do not add up correctly, the page will appear in Category:WDL error.
Empty parameters
[tahrir | manbasini tahrirlash]If the first parameter is empty, the value for games played is computed from the sum of Wins Draws and Losses
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 30 | 10 | 12 | 8 | 33,33 |
| 100 | 10 | 1 | 89 | 10,00 |
| 130 | 20 | 13 | 97 | 15,38 |
If any win, draw, or loss parameter is empty, the value is assumed to be zero when computing the percentage
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 18 | 10 | 8 | 55,56 | |
| 99 | 10 | 89 | 10,10 | |
| 117 | 20 | 97 | 17,09 | |
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 18 | 10 | 8 | 55,56 | |
| 99 | 10 | 89 | 10,10 | |
| 117 | 20 | 97 | 17,09 | |
| Natijalar | ||||
|---|---|---|---|---|
| Oʻ | Gʻ | D | M | Gʻalaba % |
| 20 | 12 | 8 | 0.00 | |
| 90 | 1 | 89 | 0.00 | |
| 110 | 13 | 97 | 0.00 | |
See also
[tahrir | manbasini tahrirlash]- {{win-loss record}}
- Category:WDL error - errors with the template appear in this category