User:MiszaBot/config/testcases

These tests are for checking template's behavior with regard to whitespace issues around banner templates (aka header templates, Talk message boxes, or {{Tmbox}}es). See also WP:TALKLEAD.

Two Tmboxes for comparison

edit

Between two tmboxes

edit

No line breaks

edit
{{User:MiszaBot/config}} between two Tmboxes
{{tmbox|text=Top box}}{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

With line breaks

edit
With line breaks
{{tmbox|text=Top box}}
{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}
{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

With <!-- comments -->

edit
With commented out line breaks
{{tmbox|text=Top box}}<!--
 line breaks    -->{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}<!--
 for readablity -->{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

After Tmbox

edit
After Tmbox
{{tmbox|text=Top box}}{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

After Tmbox with line breaks
{{tmbox|text=Top box}}
{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

After Tmbox with comment
{{tmbox|text=Top box}}<!--
commented out line break -->{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

Before Tmbox

edit
Before Tmbox
{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

Before Tmbox with line breaks
{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}
{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}

Before Tmbox with comment
{{User:MiszaBot/config|archive=User:MiszaBot/config/testcases/archive}}<!--
 commented out line break -->{{tmbox|text=Bottom box}}

{{User:MiszaBot/config}}

{{User:MiszaBot/config/sandbox}}