Spring til indhold

Skabelon:Image frame/doc

Fra Wikipedia, den frie encyklopædi

Denne skabelon laver en billedramme svarende til den ramme som thumbnail-billeder har.

Kode Resultat
{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]] |caption=Eksempel med to billeder i billedrammen|link=Hello world|align=center}}
Eksempel med to billeder i billedrammen
{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]] |caption=Eksempel med to billeder i billedrammen|link=Hello world|align=center|pos=top}}
Eksempel med to billeder i billedrammen
{{Image frame|caption={{magnify icon|link=File:WW2-Holocaust-Europe.png}} Koncentratonslejre i det nazi-besatte Europa.<br>Auschwitz er markeret med en rød cirkel.|align=left |content={{Superimpose | base = WW2-Holocaust-Europe.png | base_width = 300px | base_alt = Concentration-camp network in Nazi-occupied Europe | base_caption = Concentration-camp network in Nazi-occupied Europe | float = Red circle thick.svg | float_width = 20px | x = 171 | y = 120 }}}}
Concentration-camp network in Nazi-occupied Europe
Koncentratonslejre i det nazi-besatte Europa.
Auschwitz er markeret med en rød cirkel.

Parameteren |link= vil lave et link fra et informationsikon () som vist i de 2 første eksempler herover. Hvis der kun er et enkelt billede som man vil linke til, kan man i stedet bruge skabelonen {{magnify icon}} som vist i eksemplet med {{Superimpose}} herover for at få samme forstørrelsesikon som i normale thumbnail-billedrammer ().

Et galleri i en billedramme

Eksemplet med galleriet er lavet med koden:

{{image frame|align=left|border=no|caption=Et [[Hjælp:Galleri|galleri]] i en billedramme|content=
<gallery mode="packed">
Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg
Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg
Thurston, the famous magician - East Indian Rope Trick.jpg
Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg
</gallery>
}}

Templatedata

[rediger kildetekst]

Denne skabelon laver en billedramme som dem, der omgiver thumbmailbilleder. Skabelon kan bruges til at sætte to eller flere billeder ind i samme ramme, eller sammen med mere komplicerede skabeloner som eksempel Skabelon:Superimpose.

Skabelonparametre

ParameterBeskrivelseTypeStatus
Contentcontent

Content of the main section (generally images).

Indholdpåkrævet
Widthwidth

The width of the image within the frame, in pixels (though do not add "px" to the width e.g., use width=175 and not width=175px).

Standardværdi
Automatic, based on content
Talforeslået
Alignmentalign

"left" and "right" float the image to that side. "center" centres the image, and "none" left-aligns it without floating.

Foreslåede værdier
left center right none
Standardværdi
right
Strengvalgfri
Caption positionpos

Where to put the caption. Valid values: top, bottom.

Standardværdi
bottom
Strengvalgfri
Inner frame styleinnerstyle

Plain CSS to apply to the inner frame. Use with care.

Eksempel
text-align: center;
Strengvalgfri
Linklink

Link for the "Enlarge" link in the caption (in the future, may also be used as the link for the image field inside the frame, though it would probably require an additional height parameter).

Sidenavnvalgfri
Alternative link textlink_text

Alternative text used for the link for the "Enlarge" link in the caption, usually displayed as tooltip.

Strengvalgfri
Link overridelinkoverride

Completely replaces the 'info' link.

Linjevalgfri
Captioncaption

ingen beskrivelse

Indholdvalgfri
Borderborder

Border of the main section (generally images).

Standardværdi
yes
Indholdvalgfri
Modemode

Display mode of the main section, "scrollable" will make the content scrolling if the content is longer than viewport.

Strengvalgfri
Maximum widthmax-width

The maximum width of the image within the frame, in pixels (though do not add "px" to the width e.g., use max-width=350 and not max-width=350px), valid only in scrollable mode.

Standardværdi
100%
Talforeslået
Directiondir

Use the value "rtl" to make the right side of the image the initial visible portion inside the scroll frame, valid only in scrollable mode.

Strengvalgfri
Stylestyle

Plain css to apply to the outer frame

Indholdvalgfri