Difference between revisions of "Template:3rd"

From LFS Manual
Jump to navigationJump to search
(Created page with "<includeonly>style="background: #ffdf9f; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}"|</includeonly><noinclude> {{documentation}} </noinclude>")
 
(combined 3rd named into this)
Line 1: Line 1:
<includeonly>style="background: #ffdf9f; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}"|</includeonly><noinclude>
+
<includeonly>style="background: #ffdf9f; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}"|{{#if:{{{1|}}}|'''{{{1|}}}'''}} {{#if:{{{2|}}}|({{{2|}}})}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 00:04, 26 January 2024

Template Info-Icon.png

Template documentation

View - Edit

This is a table cell template used to fill cells of a table to indicate a third 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 second places, use {{1st}} and {{2nd}}, respectively.

Examples

What to type What it produces
{{3rd}}
{{3rd}} 15 15
{{3rd|Third Joe}} Third Joe
{{3rd|Third Joe|joethird123|streak=start}} Third Joe (joethird123)
{{3rd|Third Joe|joethird123}} Third Joe (joethird123)
{{3rd|Third Joe|joethird123|streak=end}} Third Joe (joethird123)
{{3rd|Third Joe|joethird123|break=true}} Third Joe (joethird123)