doc

From Encyclopedia of Scientonomy
Jump to navigation Jump to search

Template:Mbox Template:Timw


Ziel

Diese Vorlage ist eine Hilfsvorlage für Template:Extension/de. Es nimmt einen Erweiterungstyp als einen Parameter und erstellt den Wikimarkup, der mit diesem Typ verbunden ist. Wenn Sie einen neuen Typ hinzufügen möchten, fügen Sie es bitte zu dieser switch-Anweisung hinzu. Fügen Sie es nicht direkt zur Template:Extension/de hinzu.

Verwendung

{{Extension/TypeSwitch/de|type}}
  • type - a type. For legal values, see documentation for Template:Extension. In additional to the legal values, two special values exist to facilitate the coding of Template:Extension:
    • _demomode_ - suppresses the addition of categories. The type name that should be displayed is passed as the second parameter, e.g. {{Extension/TypeSwitch|_demomode_|tag}}. Template:Extension uses this as its value when the template is in demo mode so that it doesn't add category links to the host page.
    • _missing_ - adds the host page to Category:Extensions with invalid or missing type but does not display a label. Template:Extension uses this as its value when no type parameter was provided.