Template:RDseed
Final | ||
1 | ||
1 | 2 | |
Usage
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
||[[:Template:Escape]]Team A|1|2|[[:Template:Escape]]Team B|2|2
}}
Template:EscapeTeam A | 1 | 2 | 3 | |
Template:EscapeTeam B | 2 | 2 | 4 | |
Or without other params:
{{#invoke:RoundN|N2
||[[:Template:Escape]]Team A|1|[[:Template:Escape]]Team B|2
}}
Final | ||
Template:EscapeTeam A | 1 | |
Template:EscapeTeam B | 2 | |
Parameters
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
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.