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

m 25 versions importées
 
(21 versions intermédiaires par 12 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}}
<templatedata>
{{note|Foo|reminder}}
{
{{note|Foo|error}}
"format": "inline",
{{note|Foo|gotcha}}
"description": {
{{tip|Foo}}
"en": "Show a note in a box (e.g. a top-of-the-page warning).",
{{note}} Loose test
"tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı)."
{{tip}} Loose test
},
</pre>
"params": {
{{note|Foo}}
"inline": {
{{note|Foo|reminder}}
"label": {
{{note|Foo|error}}
"en": "Inline formatting",
{{note|Foo|gotcha}}
"tr": "Satır içi biçimlendirme"
{{tip|Foo}}
},
{{note}} Loose test
"description": {
 
"en": "Show the template without line breaks before and after it.",
{{tip}} Loose test
"tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin."
{{me}}
},
<includeonly>
"default": "0",
<!-- Categories go here, and interwikis go here -->
"autovalue": "1",
{{languages}}
"type": "boolean"
</includeonly>
},
"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"
}
},
"paramOrder": [
"inline",
"type",
"1"
]
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Templates{{#translation:}}]]
}}</includeonly>