跳去內容

Template:Hidden begin

出自維基百科,自由嘅百科全書
模解[] [] [] []
呢個說明係{{Hidden begin}}同{{Hidden end}}一齊用嘅。

文法

[編輯]
{{Hidden begin
| expanded =  <!--"true", "on", yes", etc, otherwise omit-->
| showhide =  <!--"left", otherwise omit-->
| title = 
| titlestyle = 
| border = 
| style = 
| contentstyle = 
<!--Older, semi-deprecated parameters:-->
|header= |bg1= |bg2= |ta1= |ta2= |extra1= |extra2=
}}
<!----[content to be hidden placed here]---->
{{Hidden end}}

參數

[編輯]
參數 說明
showhide 將標題列位嘅 [顯示▼/隱藏▲] 連結位置由預設嘅右側改去左側(唔帶引號)。
expanded 填入任意參數內容(譬如"true"、"yes")令隱藏段嘅初狀態由摺埋改打開(睇得到)。
border 將框入邊嘅內容CSS樣式改成粗體。可由 style 推翻(若使用)。
style 框嘅嘅CSS樣式效果(標題列及隱藏/可隱藏內容)。可由 border 推翻(若使用)。
titlestyle 應用喺標題列嘅CSS樣式(例: |titlestyle=border:1px solid lightgrey; to produce a border around it; |titlestyle=background:color; to set its background color to color ; |titlestyle=text-align:[center/right]; to switch its text (title)'s alignment from left to center or right; etc).
title 標題位顯示啲文字。
contentstyle  應用喺隱藏內容嘅CSS樣式(例如每個 titlestyle 套用 background and text-align)。

示範

[編輯]
{{Hidden begin
| title = HideH樣式
| border = | header= |bg1= |ta1= 
}}
*def
*ghi
{{Hidden end}}
HideH樣式
  • def
  • ghi


示範1

[編輯]
{{Hidden begin |title=預設示範}}
*def
*ghi
{{Hidden end}}
預設示範
  • def
  • ghi

示範2

[編輯]
{{Hidden begin
| titlestyle = background:pink;
| title = ''titlestyle'' 標題樣式係粉紅底 "background:pink;"
}}
*def
*ghi
{{Hidden end}}
titlestyle 標題樣式係粉紅底 "background:pink;"
  • def
  • ghi

示範3

[編輯]
{{Hidden begin
| titlestyle = background:pink; text-align:center;
| title = 標題嘅文字置中 "text-align:center;"
}}
*def
*ghi
{{Hidden end}}
標題嘅文字置中 "text-align:center;"
  • def
  • ghi

示範4

[編輯]
{{Hidden begin
| titlestyle = background:pink; text-align:right; padding-right:3.0em;
| title = 右側標題縮排 3.0em
}}
*改變框架闊度&
*睇標題對齊
{{Hidden end}}
右側標題縮排 3.0em
  • 改變框架闊度&
  • 睇標題對齊

示範5

[編輯]
{{Hidden begin |showhide=left
| titlestyle = background:palegreen;
| title = ''showhide'' 改到左側
}}
*def
*ghi
{{Hidden end}}
showhide 改到左側
  • def
  • ghi

示範6

[編輯]
{{Hidden begin |showhide=left
| titlestyle = background:palegreen;
| title = <code style="background:transparent;">showhide=left</code>, 隱藏內容字體大細改 150% 並加粗體 (''contentstyle'')
| contentstyle = font-size:150%; font-weight:bold; 
}}
*def
*ghi
{{Hidden end}}
showhide=left, 隱藏內容字體大細改 150% 並加粗體 (contentstyle)
  • def
  • ghi

示範7

[編輯]
{{Hidden begin
| header = [''header'' (deprecated)]
| titlestyle = font-style:italic; padding-right:3.0em;
| title = [''title'' 文字設定喺度]
| border = 1px solid grey
| bg1 = palegreen
| bg2 = cyan
| ta1 = left
| ta2 = center
| extra1 = font-size:120%
| extra2 = font-size:150%
}}
*令框架變窄&覆蓋標題
*標題斜體&內文置中
{{Hidden end}}
[header (deprecated)][title 文字設定喺度]
  • 令框架變窄&覆蓋標題
  • 標題斜體&內文置中

示範8

[編輯]
{{Hidden begin
| titlestyle = 
| title = 標題&nbsp;使用&nbsp;唔斷行&nbsp;空格&nbsp;
| border = 1px solid red
| bg1 = cyan
| bg2 = yellow
| ta1 = right
| ta2 = left
| extra1 = font-size:120%; padding-right:2.5em;
| extra2 = font-size:150%; padding-left:3.0em;
}}
*def ... 內容縮排
*ghi
{{Hidden end}}
標題 使用 唔斷行 空格 
  • def ... 內容縮排
  • ghi

睇埋

[編輯]
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy