Template:RDseed/doc
This is a documentation subpage for Template:RDseed. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This can add a seed box to any Module:RoundN-based or similar templates that do not have seeds.
For example, here's a box without seeds:
{{#invoke:RoundN|N2
|no_column_head=yes
|widescore=yes
|score-boxes=2+sum
|bold_winner=yes
||Team A|1|2|Team B|2|2
}}
Team A | 1 | 2 | 3 | |
Team B | 2 | 2 | 4 | |
And here's the same but with RDseed:
{{#invoke:RoundN|N2
|no_column_head=yes
|widescore=yes
|score-boxes=2+sum
|bold_winner=yes
||{{RDseed|1|widescore=yes}}Team A|1|2|{{RDseed|2|0.6ex|40}}Team B|2|2
}}
1 Team A | 1 | 2 | 3 | |
2 Team B | 2 | 2 | 4 | |
Or without other params:
{{#invoke:RoundN|N2
||{{RDseed|1}}Team A|1|{{RDseed|2}}Team B|2
}}
Final | ||
1 Team A | 1 | |
2 Team B | 2 | |
Parameters
[edit]This template takes 3 parameters:
- The seed
- Padding of the team box or the adjustment needed to align it to the left (Optional, defaults to RoundN's padding)
- The width of the seed box (Optional, default to RoundN's scorebox widths)
Both params 2 and 3 accept units in terms of CSS. In lieu of parameter 3, you may set |widescore=yes
to set the width to 40 pixels.
Display issues and workarounds
[edit]RDseed is a CSS hack which produces a DIV tag that masquerades as a table cell (TD tag). Since it is not a true table cell, there may be situations where RDseed may look "off" whenever something causes its container cell to have an abnormal height value.
Some situations that may cause this:
- Using the
|skipmatch
parameter - Text wrapping (caused by mobile view and/or very long team names)
Workarounds you may try are:
- Add
|flex_tree=yes
to the template (usually all that is needed if skipmatch was used) - Set
|team-width=
toauto
or a sufficiently high value (170 is default, so try something like|team-width=200
) - Add
|style=white-space:nowrap
to template (or modify your style parameter to include it)
You may need to use a combination of two or all of the above workarounds for some cases.
See also
[edit]