Template:Navbar: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 2: | Line 2: | ||
-->{{#if:{{{nodiv|}}} |<!--then: | -->{{#if:{{{nodiv|}}} |<!--then: | ||
--> <span class="noprint plainlinks hlist navbar nomobile" style=" | --> <span class="noprint plainlinks hlist navbar nomobile" style="{{{style|}}}"> |<!--else: | ||
--><div class="noprint plainlinks hlist navbar nomobile" style=" | --><div class="noprint plainlinks hlist navbar nomobile" style="{{{style|}}}"><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 11: | Line 11: | ||
-->{{#if:{{{mini|}}} |<!--then: | -->{{#if:{{{mini|}}} |<!--then: | ||
-->[[Template:{{{1}}}|<span style=" | -->[[Template:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="View this template">view</span>]]{{·}}[[Template talk:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="Talk page about this template">talk</span>]]{{·}}[{{fullurl:Template:{{{1}}}|action=edit}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="You can edit this template. Please preview the changes before storing them">edit</span>]{{#if:{{{history|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=history}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="View the edit history of this template">history</span>]|}}{{#if:{{{purge|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=purge}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="Clear the cache of this template">purge</span>]|}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then: | -->{{#ifeq:{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then: | ||
-->[[Template:{{{1}}}|<span style=" | -->[[Template:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="View this template">v{{#if:{{{viewplain|}}}|iew}}</span>]]<!-- | ||
-->|<!--else:(nothing)--> |}}<!-- | -->|<!--else:(nothing)--> |}}<!-- | ||
-->{{#ifeq:{{{mini|}}}{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:(nothing)--> |<!--else: | -->{{#ifeq:{{{mini|}}}{{{miniv|}}}{{{viewplain|}}} |<!--equals:-->1 |<!--then:(nothing)--> |<!--else: | ||
-->[[Template:{{{1}}}|<span style=" | -->[[Template:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="View this template>View</span>]]{{·}}[[Template talk:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="Talk page about this template">Talk</span>]]{{·}}[{{fullurl:Template:{{{1}}}|action=edit}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="You can edit this template. Please preview the changes before storing them">Edit</span>]{{#if:{{{history|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=history}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="View the edit history of this template">History</span>]|}}{{#if:{{{purge|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=purge}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="Clear the cache of this template">Purge</span>]|}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{brackets|}}}|]}}<!-- | -->{{#if:{{{brackets|}}}|]}}<!-- |
Latest revision as of 20:12, 6 April 2025
This template uses Module:Navbar, this script is written in Lua.
For more details, please refer to Wikipedia:Lua and Extension:Scribunto.
本模板由{{Tnavbar}}改名而成。
用法
選項 | 參數 | 結果 |
---|---|---|
一般 | {{navbar|模板名}} |
|
沒有本模板: 的文字開頭 |
{{navbar|模板名|plain=1}} |
|
迷你版本 | {{navbar|模板名|mini=1}} |
|
改變Navbar文字風格 | {{navbar|模板名|fontstyle=color:green}} |
|
以方括號包圍Navbar | {{navbar|模板名|brackets=1}} |
- 編者可以自由組合以上的各種命名參數改變自己需要的Navbar風格。
以下是该模板的-{zh-cn:模板数据;zh-tw:模板資料}-,适用于-{zh-cn:可视化编辑器;zh-tw:視覺化編輯器;}-等工具。
Navbar-{zh-cn:模板数据;zh-tw:模板資料}-
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
简略显示 | plain | 如果不勾选此项,开头部分会有“本模板: ”的字样
| Boolean | optional |
小型模板 | mini | 如果勾选此项,则模板显示为“查·论·编”
| Boolean | optional |
字体样式 | fontstyle | 内联css,改变Navbar文字风格,不需要加引号
| String | optional |
有无括号 | brackets | 如果勾选此项则以方括号包围Navbar
| Boolean | optional |
參見
- {{view}}
- Module:Navbar
重定向
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Navbar/doc.