Template:Navbar/doc: Difference between revisions
Mediawiki>कन्हाई प्रसाद चौरसिया m (Reverted 1 edit by 59.103.206.202 (talk) (TwinkleGlobal)) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 12:56, 28 July 2022
{{#ifeq:doc |doc
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:Navbar | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
{{#switch:<translate></translate> |=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Navbar/doc|{{#ifeq:Template:Navbar/doc|{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:navbar/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|0}}}}|
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}}}}}} {{#if:||<translate> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}}
Navbar
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:navbar/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}||}}}} | #default=
{{#switch:
|=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Navbar/doc|{{#ifeq:Template:Navbar/doc|{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:navbar/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|0}}}}|
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:Navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}}}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
Navbar
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:navbar/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}||}}}} | #default=
Lua error: expandTemplate: template loop detected.
}} }}
Adds edit links to navboxes and other templates
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | The template for which to create navbar links
| Template | required |
Text | text | Custom leading text
| Line | optional |
Mini? | mini | Only emit “v · d · e” | Boolean | optional |
Plain? | plain | Omit leading text
| Boolean | optional |
Brackets? | brackets | Surround links with brackets | Boolean | optional |
No Edit | noedit | Omit the “Edit” link | Boolean | optional |
Style | style | The CSS style attribute | String | optional |
Font Style | fontstyle | The CSS style attribute for text | String | optional |