Template:Int/doc

From vulcanforged WIKI
< Template:Int
Revision as of 12:02, 28 September 2022 by Neswulf (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Int}} This template renders a MediaWiki message in the page language. Not to be confused with the {{magic word|code=1|nowrap=1|int|<nowiki/>}} {{ll|Help:Magic words#int|magic word}}, which uses the user interface language instead. == Examples == {{Tbullet|nl=1|int|vector-view-history}} *{{tlx<!-- -->|int|vector-view-history|lang{{=}}de}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

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

Script error: No such module "Lua banner".

This template renders a MediaWiki message in the page language. Not to be confused with the Template:Magic word Template:Ll, which uses the user interface language instead.

Examples

Template:Tbullet

  • <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}}:int|int]]{{#if:vector-view-history||vector-view-history}}{{#if:langTemplate:=de||langTemplate:=de}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}Template:))
→ Script error: No such module "Int".Template:TbulletTemplate:TbulletTemplate:Tbullet

TemplateData

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

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

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

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

}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:int/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 = Int/doc 
| = 
   {{#ifeq:  | 
     | Template:Int/doc            
     | Int/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 = Int/doc 
| = 
   {{#ifeq:  | 
     | Template:Int/doc            
     | Int/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>}}

Localized Interface Message

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

{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:int/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": { "en": "This template renders a MediaWiki message in the page language. Not to be confused with the Template:Int: magic word, which uses the user interface language instead.", "tr": "Bu şablon, sayfa dilinde bir MediaWiki mesajı oluşturur. Bunun yerine kullanıcı arayüzü dilini kullanan Template:Int: sihirli kelimesi ile karıştırılmamalıdır." }, "format": "inline", "params": { "1": { "label": { "en": "i18n string", "tr": "Ululsarasılaştırma" }, "description": { "en": "The i18n string, found using qqx.", "tr": "qqx kullanılarak bulunan ulusarasılaştırma dizesi." }, "example": { "en": "rcfilters-filter-patrolled-label", "tr": "rcfilters-filter-patrolled-label" }, "type": "line", "required": true }, "2": { "label": { "en": "Parameters", "tr": "Değer" }, "example": { "en": "Notification-link-text-expand-notice-count can display a count", "tr": "Notification-link-text-expand-notice-count bir sayı gösterebilir" }, "description": { "en": "Value of an included parameter (counter, message...)", "tr": "Dahil edilen bir parametrenin değeri (sayaç, mesaj...)" }, "type": "string" }, "lang": { "label": { "en": "Language", "tr": "Dil" }, "description": { "en": "Language to use in the message. Should be used only in exceptional cases, as the template automatically guesses the language to use when used on translated pages.", "tr": "Mesajda kullanılacak dil. Şablon çevrilmiş sayfalarda kullanıldığında kullanılacak dili otomatik olarak tahmin ettiğinden, yalnızca istisnai durumlarda kullanılmalıdır." }, "example": { "en": "de", "tr": "de" }, "type": "line" } } } </templatedata>