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: a26eacd8e9382a9c

Jump to content

Template:Net tonnage/testcases

From Wikipedia, the free encyclopedia

The table below shows the similarities and differences between the original version and the proposed legacy compatible version. Differences are that the legacy compatible version does not include the word tons for |first=yes and |first=caps. This is because NetT is a dimensionless index based on volume, not mass.

Where the original version emitted an error message when |first= contained a unrecognized value, the legacy compatible version simply outputs the numeric value followed by an unlinked abbreviation.

The default output of the original version is linked. In the legacy compatible version it is not. This is to make this template and other similar templates have similar behavior.

All numeric values in the legacy compatible version are comma separated.

NetT legacy test cases
Template Live version Sandbox legacy
{{NetT|36000|first=yes}}36,000 NTnet tonnage (NT) of 36,000
{{NetT|36000|first=caps}}36,000 NTNet tonnage (NT) of 36,000
{{NetT|36000|first=short}}36,000 NT36,000 NT (net tonnage)
{{NetT|36000}}36,000 NT36,000 NT
{{NetT|36000|first=unknown value}}36,000 NT36,000 NT |first=unknown value
{{NetT|36000|first=}}36,000 NT36,000 NT
NetT new parameter test cases
Template Live version Sandbox version
{{NetT|36000|disp=long}}36,000 net tonnage (NT)36,000 net tonnage (NT)
{{NetT|36000|disp=long|link=off}}36,000 net tonnage (NT)36,000 net tonnage (NT)
{{NetT|36000|disp=adj}}36,000-net tonnage (NT)36,000-net tonnage (NT)
{{NetT|36000|disp=adj|link=off}}36,000-net tonnage (NT)36,000-net tonnage (NT)
{{NetT|36000|disp=sam}}36,000 NT |disp=sam36,000 NT |disp=sam
{{NetT|36000|disp=}}36,000 NT36,000 NT
{{NetT|36000|disp=|link=off}}36,000 NT36,000 NT
{{NetT|36000}}36,000 NT36,000 NT
{{NetT|36000|link=off}}36,000 NT36,000 NT