Mal:Switcher/dok

Fra Wikisida.no
Sideversjon per 6. mar. 2023 kl. 23:36 av nb>Johshh (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…)
(diff) ← Eldre sideversjon | Nåværende sideversjon (diff) | Nyere sideversjon → (diff)
Hopp til navigering Hopp til søk

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

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

Output:

TemplateData

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