Jump to content

Template:Longitem/testcases

From Wikipedia, the free encyclopedia
Basic longitem use
{{Longitem|Some long text value}}

{{Longitem}}

Some long text value
<div style="display: inline-block; line-height: 1.2em; padding: .1em 0; ">Some long text value</div>

{{Longitem/sandbox}}

Some long text value
<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;width: 100%;">Some long text value</div>
Longitem with style param
{{Longitem|Some long text value|style=background-color:#aaffaa;}}

{{Longitem}}

Some long text value
<div style="display: inline-block; line-height: 1.2em; padding: .1em 0; background-color:#aaffaa;">Some long text value</div>

{{Longitem/sandbox}}

Some long text value
<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;background-color:#aaffaa;">Some long text value</div>
Longitem with missing 1=
{{Longitem|style=background-color:#aaffaa;}}

{{Longitem}}

display: inline-block; line-height: 1.2em; padding: .1em 0; width: 100%;
display: inline-block; line-height: 1.2em; padding: .1em 0; width: 100%;

{{Longitem/sandbox}}

Missing 1= parameter
<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;background-color:#aaffaa;">Missing <code>1=</code> parameter</div>
Longitem with empty 1=
{{Longitem||style=background-color:#aaffaa;}}

{{Longitem}}

<div style="display: inline-block; line-height: 1.2em; padding: .1em 0; background-color:#aaffaa;"></div>

{{Longitem/sandbox}}

<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;background-color:#aaffaa;"></div>