Template:Template short description/testcases2
Appearance
This is the template test cases page for the sandbox of Template:Template short description. 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: |
See also Template:Template short description/testcases which has no short description.
When viewing these testcases you probably want custom CSS to display the short description (or lack there of). The following is one possible solution
.shortdescription {
display:block !important;
white-space: pre-wrap;
}
.shortdescription::before {
content: "\A[Short description:\0020";
}
.shortdescription::after {
content: "]\A";
}
Testcases
[edit]{{Template short description|Short description}}
- Live:
- Sandbox:
{{Template short description|This is a very long description that shouldn't be displayed}}
- Live:
- Sandbox:
{{Template short description|This is a very long description that should be displayed because of maxlength|max_length=1000}}
- Live:
- Sandbox:
{{Template short description|Short description|infobox_pattern=[iI]nfobox test}}
- Live:
- Sandbox:
{{Template short description|Short description|infobox_pattern=[iI]nfobox nonexistant}}
- Live:
- Sandbox: