|
|
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| {{Documentation subpage}}
| |
|
| |
|
| == Purpose ==
| |
|
| |
| This template provides a simple Wikipedia‑style infobox.
| |
| All parameters are optional.
| |
| If an image filename is supplied, the image is shown directly below the title; otherwise, only the title and the populated fields are shown.
| |
|
| |
| == Parameters ==
| |
|
| |
| ; title
| |
| : Optional infobox title.
| |
| Defaults to the article title ({{PAGENAME}}) if omitted.
| |
|
| |
| ; image
| |
| : Optional image filename (without the <code>File:</code> prefix), e.g. <code>Example.svg</code>.
| |
| If omitted, the image row is not shown.
| |
|
| |
| ; image_size
| |
| : Optional image size, e.g. <code>250px</code>.
| |
| Defaults to <code>250px</code>.
| |
|
| |
| ; image_alt
| |
| : Optional alternative text for screen readers.
| |
|
| |
| ; caption
| |
| : Optional text shown below the image.
| |
|
| |
| ; label1 .. label5
| |
| : Optional label text for up to five rows, shown in the left column.
| |
|
| |
| ; data1 .. data5
| |
| : Optional data text corresponding to each label, shown in the right column.
| |
|
| |
| == Usage ==
| |
|
| |
| Place the infobox at the top of an article and fill only the fields you need.
| |
| Example:
| |
|
| |
| <syntaxhighlight lang="wikitext">
| |
| {{Infobox_generic
| |
| | title = Example topic
| |
| | image = Example-image.svg
| |
| | image_size= 200px
| |
| | image_alt = Schematic of the example topic
| |
| | caption = Illustration of the example topic
| |
|
| |
| | label1 = Field one
| |
| | data1 = Value one
| |
|
| |
| | label2 = Field two
| |
| | data2 = Value two
| |
| }}
| |
| </syntaxhighlight>
| |
|
| |
| You can omit any parameters you do not need; rows for which <code>labelN</code> is blank are not shown.
| |
| If <code>image</code> is omitted, the image row and caption are skipped and only the title and data rows remain.
| |