Mal:Switcher/dok: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
(Ny side: {{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This template is used to create a switchable image with caption, for use in infoboxes. Note that this template does not work in the editing preview. == Parameters == Odd numbered parameters provide the image in wikitext; even numbered parameters provide the captions. == Example == <pre> {{Switcher | 300px | An example | File:Example image not to be use…)
 
m (Én sideversjon ble importert)
 

Siste sideversjon per 22. feb. 2024 kl. 16:32

This template is used to create a switchable image with caption, for use in infoboxes. Note that this template does not work in the editing preview.

Parameters[rediger kilde]

Odd numbered parameters provide the image in wikitext; even numbered parameters provide the captions.

Example[rediger kilde]

{{Switcher
| [[File:Example.png|300px]]
| An example
| [[File:Example image not to be used in article namespace.jpg|300px]]
| A different example
}}

Output:

TemplateData[rediger kilde]

Creates a switchable image with caption for use in infoboxes

[Rediger maldata]

Malparametre

ParameterBeskrivelseTypeStatus
11

Image 1 wikitext

Eksempel
[[File:Example.png|300px]]
ubalansert wikitekstvalgfri
22

Image 1 caption

Eksempel
This is just an example.
Strengvalgfri
33

See {{{1}}} (recursive)

ubalansert wikitekstvalgfri
44

See {{{2}}} (recursive)

Strengvalgfri