Template:Ambox/doc: Difference between revisions

From Project: Redcap
m (4 revisions: Yet more template dependencies)
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
<includeonly>{{Languages|Template:Ambox}}</includeonly>
{{Mbox templates}}
{{Documentation subpage}}
{{High-use|8000}}
{{Lua|Module:Message box{{\sandbox}}}}
 
This is the {{Tl|Ambox}} or '''Article message box''' meta-template.
This is the {{Tl|Ambox}} or '''Article message box''' meta-template.


=== Type preview ===
MobileFrontend will treat this template as a page issue. If you don't want that MobileFrontend does so, you may use a different message box template. See also [[Reading/Web/Projects/Mobile Page Issues|this page]].
{{Ambox
 
|nocat=true
== Parameters ==
=== <code>type</code> ===
The <code>type</code> parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.
{{Ambox{{\sandbox}}
| nocat = true
| type  = speedy
| text  = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = delete
| text  = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = content
| text  = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = style
| text  = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = notice
| text  = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = move
| text  = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}.
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = protection
| text  = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}.
}}
 
If no <code>type</code> parameter is given the template defaults to {{para|type|notice}}.
 
=== <code>small=left</code> ===
{{Ambox{{\sandbox}}
| nocat = true
| type  = speedy
| type  = speedy
| text  = type=<u>speedy</u>
| text  = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}.
| small = left
}}
}}
{{Ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = delete
| type  = delete
| text  = type=<u>delete</u>
| text  = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}.
| small = left
}}
}}
{{Ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = warning
| type  = content
| text  = type=<u>warning</u>
| text  = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}.
| small = left
}}
}}
{{Ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = style
| type  = style
| text  = type=<u>style</u>.
| text  = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}.
| small = left
}}
}}
{{ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = notice
| type  = notice
| text  = type=<u>notice</u>
| text  = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}.
| small = left
}}
}}
{{Ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = move
| type  = move
| text  = type=<u>move</u>
| text  = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}.
| small = left
}}
}}
{{Ambox
{{Ambox{{\sandbox}}
|nocat=true
| nocat = true
| type  = protection
| type  = protection
| text  = type=<u>protection</u>
| text  = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}.
| small = left
}}
}}


=== See also ===
== See also ==
{{mbox templates}}
{{Mbox templates}}
Other pages:
Other pages:
* [[w:Template:Mbox]]
* [[w:Template:Mbox]]
* [[w:Wikipedia:Ambox CSS classes]] Describes how to use the ambox CSS classes directly in [[Help:Table|wikitable]]s and [[w:HTML element#Tables|HTML tables]].
* [[w:Wikipedia:Ambox CSS classes]] Describes how to use the ambox CSS classes directly in [[Help:Table|wikitable]]s and [[w:HTML element#Tables|HTML tables]].
* [[w:Wikipedia:Article message boxes]] The style guideline for creating article message boxes.
* [[w:Wikipedia:Article message boxes]] The style guideline for creating article message boxes.
* [[w:Wikipedia talk:Article message boxes]] For discussion about these matters.
* [[w:Wikipedia talk:Article message boxes]] For discussion about these matters.


<includeonly>
== TemplateData ==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!--{{TemplateData header}}-->
{{languages}}
{{Mbox/TemplateData}}
[[Category:Mbox templates]]
<!--templatedata>
</includeonly>
{
"params": {
"type": {
"type": "line",
"suggestedvalues": [
"speedy",
"delete",
"content",
"style",
"notice",
"move",
"protection"
]
},
"text": {
"type": "string",
"suggested": true
}
},
"description": {
"en": "This is a generic article message box.",
"cs": "Toto je obecné okno se zprávou článku."
}
}
</templatedata-->
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Mbox templates{{#translation:}}]]
}}</includeonly>

Latest revision as of 08:57, 10 November 2024

[[Category:Template documentation pages{{#translation:}}]]

Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Lua banner.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.

This is the {{Ambox }} or Article message box meta-template.

MobileFrontend will treat this template as a page issue. If you don't want that MobileFrontend does so, you may use a different message box template. See also this page.

Parameters

type

The type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.

If no type parameter is given the template defaults to |type=notice.

small=left

See also

Other pages:

TemplateData

[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Ambox

[[Category:TemplateData documentation{{#translation:}}]]

<templatedata> { "description": {

"en": "This is the specialized version of the

or “multi namespace message box” meta-template.", "cs": "Toto je specializovaná verze metašablony

nebo “multi namespace message box“."

}, "format": "block", "params": { "type": { "label": { "en": "Type", "cs": "Typ" }, "suggestedvalues": [ "speedy", "delete", "content", "style", "notice", "move", "protection" ], "type": "string", "default": "notice", "suggested": true }, "image": { "label": { "en": "Image (left)", "cs": "Obrázek (vlevo)" }, "suggestedvalues": [ "none" ], "default": { "en": "Depends on the “type” parameter.", "cs": "Závisí na parametru “type“." }, "suggested": true, "type": "content" }, "imageright": { "label": { "en": "Image (right)", "cs": "Obrázek (vpravo)" }, "type": "content" }, "style": { "label": { "en": "CSS Style", "cs": "Styl CSS" }, "type": "string" }, "textstyle": { "label": { "en": "Text CSS Style", "cs": "Textový styl CSS" }, "type": "string" }, "text": { "label": { "en": "Text", "cs": "Text" }, "suggested": true, "type": "content" }, "small": { "label": { "en": "Small?", "cs": "Malý?" }, "suggestedvalues": [ "", "left", "yes", "1" ], "default": "0", "type": "boolean" }, "smallimage": { "label": { "en": "Small Image (left)", "cs": "Malý obrázek (vlevo)" }, "suggestedvalues": [ "none" ], "default": "{{{image}}}", "type": "content" }, "smallimageright": { "label": { "en": "Small Image (right)", "cs": "Malý obrázek (vpravo)" }, "suggestedvalues": [ "none" ], "default": "{{{imageright}}}", "type": "content" }, "smalltext": { "label": { "en": "Small Text", "cs": "Malý text" }, "default": "{{{text}}}", "type": "content" } } } </templatedata>