Template:Hidden begin

From Touhou Wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Syntax[edit]

{{Hidden begin
| border     =
| header     =
| title      =
| titlestyle =
| bodystyle  =
| bg1        =
| bg2        =
| ta1        =
| ta2        =
| extra1     =
| extra2     =
}}
<!-- content -->
{{Hidden end}}

Parameters[edit]

Parameter Description
title Text shown in titlebar.
titlestyle CSS styles to apply to title, e.g. "border:1px solid lightgrey;" to produce a border around the titlebar, "background:color;" to change the titlebar's background color from transparent to color, "text-align:[center/right];" to change the titlebar text's alignment from left to center or right, etc.
bodystyle CSS styles to apply to the hidden material, e.g. background and text-align per titlestyle.

Examples[edit]

Code Result
{{hidden begin
|title = default example
}}
*def
*ghi
{{hidden end}}
{{hidden begin
|title = title with background:pink
|titlestyle = background:pink;
}}
*def
*ghi
{{hidden end}}
{{hidden begin
|title = title aligned in the center
|titlestyle = background:pink; text-align:center;
}}
*def
*ghi{{hidden end}}
{{hidden begin
|title = title aligned on the right needs padding-right
|titlestyle = background:pink;
 text-align:right;padding-right:3em;
}}
*change window width and
*watch title alignment{{hidden end}}
{{hidden begin
|header     = deprecated_header_
|title      = title
|titlestyle = font-style:italic; padding-right:3em;
|border     = dashed
|bg1        = palegreen
|bg2        = cyan
|ta1        = left
|ta2        = center
|extra1     = font-size:120%
|extra2     = font-size:150%
}}
*make window narrower and
*title will wrap
{{hidden end}}
{{hidden begin
|title      = title with non-breaking spaces
|titlestyle = 
|border     = dotted
|bg1        = cyan
|bg2        = yellow
|ta1        = right
|ta2        = left
|extra1     = font-size:120%; padding-right:2.5em;
|extra2     = font-size:150%; padding-left:3em;
}}
*def these should have left padding 
*ghi
{{hidden end}}

See also[edit]