Share to:

Skabelon:Image frame/dok

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

Eksempler

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

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

Se også


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya