Type a search term to find related articles by LIMS subject matter experts gathered from the most trusted and dynamic collaboration tools in the laboratory informatics industry.
Dette er {{amboks}} eller artikkelmeldingsboks-metamalen.
Malen brukes for å bygge meldingsbokser som skal plasseres i artikler, slik som {{Fremtidig programvare}}.
Malen bruker CSS-klassene ambox i MediaWiki:Common.css. Disse klassene kan også brukes direkte i en wikitabell ved behov. Se how-to guide for mer info.
Enkelt eksempel:
{{Amboks | tekst = Litt tekst.}}
Litt mer komplisert eksempel:
{{Amboks | type = style | bilde = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]] | tekst = Text for a big box, for the top of articles. }}
De følgende eksemplene bruker forskjellige type parameter:
I eksemplene ovenfor brukes standardbilder for hver type. I eksemplene under er bilder spesifisert eksplisitt.
Liste over parametere:
{{Amboks | type = speedy / delete / content / style / notice / move / protection | bilde = none / [[Fil:...|40px|...]] | bildehøyre = [[Fil:...|40px|...]] | style = CSS values | tekst = The message body text. }}
type
bilde
link=|alt=
slik:
bilde = [[File:Unbalanced scales.svg|40px|link=|alt=]]
bildehøyre
bildehøyre = [[Fil:Nuvola apps bookcase.png|40px|alt=Tre stablede bøker]]
style
" "
but with the ending semicolons ;
. For example:
style = margin-bottom: 0.5em;
tekst
Spesialtegn kan escapes slik:
{{Amboks | tekst = <div> Equal sign = and a start and end brace { } work fine as they are. But here is a pipe | and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces <nowiki>|}}</nowiki>. </div> }}
The <div>
tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.
Internally this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way we make meta-templates since wikimarkup has several drawbacks. For instance it makes it harder to use parser functions and some special characters in parameters.
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.