Template:Ambox: Difference between revisions

From SimRail Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "{| style="center; margin: -1px auto 0px;border: 1px solid #17a81a; border-left: 10px solid #17a81a; background: #f3f3f4; width:600px" |- | style="padding: 0.25em 0.5em;" | {{{text}}} |}")
Tag: Replaced
Line 1: Line 1:
<includeonly>{{Languages|Template:Ambox}}</includeonly>
{| style="center; margin: -1px auto 0px;border: 1px solid #17a81a; border-left: 10px solid #17a81a; background: #f3f3f4; width:600px"
{{Mbox templates}}
|-
{{Documentation subpage}}
| style="padding: 0.25em 0.5em;" | {{{text}}}
{{High-use|8000}}
|}
{{Lua|Module:Message box{{\sandbox}}}}
 
This is the {{Tl|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 [[Reading/Web/Projects/Mobile Page Issues|this page]].
 
== 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
| text  = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}.
| small = left
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = delete
| text  = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}.
| small = left
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = content
| text  = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}.
| small = left
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = style
| text  = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}.
| small = left
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = notice
| text  = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}.
| small = left
}}
{{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}}.
| small = left
}}
{{Ambox{{\sandbox}}
| nocat = true
| type  = protection
| text  = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}.
| small = left
}}
 
== See also ==
{{Mbox templates}}
Other pages:
* [[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:Article message boxes]] — The style guideline for creating article message boxes.
* [[w:Wikipedia talk:Article message boxes]] — For discussion about these matters.
 
== TemplateData ==
<!--{{TemplateData header}}-->
{{Mbox/TemplateData}}
<!--templatedata>
{
"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>

Revision as of 14:27, 17 April 2023

{{{text}}}