Vorlage:Callout

Aus Repertorium Saracenorum
Version vom 11. September 2023, 15:54 Uhr von imported>Administrator
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
       == Usage ==
       {{Callout|Some text|callout type}}
       
       To add some text to the Callout template is mandatory. Specifying the callout type is optional though "warning" will be assumed if nothing was specified. Other types are: "success", "error" and "info".
       
This template is a modern alternative to the "Note" template and it can easily be reused on wikis which have Semantic MediaWiki installed.


       == Examples ==
       
       === Default ===
       ; syntax
       {{Callout|Example text.}}
       ; result
Example text.


       === Warning ===
       ; syntax
       {{Callout|Example text.|warning}}
       ; result
Example text.


       === Info ===
       ; syntax
       {{Callout|Example text.|info}}
       ; result
Example text.


       === Success ===
       ; syntax
       {{Callout|Example text.|success}}
       ; result
Example text.


       === Error ===
       ; syntax
       {{Callout|Example text.|error}}
       ; result
Example text.



       <templatedata>
       {
       "params": {
       "1": {
       "label": "Text",
       "type": "content",
       "required": true,
       "aliases": [
       "text"
       ]
       },
       "2": {
       "label": "Typ",
       "type": "string",
       "description": "Bestimmt die Hintergrundfarbe des Callouts. Mögliche Werte: warning, info, success, error.",
       "example": "warning",
       "default": "info",
       "suggested": true,
       "aliases": [
       "type"
       ]
       }
       },
       "paramOrder": [
       "1",
       "2"
       ],
       "format": "block"
       }
       </templatedata>