Template:Net tonnage/testcases
This is the template test cases page for the sandbox of Template:Net tonnage. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
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.
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 |
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 |