"模板:Navbar/doc" 修訂間的差異

出自 陳富國維基館
前往: 導覽搜尋
(Removed sitelinks migrated to Wikidata)
(1個修訂)
 
(未顯示同一使用者於中間所作的 1 次修訂)
行 1: 行 1:
{{documentation subpage}}
+
<includeonly>{{pp-template}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
{{high-risk|7,300,000+}}
+
<!-- 在本行下編輯模板說明 -->
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
+
本模板對{{Tl|Tnavbar}}作出改良。現階段屬於測試性質。
  
== Usage ==
+
== 用法 ==
===General===
+
{| class="wikitable" style="font-size:100%"
When one of the following examples is placed inside a given [[Wikipedia:Navigation templates|template]], it adds navbar navigational functionality:
+
! 選項 !! 參數 !! 結果
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt>
+
|-
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></tt>
+
| 一般 || <code><nowiki>{{navbar|模板名}}</nowiki></code> || {{navbar|navbar/doc}}
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt>
 
 
 
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. For example, <code><nowiki>{{navbar|navbar/doc}}</nowiki></code> gives:<br> {{navbar|navbar/doc}}
 
 
 
===Font-size===
 
Font-size is 88% when used in a navbar, and 100% when nested in a navbox.
 
In the navbar, the weight is "normal"; when nested in navbox, it takes on the outer setting. The middot is bold.
 
 
 
== Examples ==
 
===Required parameters===
 
*<code><nowiki>{{navbar|Template Name}}</nowiki></code> – the template name is required.
 
 
 
===Optional parameters===
 
{| class="wikitable"
 
! Options !! Parameters !! Produces...
 
 
|-
 
|-
| Basic || <code><nowiki>{{navbar|Template Name}}</nowiki></code> || {{navbar|navbar/doc}}
+
| 沒有<tt style="background-color:yellow">本模板: </tt>的文字開頭 || <code><nowiki>{{navbar|模板名|plain=1}}</nowiki></code> || {{navbar|navbar/doc|plain=1}}
 
|-
 
|-
| Different text || <code><nowiki>{{navbar|Template Name|text=This template:}}</nowiki></code> || {{navbar|navbar/doc|text=This template:}}
+
| 迷你版本 || <code><nowiki>{{navbar|模板名|mini=1}}</nowiki></code> || {{navbar|navbar/doc|mini=1}}
 
|-
 
|-
| Without "This box:" text || <code><nowiki>{{navbar|Template Name|plain=1}}</nowiki></code> || {{navbar|navbar/doc|plain=1}}
+
| 併入其他文字中間 || <code><nowiki>{{navbar|模板名|nodiv=1}}</nowiki></code> || Lorem {{navbar|navbar/doc|nodiv=1}} Ipsum
 
|-
 
|-
| Short version || <code><nowiki>{{navbar|Template Name|mini=1}}</nowiki></code> || {{navbar|navbar/doc|mini=1}}
+
| 改變Navbar文字風格 || <code><nowiki>{{navbar|模板名|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}}
 
|-
 
|-
| With brackets
+
| 增加<tt style="background-color:yellow">歷史</tt>連接 || <code><nowiki>{{navbar|模板名|history=1}}</nowiki></code> || {{navbar|navbar/doc|history=1}}
| <code><nowiki>{{navbar|Template Name|brackets=1}}</nowiki></code>
 
| {{navbar|navbar/doc|brackets=1}}
 
 
|-
 
|-
| With a color option ([[Span and div|span]]) || <code><nowiki>{{navbar|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}}
+
| 增加<tt style="background-color:yellow">[[维基百科:清除缓存|清除緩存]]</tt>連接 || <code><nowiki>{{navbar|模板名|purge=1}}</nowiki></code> || {{navbar|navbar/doc|purge=1}}
 
|-
 
|-
| To float to the side ([[Span and div|div]]) || <code><nowiki>{{navbar|Template Name|style=float:right}}</nowiki></code> || {{navbar|navbar/doc|style=float:right}}
+
| 以方括號包圍Navbar || <code><nowiki>{{navbar|模板名|brackets=1}}</nowiki></code> || {{navbar|navbar/doc|brackets=1}}
 
|}
 
|}
 +
* 編者可以自由組合以上的各種命名參數改變自己需要的Navbar風格。
  
===Deprecated parameters===
+
== 參見 ==
The <tt>miniv=1</tt>, <tt>viewplain=1</tt>, <tt>nodiv=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To implement the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.
+
*{{tl|view}}
  
== Notes ==
+
<includeonly>
Navbar is contained within a {{tag|div}} in order to accommodate a horizontal unnumbered list. This means it cannot be placed inside a {{tag|span}} or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.
+
<!-- 本行下加入模板的分類 -->
 
+
[[category:鏈接模板]]
== Prepackaged ==
 
;{{tl|Navbar-header}}: Positions {{navbar|navbar/doc|mini=1}} on the right edge of the line, often used in non-collapsible navbox heading.
 
;{{tl|Tnavbar-navframe}}: For use in conjunction with [[Wikipedia:NavFrame|Navframe div]]s, positions {{navbar|navbar/doc|mini=1}} opposite of the [hide]/[show] feature.
 
;{{tl|Navbar-collapsible}}: For use in conjunction with [[Wikipedia: NavFrame#Collapsible tables|Collapsible tables]], floats {{navbar|navbar/doc|mini=1}} opposite of the [hide]/[show] feature.
 
 
 
== See also ==
 
{{Edit templates}}
 
{{Navigational templates}}
 
  
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
+
<!-- 本行下加入模板的跨語言鏈接 -->
<includeonly>
+
[[af:Sjabloon:Tnavbar]]
[[Category:Internal link templates]]
+
[[ang:Template:Tnavbar]]
 +
[[ar:قالب:Tnavbar]]
 +
[[az:Şablon:Tnavbar]]
 +
[[ba:Ҡалып:Tnavbar]]
 +
[[be-x-old:Шаблён:Спасылкі шаблёну]]
 +
[[be:Шаблон:Tnavbar]]
 +
[[bg:Шаблон:Tnavbar]]
 +
[[bn:Template:তথ্যছক-Tnavbar]]
 +
[[bpy:মডেল:Tnavbar]]
 +
[[br:Patrom:Tnavbar]]
 +
[[bs:Šablon:Tnavbar]]
 +
[[ca:Plantilla:Tnavbar]]
 +
[[ceb:Template:Tnavbar]]
 +
[[cs:Šablona:Tnavbar]]
 +
[[cv:Шаблон:Tnavbar]]
 +
[[cy:Nodyn:Bar llywio]]
 +
[[da:Skabelon:Tnavbar]]
 +
[[dsb:Pśedłoga:Tnavbar]]
 +
[[dv:Template:Tnavbar]]
 +
[[et:Mall:Navbar]]
 +
[[el:Πρότυπο:Tnavbar]]
 +
[[en:Template:Navbar]]
 +
[[eo:Ŝablono:Tnavbar]]
 +
[[eu:Txantiloi:Tnavbar]]
 +
[[fa:الگو:نوارپیونددان]]
 +
[[fr:Modèle:Tnavbar]]
 +
[[fi:Malline:Tnavbar]]
 +
[[fo:Fyrimynd:Tnavbar]]
 +
[[ga:Teimpléad:Tnavbar]]
 +
[[gl:Modelo:Tnavbar]]
 +
[[gu:Template:Tnavbar]]
 +
[[haw:Template:Tnavbar]]
 +
[[hi:साँचा:Tnavbar]]
 +
[[hr:Predložak:Tnavbar]]
 +
[[hsb:Předłoha:Tnavbar]]
 +
[[hu:Sablon:Tnavbar]]
 +
[[hy:Կաղապար:Tnavbar]]
 +
[[id:Templat:Tnavbar]]
 +
[[ilo:Template:Tnavbar]]
 +
[[os:Шаблон:Tnavbar]]
 +
[[it:Template:Tnavbar]]
 +
[[is:Snið:Tnavbar]]
 +
[[ja:Template:Tnavbar]]
 +
[[jv:Cithakan:Tnavbar]]
 +
[[ka:თარგი:Tnavbar]]
 +
[[kk:Үлгі:Tnavbar]]
 +
[[km:ទំព័រគំរូ:Tnavbar]]
 +
[[kn:ಟೆಂಪ್ಲೇಟು:Tnavbar]]
 +
[[ko:틀:안내 참조]]
 +
[[ku:Şablon:Tnavbar]]
 +
[[kw:Template:Tnavbar]]
 +
[[la:Formula:Tnavbar]]
 +
[[lmo:Template:Tnavbar]]
 +
[[lo:ແມ່ແບບ:Tnavbar]]
 +
[[lt:Šablonas:Tnavbar]]
 +
[[lv:Veidne:Tnavbar]]
 +
[[mi:Template:Tnavbar]]
 +
[[mk:Шаблон:Тнавлента]]
 +
[[ml:ഫലകം:Tnavbar]]
 +
[[mn:Template:Tnavbar]]
 +
[[ms:Templat:Tnavbar]]
 +
[[mt:Template:Tnavbar]]
 +
[[mr:साचा:Tnavbar]]
 +
[[nah:Plantilla:Tnavbar]]
 +
[[ne:Template:Tnavbar]]
 +
[[new:Template:Tnavbar]]
 +
[[nl:Sjabloon:Tnavbar]]
 +
[[nn:Mal:Tnavbar]]
 +
[[no:Mal:Tnavbar]]
 +
[[nov:Template:Tnavbar]]
 +
[[oc:Modèl:Tnavbar]]
 +
[[pag:Template:Tnavbar]]
 +
[[pam:Template:Tnavbar]]
 +
[[pih:Template:Tnavbar]]
 +
[[pl:Szablon:Tnavbar]]
 +
[[ps:کينډۍ:Tnavbar]]
 +
[[pt:Predefinição:Navbar]]
 +
[[qu:Plantilla:Tnavbar]]
 +
[[rm:Template:Tnavbar]]
 +
[[ro:Format:Tnavbar]]
 +
[[ru:Шаблон:Tnavbar]]
 +
[[sd:Template:Tnavbar]]
 +
[[sh:Template:Tnavbar]]
 +
[[si:සැකිල්ල:Tnavbar]]
 +
[[simple:Template:Tnavbar]]
 +
[[sk:Šablóna:Tnavbar]]
 +
[[sl:Predloga:Prednavmeni]]
 +
[[sr:Шаблон:Tnavbar]]
 +
[[su:Citakan:Tnavbar]]
 +
[[sq:Stampa:Tnavbar]]
 +
[[sv:Mall:Tnavbar]]
 +
[[sw:Template:Tnavbar]]
 +
[[ta:வார்ப்புரு:Tnavbar]]
 +
[[te:మూస:Tnavbar]]
 +
[[tg:Шаблон:Tnavbar]]
 +
[[th:แม่แบบ:Tnavbar]]
 +
[[tl:Template:Tnavbar]]
 +
[[tr:Şablon:Dçubuğu]]
 +
[[tw:Template:Tnavbar]]
 +
[[uk:Шаблон:Tnavbar]]
 +
[[ur:سانچہ:Tnavbar]]
 +
[[uz:Shablon:Tnavbar]]
 +
[[vec:Template:Tnavbar]]
 +
[[vi:Tiêu bản:Tnavbar]]
 +
[[wa:Modele:Tnavbar]]
 +
[[war:Template:Tnavbar]]
 +
[[wuu:Template:Tnavbar]]
 +
[[yi:מוסטער:Tnavbar]]
 +
[[yo:Template:Tnavbar]]
 +
[[zh-min-nan:Template:Tnavbar]]
 +
[[zh-yue:Template:Tnavbar]]
 
</includeonly>
 
</includeonly>

於 2013年3月17日 (日) 11:22 的最新修訂

本模板對{{Tnavbar}}作出改良。現階段屬於測試性質。

用法

選項 參數 結果
一般 {{navbar|模板名}}
沒有本模板: 的文字開頭 {{navbar|模板名|plain=1}}
迷你版本 {{navbar|模板名|mini=1}}
併入其他文字中間 {{navbar|模板名|nodiv=1}} Lorem Ipsum
改變Navbar文字風格 {{navbar|模板名|fontstyle=color:green}}
增加歷史連接 {{navbar|模板名|history=1}}
增加清除緩存連接 {{navbar|模板名|purge=1}}
以方括號包圍Navbar {{navbar|模板名|brackets=1}}
  • 編者可以自由組合以上的各種命名參數改變自己需要的Navbar風格。

參見