Template:Navbar: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
m 1 revision imported
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:


-->{{#if:{{{mini|}}} |<!--then:
-->{{#if:{{{mini|}}} |<!--then:
-->[[Template:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="-{zh-hans:查看;zh-hant:檢視}-这个模板"></span>]]{{·}}[[Template talk:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="关于这个模板的讨论页面"></span>]]{{·}}[{{fullurl:Template:{{{1}}}|action=edit}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="您可以编辑这个模板。请在储存变更之前先预览"></span>]{{#if:{{{history|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=history}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="-{zh-hans:查看zh-hant:檢視}-这个模板的编辑历史"></span>]|}}{{#if:{{{purge|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=purge}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="清除这个模板的缓存"></span>]|}}<!--
-->[[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="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="-{zh-hans:查看;zh-hant:檢視}-这个模板">v{{#if:{{{viewplain|}}}|iew}}</span>]]<!--
-->[[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="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="-{zh-hans:查看;zh-hant:檢視}-这个模板>-{zh-hans:查看;zh-hant:檢視}-</span>]]{{·}}[[Template talk:{{{1}}}|<span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="关于这个模板的讨论页面">讨论</span>]]{{·}}[{{fullurl:Template:{{{1}}}|action=edit}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="您可以编辑这个模板,请在储存变更之前先预览。">编辑</span>]{{#if:{{{history|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=history}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="-{zh-hans:查看;zh-hant:檢視}-这个模板的编辑历史">历史</span>]|}}{{#if:{{{purge|}}}|{{·}}[{{fullurl:Template:{{{1}}}|action=purge}} <span style="{{#if:{{{fontstyle|}}}|{{{fontstyle}}}|color:{{{fontcolor|#002bb8}}}}}" title="清除这个模板的缓存">清除缓存</span>]|}}<!--
-->[[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

[ View | Edit | History | Purge ]Documentation page

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
简略显示plain

如果不勾选此项,开头部分会有“本模板: ”的字样

Default
Auto value
1
Booleanoptional
小型模板mini

如果勾选此项,则模板显示为“查·论·编”

Default
Auto value
1
Booleanoptional
字体样式fontstyle

内联css,改变Navbar文字风格,不需要加引号

Example
color:green
Stringoptional
有无括号brackets

如果勾选此项则以方括号包围Navbar

Default
Auto value
1
Booleanoptional

參見

重定向

[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Navbar/doc.