Skabelon:Image frame/doc
![]() | Dette er dokumentationsundersiden til Skabelon:Image frame. Denne side indeholder information om brug, kategorier samt andet indhold, som ikke er en del af den oprindelige skabelonside. |
Denne skabelon laver en billedramme svarende til den ramme som thumbnail-billeder har.
Eksempler
[rediger kildetekst]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}}
|
|
{{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}}
|
|
{{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 }}}}
|
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 (
).
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.
Parameter | Beskrivelse | Type | Status | |
---|---|---|---|---|
Content | content | Content of the main section (generally images). | Indhold | påkrævet |
Width | width | 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).
| Tal | foreslået |
Alignment | align | "left" and "right" float the image to that side. "center" centres the image, and "none" left-aligns it without floating.
| Streng | valgfri |
Caption position | pos | Where to put the caption. Valid values: top, bottom.
| Streng | valgfri |
Inner frame style | innerstyle | Plain CSS to apply to the inner frame. Use with care.
| Streng | valgfri |
Link | link | 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). | Sidenavn | valgfri |
Alternative link text | link_text | Alternative text used for the link for the "Enlarge" link in the caption, usually displayed as tooltip. | Streng | valgfri |
Link override | linkoverride | Completely replaces the 'info' link. | Linje | valgfri |
Caption | caption | ingen beskrivelse | Indhold | valgfri |
Border | border | Border of the main section (generally images).
| Indhold | valgfri |
Mode | mode | Display mode of the main section, "scrollable" will make the content scrolling if the content is longer than viewport. | Streng | valgfri |
Maximum width | max-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.
| Tal | foreslået |
Direction | dir | 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. | Streng | valgfri |
Style | style | Plain css to apply to the outer frame | Indhold | valgfri |
Se også
[rediger kildetekst]