Template:Template short description/testcases

Template short description/testcases

See also Template:Template short description/testcases2 which has a 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: