Template:Hinweis: Difference between revisions

From Infektiopedia
imported>Maximilian.schons@uk-koeln.de
No edit summary
imported>Maximilian.schons@uk-koeln.de
No edit summary
Line 3: Line 3:
<span class="boxlabel">
<span class="boxlabel">
{{#switch: {{{boxtype}}}
{{#switch: {{{boxtype}}}
  | note = Note:
  | note = Hinweis:
  | tip = Tip:
  | tip = Tipp:
  | warning = Warning:
  | warning = Warnung:
  | example = Example:
  | example = Beispiel:
  | important = Important!
  | important = Wichtig!
  | backgroundbox =  
  | backgroundbox =  
  | #default = Note:
  | default = Hinweis:
}}
}}
</span>{{{Note text}}}
</span>{{{text}}}
</div>
</div>


Line 25: Line 25:
"required": true
"required": true
},
},
"Note text": {}
"text": {}
},
},
"description": "To add standard info boxes such as notes or warnings to a page"
"description": "To add standard info boxes such as notes or warnings to a page"

Revision as of 14:34, 7 June 2021

{{{text}}}


<templatedata> { "params": { "boxtype": { "description": "Possible values: note, tip, warning,example, important, backgroundbox", "example": "note", "type": "string", "default": "note", "required": true }, "text": {} }, "description": "To add standard info boxes such as notes or warnings to a page" } </templatedata>