Template:Hidden begin/testcases

From English Wikipedia @ Freddythechick

__EXPECTUNUSEDTEMPLATE__

TC1

{{Hidden begin|title=Default example}} *def *ghi {{Hidden end}}
{{Hidden begin|title=Default example}}
*def
*ghi
{{Hidden end}}
Default example
  • def
  • ghi
Default example
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
Default example
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
Default example
  • def
  • ghi

</syntaxhighlight>

TC2

{{Hidden begin|titlebgcolor=pink|title=titlebgcolor is "pink"}} *def *ghi {{Hidden end}}
{{Hidden begin|titlebgcolor=pink|title=titlebgcolor is "pink"}}
*def
*ghi
{{Hidden end}}
titlebgcolor is "pink"
  • def
  • ghi
titlebgcolor is "pink"
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
titlebgcolor is "pink"
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
titlebgcolor is "pink"
  • def
  • ghi

</syntaxhighlight>

TC3

{{Hidden begin|titlestyle=background:pink; text-align:center;|title=added "text-align:center;"}} *def *ghi {{Hidden end}}
{{Hidden begin|titlestyle=background:pink; text-align:center;|title=added "text-align:center;"}}
*def
*ghi
{{Hidden end}}
added "text-align:center;"
  • def
  • ghi
added "text-align:center;"
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
added "text-align:center;"
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
added "text-align:center;"
  • def
  • ghi

</syntaxhighlight>

TC4

{{Hidden begin|titlestyle=background:pink; text-align:right; padding-right:3.0em;|title= title on right with 3.0em padding}} *change window width and *watch title alignment {{Hidden end}}
{{Hidden begin|titlestyle=background:pink; text-align:right; padding-right:3.0em;|title= title on right with 3.0em padding}}
*change window width and
*watch title alignment
{{Hidden end}}
title on right with 3.0em padding
  • change window width and
  • watch title alignment
title on right with 3.0em padding
  • change window width and
  • watch title alignment
Expanded code
<syntaxhighlight lang="html" inline="1">
title on right with 3.0em padding
  • change window width and
  • watch title alignment

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
title on right with 3.0em padding
  • change window width and
  • watch title alignment

</syntaxhighlight>

TC5

{{Hidden begin|showhide=left|titlestyle=background:palegreen;|title=''showhide'' set to "left"}} *def *ghi {{Hidden end}}
{{Hidden begin|showhide=left|titlestyle=background:palegreen;|title=''showhide'' set to "left"}}
*def
*ghi
{{Hidden end}}
showhide set to "left"
  • def
  • ghi
showhide set to "left"
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
showhide set to "left"
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
showhide set to "left"
  • def
  • ghi

</syntaxhighlight>

TC6

{{Hidden begin|showhide=left|titlestyle=background:palegreen;|title={{para|showhide|left}} and ''bodystyle''|bodystyle=font-size:150%; font-weight:bold;}} *def *ghi {{Hidden end}}
{{Hidden begin|showhide=left|titlestyle=background:palegreen;|title={{para|showhide|left}} and ''bodystyle''|bodystyle=font-size:150%; font-weight:bold;}}
*def
*ghi
{{Hidden end}}
|showhide=left and bodystyle
  • def
  • ghi
|showhide=left and bodystyle
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
|showhide=left and bodystyle
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
|showhide=left and bodystyle
  • def
  • ghi

</syntaxhighlight>

TC7

{{Hidden begin|titlestyle=background-color:palegreen; font-style:italic; padding-right:3.0em; font-size:120%;|title=''header''{{=}}deprecated_header_|ontentstyle=background-color: cyan; font-size:150%|border=dashed|ta1=left|ta2=center}} *make window narrower and *title will wrap {{Hidden end}}
{{Hidden begin|titlestyle=background-color:palegreen; font-style:italic; padding-right:3.0em; font-size:120%;|title=''header''{{=}}deprecated_header_|ontentstyle=background-color: cyan; font-size:150%|border=dashed|ta1=left|ta2=center}}
*make window narrower and
*title will wrap
{{Hidden end}}
header=deprecated_header_
  • make window narrower and
  • title will wrap
header=deprecated_header_
  • make window narrower and
  • title will wrap
Expanded code
<syntaxhighlight lang="html" inline="1">
header=deprecated_header_
  • make window narrower and
  • title will wrap

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
header=deprecated_header_
  • make window narrower and
  • title will wrap

</syntaxhighlight>

TC8

{{Hidden begin|titlestyle=background-color:cyan; font-size:120%; padding-right:2.5em;|contentstyle=background-color: yellow; font-size:150%; padding-left:3.0em;|title=title with non-breaking spaces|border=dotted|ta1=right|ta2=left}} *def ... these should have left padding *ghi {{Hidden end}}
{{Hidden begin|titlestyle=background-color:cyan; font-size:120%; padding-right:2.5em;|contentstyle=background-color: yellow; font-size:150%; padding-left:3.0em;|title=title with non-breaking spaces|border=dotted|ta1=right|ta2=left}}
*def ... these should have left padding
*ghi
{{Hidden end}}
title with non-breaking spaces
  • def ... these should have left padding
  • ghi
title with non-breaking spaces
  • def ... these should have left padding
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
title with non-breaking spaces
  • def ... these should have left padding
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
title with non-breaking spaces
  • def ... these should have left padding
  • ghi

</syntaxhighlight>

TC9

{{Hidden begin|title=width is 40%|width=40%}} *def *ghi {{Hidden end}}
{{Hidden begin|title=width is 40%|width=40%}}
*def
*ghi
{{Hidden end}}
width is 40%
  • def
  • ghi
width is 40%
  • def
  • ghi
Expanded code
<syntaxhighlight lang="html" inline="1">
width is 40%
  • def
  • ghi

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">
width is 40%
  • def
  • ghi

</syntaxhighlight>