Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Difference between revisions of "Template:Box Note"

(Tag: 2017 source edit)
(Tag: 2017 source edit)
Line 12: Line 12:
 
  <span class="p"></</span><span class="nt">span</span><span class="p">></span>{{{Note text}}}
 
  <span class="p"></</span><span class="nt">span</span><span class="p">></span>{{{Note text}}}
 
  <span class="p"></</span><span class="nt">div</span><span class="p">></span>
 
  <span class="p"></</span><span class="nt">div</span><span class="p">></span>
 +
 +
 +
<div class="infobox notification-{{{boxtype}}}"
 +
{{#if:{{{bgcolor}}}|style="background:{{{bgcolor}}}"|}}>
 +
<span class="boxlabel">
 +
{{#switch: {{{boxtype}}}
 +
  | note = Hinweis:
 +
  | tip = Tipp:
 +
  | warning = Achtung:
 +
  | example = Beispiel:
 +
  | important = Wichtig!
 +
  | backgroundbox =
 +
  | #default = Hinweis:
 +
}}
 +
</span>{{{Note text}}}
 +
</div>
 +
<noinclude>
 +
Kopiervorlage:
 +
<pre>
 +
{{Box_Note|Note text =|bgcolor =}}
 +
</pre>
 +
<templatedata>
 +
{
 +
  "params": {
 +
    "Note text": {},
 +
    "boxtype": {
 +
      "description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox",
 +
      "example": "note",
 +
      "type": "string",
 +
      "default": "note",
 +
      "required": true
 +
    },
 +
    "bgcolor": {
 +
      "label": "bgcolor",
 +
      "description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)",
 +
      "type": "string"
 +
    }
 +
},
 +
"description": "Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.",
 +
"paramOrder": [
 +
  "boxtype",
 +
  "Note text",
 +
  "bgcolor"
 +
]
 +
}
 +
</templatedata>
 +
</noinclude>

Revision as of 12:05, 9 September 2020

<div class="infobox notification-{{{boxtype}}}">

<span class="boxlabel">

Hinweis:

</span>{{{Note text}}}
</div>


Hinweis: {{{Note text}}}

Kopiervorlage:
{{Box_Note|Note text =|bgcolor =}}

<templatedata>

{
 "params": {
   "Note text": {},
   "boxtype": {
     "description": "Mögliche Werte: note, tip, warning, important, example, backgroundbox",
     "example": "note",
     "type": "string",
     "default": "note",
     "required": true
   },
   "bgcolor": {
     "label": "bgcolor",
     "description": "Hintergrundfarbe der Box im Hex-format (z.B. #ececec)",
     "type": "string"
   }

}, "description": "Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.", "paramOrder": [

 "boxtype",
 "Note text",
 "bgcolor"

] } </templatedata>