Difference between revisions of "Template:2nd/doc"

From LFS Manual
Jump to navigationJump to search
(streak explaining)
 
Line 1: Line 1:
 
<noinclude>{{documentation subpage}}</noinclude>
 
<noinclude>{{documentation subpage}}</noinclude>
  
This is a table cell template used to fill cells of a table to indicate a second position. When used without parameters, it's useful in championship standings tables which contain points per round for all drivers. Two optional parameters specify the driver's name and their username, respectively. Setting parameter <code>break</code> to true, inserts a line break between the driver name and username (might come handy in packed tables, where the horizontal space is not enough).  
+
This is a table cell template used to fill cells of a table to indicate a second position. When used without parameters, it's useful in championship standings tables which contain points per round for all drivers. Two optional parameters specify the driver's name and their username, respectively. Setting parameter <code>break</code> to true, inserts a line break between the driver name and username (might come handy in packed tables, where the horizontal space is not enough). If needed, streaks (of consecutive results of a driver, for example three wins in a row) can be highlighted by using parameter <code>streak</code>: if set to <code>start</code> the cell will have widened borders so that it is open towards the bottom, if set to <code>end</code>, it gets widened borders on sides and bottom.
  
 
For first and third places, use {{tl|code=1|1st}} and {{tl|code=1|3rd}}, respectively.
 
For first and third places, use {{tl|code=1|1st}} and {{tl|code=1|3rd}}, respectively.
Line 18: Line 18:
 
| {{tl|code=1|2nd|Second Joe}}
 
| {{tl|code=1|2nd|Second Joe}}
 
| {{2nd|Second Joe}}
 
| {{2nd|Second Joe}}
 +
|-
 +
| {{tl|code=1|2nd|Second Joe|joesecond123|4=streak=start}}
 +
| {{2nd|Second Joe|joesecond123|streak=start}}
 
|-
 
|-
 
| {{tl|code=1|2nd|Second Joe|joesecond123}}
 
| {{tl|code=1|2nd|Second Joe|joesecond123}}
 
| {{2nd|Second Joe|joesecond123}}
 
| {{2nd|Second Joe|joesecond123}}
 +
|-
 +
| {{tl|code=1|2nd|Second Joe|joesecond123|4=streak=end}}
 +
| {{2nd|Second Joe|joesecond123|streak=end}}
 
|-
 
|-
 
| {{tl|code=1|2nd|Second Joe|joesecond123|4=break=true}}
 
| {{tl|code=1|2nd|Second Joe|joesecond123|4=break=true}}

Latest revision as of 20:59, 10 June 2024

Information icon4.png This is a documentation subpage for Template:2nd.

It may contain usage information, categories and other content that is not part of the original page.

This is a table cell template used to fill cells of a table to indicate a second position. When used without parameters, it's useful in championship standings tables which contain points per round for all drivers. Two optional parameters specify the driver's name and their username, respectively. Setting parameter break to true, inserts a line break between the driver name and username (might come handy in packed tables, where the horizontal space is not enough). If needed, streaks (of consecutive results of a driver, for example three wins in a row) can be highlighted by using parameter streak: if set to start the cell will have widened borders so that it is open towards the bottom, if set to end, it gets widened borders on sides and bottom.

For first and third places, use {{1st}} and {{3rd}}, respectively.

Examples

What to type What it produces
{{2nd}}
{{2nd}} 18 18
{{2nd|Second Joe}} Second Joe
{{2nd|Second Joe|joesecond123|streak=start}} Second Joe (joesecond123)
{{2nd|Second Joe|joesecond123}} Second Joe (joesecond123)
{{2nd|Second Joe|joesecond123|streak=end}} Second Joe (joesecond123)
{{2nd|Second Joe|joesecond123|break=true}} Second Joe
(joesecond123)