« Modèle:Note/doc » : différence entre les versions

De wiki-spl
Aller à la navigation Aller à la recherche
test0>Baris6161TURK
Aucun résumé des modifications
test0>ExE Boss
(Match {{Documentation/preload}})
Ligne 1 : Ligne 1 :
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateData header|docpage=Note/doc}}
<templatedata>
<templatedata>
{
{
Ligne 58 : Ligne 61 :
]
]
}
}
</templatedata><noinclude>
</templatedata>
[[Category:Template documentation{{#translation:}}]]
<includeonly>{{Sandbox other||
</noinclude>
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Templates{{#translation:}}]]
}}</includeonly>

Version du 19 juillet 2021 à 00:44

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:modèle:note/doc|-1|-2}}|doc|1|0}} and {{#if:{{#invoke:Template translation|getLanguageSubpage}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Modèle:Mbox
        }}{{#if: |
         |   {{#ifexist:Modèle:Note
                  | [[Category:{{#switch:Modèle
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang=⧼lang⧽}}

}} Modèle:TemplateData header <templatedata> { "params": { "inline": { "label": { "en": "Inline formatting", "tr": "Satır içi biçimlendirme" }, "description": { "en": "Show the template without line breaks before and after it.", "tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin." }, "type": "boolean" }, "text": { "aliases": [ "1" ], "label": { "en": "Text", "tr": "Metin" }, "type": "content", "required": true, "description": { "en": "Informative note.", "tr": "Bilgilendirecek not." } }, "type": { "aliases": [ "2" ], "label": { "en": "Type", "tr": "Tür" }, "description": { "en": "One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.", "tr": "“info”, “reminder”, “warn” veya “error” değerlerden biri. Bu ayar, rengi ve simgeyi etkiler." }, "type": "line", "default": { "en": "info", "tr": "type" } } }, "format": "inline", "description": { "en": "Show a note in a box (e.g. a top-of-the-page warning).", "tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı)." }, "paramOrder": [ "type", "text", "inline" ] } </templatedata>