Toggle menu
Toggle preferences menu
Toggle personal menu
Ikke logget på
Your IP address will be publicly visible if you make any edits.

Skabelon:Ambox: Forskelle mellem versioner

Fra Kammeraterikrig.dk
Use <onlyinclude> and add comment about categories
 
m 1 revision imported
 
(2 mellemliggende versioner af 2 andre brugere ikke vist)
Linje 1: Linje 1:
<onlyinclude>{{#invoke:Message box|ambox}}</onlyinclude>
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}};{{NAMESPACENUMBER}}|left;0|[[Category:Articles using small message boxes]]}}<noinclude>
{{Documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>

Nuværende version fra 27. jun. 2023, 20:37

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
[[Category:Languages pages{{#translation:}}]]

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Ambox in articles based on its TemplateData.

TemplateData for Ambox

This is the specialized version of the {{mbox}} or “multi namespace message box” meta-template.

Skabelonparametre[Rediger TemplateData]

Denne skabelon foretrækker blok-formatering af parametre (en parameter per linje).

ParameterBeskrivelseTypeStatus
Typetype

ingen beskrivelse

Foreslåede værdier
speedy delete content style notice move protection
Standardværdi
notice
Strengforeslået
Image (left)image

ingen beskrivelse

Foreslåede værdier
none
Standardværdi
Depends on the “type” parameter.
Indholdforeslået
Image (right)imageright

ingen beskrivelse

Indholdvalgfri
CSS Stylestyle

ingen beskrivelse

Strengvalgfri
Text CSS Styletextstyle

ingen beskrivelse

Strengvalgfri
Texttext

ingen beskrivelse

Indholdforeslået
Small?small

ingen beskrivelse

Foreslåede værdier
{{{small|}}} left yes 1
Standardværdi
0
Booleskvalgfri
Small Image (left)smallimage

ingen beskrivelse

Foreslåede værdier
none
Standardværdi
{{{image}}}
Indholdvalgfri
Small Image (right)smallimageright

ingen beskrivelse

Foreslåede værdier
none
Standardværdi
{{{imageright}}}
Indholdvalgfri
Small Textsmalltext

ingen beskrivelse

Standardværdi
{{{text}}}
Indholdvalgfri

[[Category:Mbox templates{{#translation:}}]]


Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Skabelon:Ambox]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Skabelon:Ambox/install.