×
Einen neuen Artikel erstellen
Schreibe den Seitennamen hierhin:
Wir haben derzeit 9.355 Artikel auf VAULTPEDIA. Gib deinen Artikelnamen oberhalb von oder klicke auf einen der unten stehenden Titel und beginne zu schreiben! ein



    VAULTPEDIA
    9.355Artikel

    Benutzer:Alessio79/Vorlage:Infobox/doc

    Version vom 10. Oktober 2011, 12:23 Uhr von Alessio79 (Diskussion | Beiträge) (Dokumentation für Vorlagenprototyp)
    (Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

    VAULTPEDIA.DE ist seit dem 02.02.2026 öffentlich zugänglich.

    Da es sich um ein frisch migriertes Wiki handelt, können vereinzelt noch Datenbank-, Seiten- oder Designfehler auftreten.

    Tritt unserem Discord bei, um Fehler zu melden oder direkt mit dem Team in Kontakt zu treten.

    Work in progress
    This template is a work in progress and should not be used in articles (yet). Description:
    Datei:Mbox template.png
    • New meta-template for creating infoboxes.
    • Adds more image options, automatic title parsing, collapsible sections within the infobox, support for multiple columns within rows and more options for the requirements of specific rows.
    • New style for better readability and contrast.

    Benutzung

    To be written.
    • Group, image and content/label rows are mutually exclusive, i.e. if you specify group1, image1 and label1-1, only group1 will be shown. Order of priority: group > image > label > content.
    • Content/label cells are numbered from left to right within a row, i.e. content1-2 appears to the right of label1-1 etc.
    • For the layout, it matters which cells are specified in a row. E.g. imagine one row with all 4 cells followed by one with only 2. If the second row's specified cells are 2-1 and 2-4, 2-1 will have a colspan of 3 and 2-4 a colspan of 1. If the second row's specified cells are 2-1 and 2-3, 2-1 will have a colspan of 2 and 2-4 a colspan of 2 etc.
    • Group mechanic ("what belongs to which group"):
      • Unlike with navboxes, groups are fluent (i.e. a certain row does not always belong to the same group). Specifying a group row creates a new group, and all rows below it belong to that group until another group field is specified. For example, if you set group1, content2-1, image3, group4 and label5-1, row 2 & row 3 belong to group 1 and row 5 belongs to group 4.
      • All rows which appear above the first group belong to group 0 (hence the parameters which start at 0 rather than 1). For example, if you set image1, content2-1, image3, group4 and label5-1, rows 1-3 belong to group 0 and row 5 belongs to group 4.

    Parameter

    Optional
    cond1 bis cond40
    Condition for corresponding row. If specified and empty, row is not shown. If specified and non-empty, row is shown. If not specified, apply default behaviour according to row type:
    • Group rows: Only displayed if it has content and there are rows shown (not only specified) in the group.
    • Image rows: Only displayed if an image is specified.
    • Content/label rows: If there are content cells, only shown if one of the content cells has data. If there are only label cells, only shown if one of the label cells has data.
    Special mechanic: If all relevant cells (i.e. the ones which usually would have to be filled in) are set to "@hide", the row is hidden regardless of other conditions. E.g. setting all content cells in a row to "@hide" results in the row not being displayed. Basically equivalent of old infobox' "empty" mechanic.
    Optional
    colwidths
    Column widths in %, separated by commas. Only applied to groups where the number of specified widths matches number of columns in group.
    Optional
    colwidths0 bis colwidths40
    Column widths in %, separated by commas. Only applied if number of specified widths matches number of columns in group, otherwise falls back to colwidths (if it has a matching number of widths) or default widths (in that order). Overrides general colwidths parameter.
    Optional
    content1-1, content1-2, content1-3, content1-4 bis content40-1, content40-2, content40-3, content40-4
    Content of corresponding cell.
    Optional
    content1-1 tooltip bis content40-4 tooltip
    Tooltip for corresponding cell.
    Optional
    footer
    Text of the footer, i.e. a row at the very bottom of the infobox.
    Optional
    games
    Game abbreviation(s); for accepted abbreviations please see {{abb}}. Multiple abbreviations can be specified if separated by comma (,). These are used to create dynamic links for supertitle. For usage details, please see supertitle link below.
    Optional
    group1 bis group40
    Content of corresponding cell. Specifying creates a new group.
    Optional
    icon
    Filename of icon (without "File:").
    Optional
    (Standard: "0px")
    icon offset
    Offset for icon in px; capped at icon size-specified height. "@outside" places icon completely outside of image area.
    Optional
    (Standard: "30x30px")
    icon size
    Size of icon; capped at 40x40px. If no height specified, falls back to default icon height.
    Optional
    image1 bis image40
    Filename of image to be displayed in corresponding cell (without "File:").
    Optional
    (Standard: "{{PAGENAME}} #.jpg")
    image1 default bis image40 default
    Default file name for upload button in corresponding cell. "#" in the default setting means number of row.
    Optional
    image1 desc bis image40 desc
    Description for the corresponding image, displayed below the image.
    Optional
    image1 size bis image40 size
    Size for corresponding image, capped at width. Setting to "@original" means image is not resized; these images do not factor into the "is infobox width exceeded" checks.
    Optional
    label1-1, label1-2, label1-3, label1-4 bis label40-1, label40-2, label40-3, label40-4
    Content of corresponding cell.
    Optional
    label1-1 tooltip bis label40-4 tooltip
    Tooltip for corresponding cell.
    Optional
    (Standard: "{{PAGENAME}}.jpg")
    main image default
    Default file name for upload button.
    Optional
    main image desc
    Description for the main image area, displayed below the images.
    Optional
    main image1 bis main image5
    Filename(s) of main image(s) (without "File:").
    Optional
    (Standard: "size main images/number of images")
    main image1 size bis main image5 size
    Size for corresponding main image, capped at width. If combined width exceeds infobox width, images which are bigger than default are reduced to default width. Setting to "@original" means image is not resized; these images do not factor into the "is infobox width exceeded" checks.
    Optional
    (Standard: "infobox")
    mode
    This parameter allows to specify a display mode for the infobox.

    Available choices:

    • infobox: Default mode.
    • infocard: Visual change to the title row, number of groups limited to 15, limit to possible image height (unfinished).
    Optional
    options
    This parameter allows to specify options which apply to the infobox itself or all groups inside. Multiple options can be specified at once; simply separate them with commas (,).

    Verfügbare Auswahl:

    • collapsedgroups: This makes all groups within the infobox collapsible and collapsed on page load. Can be overriden for individual groups by setting the group-specific option parameter (see below) to "uncollapsed".
    • collapsiblegroups: This makes all groups within the infobox collapsible and uncollapsed on page load. Can be overriden for individual groups by setting the group-specific option parameter (see below) to "nocollapse".
    • imageoptional: If set, having no main image specified will not result in an "upload image" button being displayed.
    Optional
    options0 bis options40
    This parameter allows to specify options which apply to the corresponding group of rows. For example, options4 applies to all cells which belong to group4. Multiple options can be specified at once; simply separate them with commas (,). Group-specific options override options set for the whole infobox.

    Verfügbare Auswahl:

    • collapsible, nocollapse, uncollapsed: These options control the collapse behaviour of the group. They are mutually exclusive.
      • collapsed means the group is collapsible and collapsed on page load.
      • collapsible/uncollapsed mean the group is collapsible and uncollapsed on page load.
      • nocollapse means the group is not collapsible. This is the default setting.
    Optional
    (Standard: "(width-12)x(width-12)px")
    size images
    Default size for images in "image" rows. Cannot exceed infobox width; if no height specified, falls back to default height.
    Optional
    (Standard: "(width-12)x(width-12)px")
    size main images
    Default size of "main image" area, i.e. the area which is used as a basis for default width calculations (if there are 3 images this value is divided by 3 etc). Cannot exceed infobox width; if no height specified, falls back to default height.
    Optional
    sort by
    Sets {{DEFAULTSORT:}} for the page.
    Optional
    subtitle
    Subtitle.
    Optional
    supertitle
    Supertitle (old infobox: "titlehead").
    Optional
    supertitle link
    Supertitle link (old infobox: "titlehead link").
    Optional
    (Standard: "{{Pagename nd}}")
    title
    Infobox title. If not specified, displays {{Pagename nd}}.
    Optional
    (Standard: "250px")
    width
    Width of infobox.

    Styleparameter

    Alle style options should be used sparingly as they can lead to visual inconsistencies. For examples of useful style, please see the section for style below.

    Optional
    content1-1 style bis content40-4 style
    Specifies CSS styles to apply to the corresponding content cell. For example, content10-3 style applies to the cell of content10-3 etc.
    Optional
    footer style
    Specifies CSS styles to apply to the footer cell.
    Optional
    group1 style bis group40 style
    Specifies CSS styles to apply to the corresponding group cell. For example, group6 style applies to the cell of group6 etc.
    Optional
    icon style
    Specifies CSS styles to apply to the icon.
    Optional
    image1 style bis image40 style
    Specifies CSS styles to apply to the cell with the corresponding image. For example, image9 style applies to the cell of image9 etc.
    Optional
    label1-1 style bis label40-4 style
    Specifies CSS styles to apply to the corresponding label cell. For example, label20-4 style applies to the cell of label20-4 etc.
    Optional
    main image1 style bis main image5 style
    Specifies CSS styles to apply to the corresponding main image. For example, main image3 style applies to main image3 etc.
    Optional
    style
    Specifies CSS styles to apply to every cell in the whole infobox except for the title cell.

    Some examples of useful styles:

    • Changing background color: background-color: #123456; (accepts HTML color names or RGB hex triplets)
    • Changing (horizontal) text-alignment: text-align: center; (accepts "center", "justify", "left", "right")
    • Changing vertical text-alignment: vertical-align: middle; (accepts "bottom", "middle", "top")
    Optional
    style0 bis style40
    Specifies CSS styles to apply to all cells within the corresponding group of cells. For example, style3 applies to all cells which belong to group3 etc.
    Optional
    style contents, style groups, style images, style labels, style main images
    Specifies CSS styles to apply to all cells of a certain type. For example, style contents applies to all content cells and so forth.
    Optional
    style contents0 bis style contents40, style images0 bis style images40, style labels0 bis style labels40
    Specifies CSS styles to apply to a certain type of cells within the corresponding group of cells. For example, style contents5 applies to all content cells which belong to group5 etc.
    Optional
    title style
    Specifies CSS styles to apply to the title cell.

    Beispiele

    To be written.

    Technisches

    • Diese Vorlage ist ziemlich kompliziert. Bearbeiten Sie sie, erfordert es ein gutes Verständnis der Parser-Funktionen und Wiki-Syntax.
    • Hilfsvorlagen:
    • Extension used:
    • Sandbox:
    • Standardisierte Dokumentation für Vorlagen basieren auf dieser: