Template:Navbar/doc: Difference between revisions

From LPFM Wiki
Jump to navigation Jump to search
Mediawiki>कन्हाई प्रसाद चौरसिया
m (Reverted 1 edit by 59.103.206.202 (talk) (TwinkleGlobal))
(No difference)

Revision as of 03:32, 11 April 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> |=

{{#if:{{safesubst:#switch: 1
|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}}}}|{{#if:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[{{#switch:

|#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:

|=

{{#if:{{safesubst:#switch: 1
|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}}}}|{{#if:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[{{#switch:

|#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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template name1

The template for which to create navbar links

Auto value
{{subst:PAGENAME}}
Templaterequired
Texttext

Custom leading text

Default
This box:
Lineoptional
Mini?mini

Only emit “v · d · e”

Booleanoptional
Plain?plain

Omit leading text

Default
{{{mini}}}
Booleanoptional
Brackets?brackets

Surround links with brackets

Booleanoptional
No Editnoedit

Omit the “Edit” link

Booleanoptional
Stylestyle

The CSS style attribute

Stringoptional
Font Stylefontstyle

The CSS style attribute for text

Stringoptional