(Translated by https://www.hiragana.jp/)
Template:Hidden begin - Wikipedia コンテンツにスキップ

Template:Hidden begin

半永久的に拡張半保護されているテンプレート

{{Hidden begin}}と{{Hidden end}}をわせて使つかいます。


パラメータ

パラメータ 説明せつめいぶん
showhide タイトルバーにおける[表示ひょうじ/かくす]の位置いちleft指定していするとタイトルバーの左側ひだりがわかれます。
toggle showhideとおなじ。
class CSS クラスの指定してい
style CSSの指定してい
border ボーダーのCSSの指定してい
title タイトルバーに表示ひょうじするテキスト。
titlestyle タイトルバーに適用てきようされるCSS属性ぞくせい
bg1 タイトルバーの背景はいけいしょく
ta1 タイトルバーの文字もじ配置はいち標準ひょうじゅんはleft。
contentstyle 中身なかみ適用てきようされるCSS属性ぞくせい
bodystyle うえおなじ。
bg2 中身なかみ背景はいけいしょく
ta2 中身なかみ文字もじ位置いち

使用しようれい

コード 表示ひょうじ
{{hidden begin
|title = default example
}}
*def
*ghi
{{hidden end}}
default example
  • def
  • ghi
{{hidden begin
|title = title with background:pink
|titlestyle = background:pink;
}}
*def
*ghi
{{hidden end}}
title with background:pink
  • def
  • ghi
{{hidden begin
|title = title aligned in the center
|titlestyle = background:pink; text-align:center;
}}
*def
*ghi{{hidden end}}
title aligned in the center
  • def
  • ghi
{{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}}
title aligned on the right needs padding-right
  • change window width and
  • watch title alignment
{{hidden begin
|toggle     = left
|title      = title with toggle=left
|titlestyle = background:palegreen;
}}
*def
*ghi
{{hidden end}}
title with toggle=left
  • def
  • ghi
{{hidden begin
|toggle     = right
|title      = title with toggle=right
|titlestyle = background:lightgrey;
}}
*def
*ghi
{{hidden end}}
title with toggle=right
  • def
  • ghi
{{hidden begin
|toggle     = left
|title      = abc with toggle=left
|titlestyle = background:palegreen;
|bodystyle  = font-size:150%; font-weight:bold; 
}}
*def
*ghi
{{hidden end}}
abc with toggle=left
  • def
  • ghi
{{hidden begin
|toggle     = right
|header     = deprecated_header_
|title      = title with toggle=right
|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}}
deprecated_header_title with toggle=right
  • make window narrower and
  • title will wrap
{{hidden begin
|toggle     = right
|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}}
title with non-breaking spaces
  • def these should have left padding
  • ghi

関連かんれん項目こうもく