User:84user/Sandbox

From OpenMedia
Jump to: navigation, search

[edit]

Documentation

Test Template:Hidden 2010 October version from User:84user/Sandbox

Call without parameters:


Examples using 2010 October version

{{Hidden|1=parameter one|2=parameter two}}
produces


The 2011 March 4 version of Template:Hidden shows parameters one and two:

{{Hidden|1=parameter one|2=parameter two}}
produces

parameter one

parameter two


{{Hidden|toggle=left|1=toggle=left, parameter one|2=parameter two}}
produces


:{{Hidden|1=prefixed with colon parameter one|2=prefixed with colon parameter two}}
prefixing the template with a colon ":" forces the parameter to be always unhidden:

prefixed with colon parameter two


{{Hidden|style=background:yellow|1=parameter one|2=parameter two}}
produces


{{Hidden|style=width: 50%;|headerstyle=background:#d0ffd0;|contentstyle=background:#ffe0e0;color:blue;|1=parameter one|2=parameter two}}
produces


Examples using 2011 March version

Call without parameters:

{{{1}}} 

I think call without parameters will cause all following text (including this text) to be hidden until two close div tags are seen:


{{Hidden|1=parameter one|2=parameter two}}
produces

parameter one 
parameter two


{{Hidden|toggle=left|1=toggle=left, parameter one|2=parameter two}}
produces

toggle=left, parameter one 
parameter two


:{{Hidden|1=prefixed with colon parameter one|2=prefixed with colon parameter two}}
prefixing the template with a colon ":" forces the parameter to be always unhidden:

prefixed with colon parameter one 
prefixed with colon parameter two


{{Hidden|style=background:yellow|1=parameter one|2=parameter two}}
produces

parameter one 
parameter two


{{Hidden|style=width: 50%;|headerstyle=background:#d0ffd0;|contentstyle=background:#ffe0e0;color:blue;|1=parameter one|2=parameter two}}
produces

parameter one 
parameter two