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

m 25 versions importées
 
(9 versions intermédiaires par 6 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
{{Documentation subpage}}
{{Documentation subpage}}
== Usage ==
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<pre>
{{TemplateData header|editlinks=1|docpage=Note/doc}}
{{note|Foo}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note|Foo|gotcha}}
{{tip|Foo}}
{{note}} Loose test
{{tip}} Loose test
</pre>
{{note|Foo}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note|Foo|gotcha}}
{{tip|Foo}}
{{note}} Loose test
 
{{tip}} Loose test
<includeonly>
<!-- Categories go here, and interwikis go here -->
{{languages}}
</includeonly>
 
<templatedata>
<templatedata>
{
{
"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ı)."
},
"params": {
"params": {
"1": {},
"inline": {
"2": {}
"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."
},
"default": "0",
"autovalue": "1",
"type": "boolean"
},
"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."
},
"suggestedvalues": [
"info",
"reminder",
"warn",
"error"
],
"default": "info",
"type": "string"
},
"1": {
"aliases": [
"text"
],
"label": {
"en": "Text",
"tr": "Metin"
},
"description": {
"en": "Informative note.",
"tr": "Bilgilendirecek not."
},
"required": true,
"type": "content"
}
},
},
"format": "inline"
"paramOrder": [
"inline",
"type",
"1"
]
}
}
</templatedata>
</templatedata>
 
<includeonly>{{Sandbox other||
== Heading text ==
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Templates{{#translation:}}]]
}}</includeonly>