Template:NetT/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 NT net tonnage (NT) of 36,000
{{NetT|36000|first=caps}} 36,000 NT Net tonnage (NT) of 36,000
{{NetT|36000|first=short}} 36,000 NT 36,000 NT (net tonnage)
{{NetT|36000}} 36,000 NT 36,000 NT
{{NetT|36000|first=unknown value}} 36,000 NT 36,000 NT |first=unknown value
{{NetT|36000|first=}} 36,000 NT 36,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=sam 36,000 NT |disp=sam
{{NetT|36000|disp=}} 36,000 NT 36,000 NT
{{NetT|36000|disp=|link=off}} 36,000 NT 36,000 NT
{{NetT|36000}} 36,000 NT 36,000 NT
{{NetT|36000|link=off}} 36,000 NT 36,000 NT