Template:EIN/testcases

No params should produce an error
{{EIN}}

{{EIN}}

Parameter error in {{EIN}}: Missing EIN.

{{EIN/sandbox}}

Parameter error in {{EIN}}: Missing EIN.

Ensure leading zeros are not stripped
{{EIN|012345678}}

{{EIN}}

EIN 012345678

{{EIN/sandbox}}

EIN 012345678

With plainlink
{{EIN|123456789|plainlink=yes}}

{{EIN}}

123456789

{{EIN/sandbox}}

123456789

Multiple EINs
{{EIN|012345678|123456789|234567890}}

{{EIN}}

EIN 012345678, 123456789, 234567890

{{EIN/sandbox}}

EIN 012345678, 123456789, 234567890

Multiple EINs; strip dash
{{EIN|01-2345678|12-3456789|23-4567890}}

{{EIN}}

EIN 012345678, 123456789, 234567890

{{EIN/sandbox}}

EIN 012345678, 123456789, 234567890

Multiple EINs with leadout
{{EIN|012345678|123456789|234567890|leadout=and}}

{{EIN}}

EIN 012345678, 123456789 and 234567890

{{EIN/sandbox}}

EIN 012345678, 123456789 and 234567890

Multiple EINs with plainlink
{{EIN|012345678|123456789|234567890|plainlink=yes}}

{{EIN}}

012345678, 123456789, 234567890

{{EIN/sandbox}}

012345678, 123456789, 234567890

Multiple EINs with plainlink and leadout
{{EIN|012345678|123456789|234567890|leadout=and |plainlink=yes}}

{{EIN}}

012345678, 123456789 and 234567890

{{EIN/sandbox}}

012345678, 123456789 and 234567890