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

De wiki-spl
Aller à la navigation Aller à la recherche
test0>Legoktm
(improve templatedata)
Aucun résumé des modifications
Ligne 2 : Ligne 2 :
== Usage ==
== Usage ==
<pre>
<pre>
{{note|Foo}}
{{note|Foot}}
{{note|Foo|reminder}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note|Foo|error}}
Ligne 10 : Ligne 10 :
{{tip}} Loose test
{{tip}} Loose test
</pre>
</pre>
{{note|Foo}}
{{note|Foot}}
{{note|Foo|reminder}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note|Foo|error}}

Version du 8 septembre 2016 à 16:00

{{#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⧽}}

}}

Usage

{{note|Foot}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note|Foo|gotcha}}
{{tip|Foo}}
{{note}} Loose test
{{tip}} Loose test

{{#if: {{#if:Foot|Foot|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

Foot
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

Modèle:Tip

{{#if: {{#if:||{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

{{{text}}}
 | <translate> Note</translate> <translate> Note:</translate> }} Loose test

Modèle:Tip Loose test


<templatedata> { "params": { "1": { "type": "content" }, "2": {} }, "format": "inline" } </templatedata>

Heading text