Template:RDseed/doc: Difference between revisions

Jump to navigation Jump to search
(workarounds for common display issues)
 
m (1 revision imported)
 

Latest revision as of 05:42, 13 December 2023

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 A123
 
 
Team B22 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 A123
 
 
Template:EscapeTeam B22 4
 


Or without other params:

{{#invoke:RoundN|N2
||[[:Template:Escape]]Team A|1|[[:Template:Escape]]Team B|2
}}
 
Final
 
  
 
 
 
 
Template:EscapeTeam A1
 
 
Template:EscapeTeam B2
 

Parameters

This template takes 3 parameters:

  1. The seed
  2. Padding of the team box or the adjustment needed to align it to the left (Optional, defaults to RoundN's padding)
  3. 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= to auto 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