Template:Tl/doc

From vulcanforged WIKI
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | Script error: No such module "Message box".
        }}{{#if: |
         |   {{#ifexist:Template:Tl
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Template:Shared Template Warning

TemplateData

{{#switch:<translate></translate> |=

{{#if:{{safesubst:#switch:
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|{{#ifexpr:{{#if:|{{#ifeq:Template:Tl/doc|{{#switch:

|#default =  
| = 
   {{#ifeq:  | 
     | Template:{{{docpage}}}            
     |       
   }}

}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tl/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|<templatestyles src="Module:Navbar/styles.css"/>{{#if:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[{{#switch:

|#default = Tl/doc 
| = 
   {{#ifeq:  | 
     | Template:Tl/doc            
     | Tl/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 = Tl/doc 
| = 
   {{#ifeq:  | 
     | Template:Tl/doc            
     | Tl/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>}}

Template link

{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tl/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 Script error: No such module "Template translation".

}} <templatedata> { "description": "This template provides an easy way to link to other templates, presenting the link in a way similar to a template call in wikitext.", "format": "inline", "params": { "1": { "label": "template", "description": "The template to be linked", "example": "Tl", "required": true, "type": "wiki-template-name" } } } </templatedata>

See also

<templatestyles src="Module:Navbar/styles.css"/>{{#if:||{{#if:These tables:|These tables:|<translate> This box:</translate>}} }}{{#if:|[}}[[{{#switch:

|#default = Tl-nav 
| = 
   {{#ifeq:  | 
     | Template:Tl-nav            
     | Tl-nav      
   }}

}}|<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 = Tl-nav 
| = 
   {{#ifeq:  | 
     | Template:Tl-nav            
     | Tl-nav      
   }}

}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}}

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ <templatestyles src="Template:Mono/styles.css"/>{{#if:{{safesubst:#switch: no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:tlg|tlg]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}Template:)) optionsTemplate:NoteTag
to achieve text style

Link style
Linked Unlinked Linked with subst
<templatestyles src="Template:Mono/styles.css"/>{{#if:{{safesubst:#switch: no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:tlg|tlg]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}Template:)) optionsTemplate:NoteTag
to achieve link style

Template:N/a Template:N/a nolink=1 subst=1
normal Template:N/a Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list
code code=1 Template:Unbulleted list Template:Unbulleted list Template:Unbulleted list
Template:Mono mono=1Template:NoteTag Template:Unbulleted list colspan="2" rowspan="3" Template:N/a
plaincode plaincode=1Template:NoteTag
kbd kbd=1Template:NoteTag

Template:NoteFoot