Jump to content

User:Argenti Aertheri/Useful Templates

This user is a member of WikiProject Guild of Copy Editors.
This user is a WikiGnome.
This editor is a Journeyman Editor and is entitled to display the Journeyman Editor Ribbon.
Trout this user
From Wikipedia, the free encyclopedia

Basic characters

[edit]
  •  
  • ...
  • ""
  • |
  • {{clear}}
[edit]

Interwiki

[edit]

Tables

[edit]
Extended content
Caption text
Header text Header text Header text
Header text
1 2 3
a
Name Jill
Phone 555-1234
555-8745

Long  tables on mobile

[edit]

Wrap it in a p tag and set max-width to calc(100vw - 2.75em)

Math

[edit]
Extended content
  • 9-foot (2.7 m) vs 9 feet (2.7 m) vs 9-foot-long (2.7 m)
  • Convert from given unit to user’s unit or default conversion: 9 metres (30 ft); 9 feet (2.7 m)
  • 3.7 miles (6 km) vs 6 kilometres (3.7 mi)
  • 40 feet (12.19 m) vs 40 feet (12 m)
  • 550 kilometres per hour (340 mph)
  • 60–170 kilograms (130–370 lb) or 90 to 100 °F (32–38 °C)
  • 20 °F (11 °C)

Inflation

[edit]
Extended content

Template:Inflation

Notes

[edit]

General

[edit]
  • Add |r=N to round, figure out N by trial and error (use chart below)
  • Add |fmt=c to include thousand separating commas
  • Use [1] to automatically include footnote
Footnote text
  1. ^ 1634–1699: McCusker, J. J. (1997). How Much Is That in Real Money? A Historical Price Index for Use as a Deflator of Money Values in the Economy of the United States: Addenda et Corrigenda (PDF). American Antiquarian Society. 1700–1799: McCusker, J. J. (1992). How Much Is That in Real Money? A Historical Price Index for Use as a Deflator of Money Values in the Economy of the United States (PDF). American Antiquarian Society. 1800–present: Federal Reserve Bank of Minneapolis. "Consumer Price Index (estimate) 1800–". Retrieved February 29, 2024.

Formatting specific

[edit]
  • Module:Format_price
  • Can’t use |fmt=eq - have to do that part manually
  • Issues when dealing with ranges, can’t do $x-y million, have to do $x million - y million?

Examples

[edit]
  • equivalent to $12,005 in 2022
  • equivalent to $12,000-15,000 in 2022
  • $800 (equivalent to $12,005 in 2022)
  • $800 (equivalent to $12,000 in 2022)
  • Using formatting:
    • $15 million
    • ($15 million in 2022)
    • equivalent to $30 million-150 million in 2022
r example table
Using 1930 to 2022
$1,123,456,789 $12,345.67
r=N Without format With format Without format With format
2 $19,680,635,463.08 $19.7 billion $216,270.56 $216,271
1 $19,680,635,463.1 $19.7 billion $216,270.6 $216,271
0 $19,680,635,463 $19.7 billion $216,271 $216,271
-1 $19,680,635,460 $19.7 billion $216,270 $216,270
-2 $19,680,635,500 $19.7 billion $216,300 $216,300
-3 $19,680,635,000 $19.7 billion $216,000 $216,000
-4 $19,680,640,000 $19.7 billion $220,000 $220,000
-5 $19,680,600,000 $19.7 billion $200,000 $200,000
-6 $2,163,000,000 $2.16 billion $0 $0.00
-7 $2,160,000,000 $2.16 billion $0 $0.00
-8 $2,200,000,000 $2.2 billion $0 $0.00
-9 $2,000,000,000 $2 billion $0 $0.00

Other

[edit]