![]() | This is the template test cases page for the sandbox of Template:Longitem. 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: |
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>