Static Wikipedia February 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Web Analytics
Cookie Policy Terms and Conditions Template:Navbox generic - Wikipedia

Template:Navbox generic

维基百科,自由的百科全书

這個模板在原始碼中包含了一些非常複雜的可选參數和構造。

这个模版的结构精密,除非您确认非常了解它的用途和构造细节,并且能够修复这个修改所有可能引起的变更,否则请不要随意更动这个模板。所有实验性的步骤请在沙盒模版内,或是您的用户页内进行。使用前请参阅讨论页。

本模板是導航模板的應用之一,可以讓使用者快速建立一個含有連結清單的模板

目录

[编辑] 使用方法

{{Navbox generic
|name   = {{subst:PAGENAME}}
|title  = 
|titlebkg = 
|image  = 
|style  = 
|group-style = 
|state  = 
|top    = 
|group1 = 
|list1  = 
|group2 = 
|list2  = 
|group3 = 
|list3  = 
|group4 = 
|list4  = 
 ...
|group23 = 
|list23  = 
|bottom  = 
}}

[编辑] 參數

[编辑] 必填欄位

name (或 templateName)
模板的名稱,使用於顯示模板導覽的連結。建議直接使用{{subst:PAGENAME}}套入。
title 
標題名稱,會顯示在這個模板的最上面。
listn 
主要的清單內容,要表示的連結請置於此。需要注意的是每個項目之間請不要使用 「|」,會對模板產生影響而導致之後的內容顯示不出來,可以用「-」或「.」代替。

[编辑] 選用欄位

[编辑] 元素

groupn 
清單的子標題。如不需要可省略不填
image
在整個導覽欄的右邊加入圖片。請以標準型式加入([[Image:Example.jpg|80px|right]])並注意尺寸。
top
(or above) A full-width cell displayed below the title and above the body (groups, lists and image). In a template without an image, top behaves like the list1 parameter without the group1 parameter.
bottom
(or below) A full-width cell displayed below the groups, lists and image. In a template without an image, bottom behaves like the template's final listn parameter without a groupn parameter. It is named bottom to match the parameter used in the former {{Navbox generic with image}} template. For an example of the bottom parameter in use, see {{Lists of the provinces and territories of Canada}}.

[编辑] 模板樣式

titlebkg(或color) 
標題欄位的背景顏色。預設以  #ccf 套入。不過當一個條目如果有一個以上的模板使用此模板時,設成不同的顏色可能會使讀者感到不適應。因此此參數需小心使用。
style 
對這個模板套入CSS參數.例如: text-align: (right|center|left|justified); width: (em, %, px); float: (left|right|none); clear: (right|left|both|none); margin:...等等。須小心使用此參數,否則可能會造成視覺上的不協調。
注意:如果您需要用的width來指定模板的寬度,請不要使用auto,否則在模板折疊起來時,原本的寬度會跑掉。
group-style 
對模板的群組(即參數中的group)套入CSS參數。 本欄預設的背景顏色是#ddf
top-style
bottom-style
Specifies CSS styles to apply to the top cell (specified via the top or above parameters) and bottom cell (specified via the bottom or below parameters). Typically used to set background color or text alignment:
background: #nnnnnn;
text-align: [left/center/right];
odd-style
even-style
Specifies CSS styles to apply to the odd-numbered list items (list1, list3, etc.) and even-numbered list items (list2, list4, etc.). Typically used to set background color:
background: #nnnnnn;

[编辑] 其他

state 
設定模板的摺疊狀態。預設是自動摺疊(即autocollapse),也可設為強制摺疊(collapsed)或不摺疊(uncollapsed)。自動摺疊的定義是:當同樣設autocollapse的表格達一定數量時才會摺疊,否則會保持開放狀態(詳情請查詢MediaWiki:Common.js對autocollapse的設定。)

[编辑] 模板版面設計

以下這些表格是本模板現行的排版,您可以參考其結構調整參數,建立。

這個表格只有最基本的必要欄位:


Table generated by {{Navbox generic}} with image, top and bottom parameters (borders added for illustration only):

[编辑] 範例

[编辑] 原始碼

{{Navbox generic
| name  = Navbox generic/doc
| title = [[Wikipedia:導航模板|導航模板]]
| style = width:50%; text-align:left;
| image = [[Image:Example.jpg|80px]]
| group1 = Physics
| list1  = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}} [[Template:Quantum-theory|Quantum theory]]{{·}} [[Template:String-theory|String theory]]
| group2 = Continents
| list2  = [[Template:Continents of the world|World continents]]{{·}} [[Template:Africafooter|Africa]]{{·}} [[Template:Asiafooter|Asia]]{{·}} [[Template:Europefooter|Europe]]
| list3  = [[Template:National parks of Argentina|Argentinian National Parks]]
}}

[编辑] 結果

[编辑] 相關資訊

導航模板比較
檢視  討論  編輯  歷史
縮放模式 標題顏色 圖像 群組 樣式參數 範例模板
{{Navigation}} NavFrame NavHead {{OPEC}}
{{Navigation with image}} NavFrame NavHead 框內 左/右側 {{Cetaceans}}
{{Navigation with columns}} NavFrame NavHead
{{Dynamic navigation box}} collapsible navbox {{AACO}}
{{Dynamic navigation box with image}} NavFrame NavHead 左上角 {{SlovakPMs}}
{{Navbox generic}} collapsible navbox 框內右側 {{台北市重要古蹟}}
{{NavigationBox}} navbox 整體表格的右側 {{上古天皇}}
{{Commons:NavigationBox}} #ccccff 整體表格的右側
{{Commons:Dynamic navigation box}} NavFrame #ccccff
{{Commons:Dynamic navigation box with image}}  NavFrame NavHead 左上角
header或title的背景顏色 is inherited from the class listed bellow. The templates have color parameters that override the default.
折疊屬性
類型 CSS Classes 何時會折疊 Custom initial state Nesting Header color 字體大小
NavFrame div NavFrame, NavHead, NavContent 3個或以上 #efefef 95%
Collapsible table collapsible, navbox 2個或以上 #ccccff 90%

For the technically minded, see Common.css and Common.js.

其他语言
Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2006 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu