Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a43fbf8d1d50cb43

Jump to content

Module:Sandbox/Ahecht/bartable/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

{{#invoke:Sandbox/Ahecht/bartable|function_name}}


Examples

[edit]

Real-world example

[edit]
{| class="wikitable"
|+ Melting point at 1 atmosphere
! Substance  !! Temperature !! colspan="2" | Relative size
|-
| Mercury    || {{#invoke:Sandbox/Ahecht/bartable|bartable| -38.72|/C/F|-2|1em|background:silver}}
|-
| Bromine    || {{#invoke:Sandbox/Ahecht/bartable|bartable|  -7.10|/C/F|-2|1em|background:brown}}
|-
| Water      || {{#invoke:Sandbox/Ahecht/bartable|bartable|      0|/C/F|-2|1em}}
|-
| Phosphorus || {{#invoke:Sandbox/Ahecht/bartable|bartable|  44.10|/C/F|-2|1em|background:red}}
|-
| Iodine     || {{#invoke:Sandbox/Ahecht/bartable|bartable| 113.50|/C/F|-2|1em|background:indigo}}
|-
| Sulphur    || {{#invoke:Sandbox/Ahecht/bartable|bartable| 115.36|/C/F|-2|1em|background:yellow}}
|}
Melting point at 1 atmosphere
SubstanceTemperatureRelative size
Mercury-38.72/C/F
 
Bromine-7.10/C/F
 
Water0/C/F
Phosphorus44.10/C/F44.1
 
Iodine113.50/C/F113.5
 
Sulphur115.36/C/F115.36
 

2-column (only positive values)

[edit]
{| class="wikitable"
! Example                             || colspan="2" | Rendering
|-
| Only value                          || {{#invoke:Sandbox/Ahecht/bartable|bartable|272}}
|-
| Negative value                      || {{#invoke:Sandbox/Ahecht/bartable|bartable|-72}}
|-
| Math expression                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|exp(1)*1e2}}
|-
| Value and unit (note added space)   || {{#invoke:Sandbox/Ahecht/bartable|bartable|272| km/h}}
|-
| Value and unit (link to definition) || {{#invoke:Sandbox/Ahecht/bartable|bartable|272|[[Degree_(angle)|°]]}}
|-
| Value and unit (with formatting)    || style="text-align: right;"|''θ'' = {{#invoke:Sandbox/Ahecht/bartable|bartable|272|°}}
|-
| Value and unit (with conversion)    || {{#invoke:Sandbox/Ahecht/bartable|bartable|272|/km/mi}}
|-
| Value and scale                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||1/(2^0.5)}}
|-
| Value and height                    || {{#invoke:Sandbox/Ahecht/bartable|bartable|272|||4px}}
|-
| Value and style                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||||background:blue;}}
|-
| Value with commas, and scale        || {{#invoke:Sandbox/Ahecht/bartable|bartable|2,720||.1}}
|-
| The full monty                      || {{#invoke:Sandbox/Ahecht/bartable|bartable|18^2|%|sin(1)|2em|border:ridge red;}}
|-
|}
ExampleRendering
Only value—272
 
Negative value—
Math expression—271.8281828459
 
Value and unit (note added space)272 km/h272
 
Value and unit (link to definition)272°272
 
Value and unit (with formatting)θ = 272°272
 
Value and unit (with conversion)272/km/mi272
 
Value and scale272272
 
Value and height272272
 
Value and style272272
 
Value with commas, and scale2,7202720
 
The full monty18^2%324
 

3-column (positive and negative values)

[edit]
{| class="wikitable"
! Example                             || colspan="3" | Rendering
|-
| Only value                          || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||-1}}
|-
| Negative value                      || {{#invoke:Sandbox/Ahecht/bartable|bartable|-72||-1}}
|-
| Math expression                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|exp(1)*1e2||-1}}
|-
| Value and unit (note added space)   || {{#invoke:Sandbox/Ahecht/bartable|bartable|272| km/h|-1}}
|-
| Value and unit (link to definition) || {{#invoke:Sandbox/Ahecht/bartable|bartable|272|[[Degree_(angle)|°]]|-1}}
|-
| Value and unit (with formatting)    || style="text-align: right;"|''θ'' = {{#invoke:Sandbox/Ahecht/bartable|bartable|272|°|-1}}
|-
| Value and unit (with conversion)    || {{#invoke:Sandbox/Ahecht/bartable|bartable|272|/km/mi|-1}}
|-
| Value and scale                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||-1/(2^0.5)}}
|-
| Value and height                    || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||-1|4px}}
|-
| Value and style                     || {{#invoke:Sandbox/Ahecht/bartable|bartable|272||-1||background:blue;}}
|-
| Value with commas, and scale        || {{#invoke:Sandbox/Ahecht/bartable|bartable|2,720||-.1}}
|-
| The full monty                      || {{#invoke:Sandbox/Ahecht/bartable|bartable|18^2|%|sin(-1)|2em|border:ridge red;}}
|-
|}
ExampleRendering
Only value272272
 
Negative value-72
 
Math expressionexp(1)*1e2271.8281828459
 
Value and unit (note added space)272 km/h272
 
Value and unit (link to definition)272°272
 
Value and unit (with formatting)θ = 272°272
 
Value and unit (with conversion)272/km/mi272
 
Value and scale272272
 
Value and height272272
 
Value and style272272
 
Value with commas, and scale2,7202720
 
The full monty18^2%324