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 1: Line 1:
<div class="infobox notification-{{{boxtype}}}">
+
<span class="p"><</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">"infobox notification-<nowiki>{{{boxtype}}}</nowiki>"</span><span class="p">></span>
{{#switch: {{{boxtype}}}
 
  | note = Hinweis:
 
  | tip = Tipp:
 
  | warning = Achtung:
 
  | example = Beispiel:
 
  | important = Wichtig!
 
  | backgroundbox =
 
  | #default = Hinweis:
 
}}
 
</span>{{{Note text}}}
 
</div>
 
 
 
<span class="p"><</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">"infobox notification-<nowiki>{{{boxtype}}}</nowiki>"</span>
 
<span class="err"><nowiki>{{#</nowiki></span><span class="na">if:</span><span class="err"><nowiki>{{{</nowiki></span><span class="na">bgcolor</span><span class="err"><nowiki>|}}}|</nowiki></span><span class="na">style</span><span class="o">=</span><span class="s">"background:<nowiki>{{{bgcolor}}}</nowiki>"</span><span class="err"><nowiki>|}}</nowiki></span><span class="p">></span>
 
 
  <span class="p"><</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">"boxlabel"</span><span class="p">></span>
 
  <span class="p"><</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">"boxlabel"</span><span class="p">></span>
 
  <nowiki>{{#switch: {{{boxtype}}}
 
  <nowiki>{{#switch: {{{boxtype}}}
Line 26: Line 12:
 
  <span class="p"></</span><span class="nt">span</span><span class="p">></span><nowiki>{{{Note text}}}</nowiki>
 
  <span class="p"></</span><span class="nt">span</span><span class="p">></span><nowiki>{{{Note text}}}</nowiki>
 
  <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>
<span class="p"><</span><span class="nt">noinclude</span><span class="p">></span>
 
Kopiervorlage:
 
<span class="p"><</span><span class="nt">pre</span><span class="p">></span>
 
<nowiki>{{Box_Note|Note text =|bgcolor =}}</nowiki>
 
<span class="p"></</span><span class="nt">pre</span><span class="p">></span>
 
<span class="p"><</span><span class="nt">templatedata</span><span class="p">></span>
 
{
 
"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"
 
]
 
}
 
<span class="p"></</span><span class="nt">templatedata</span><span class="p">></span>
 
<span class="p"></</span><span class="nt">noinclude</span><span class="p">></span>
 

Revision as of 11:46, 9 September 2020

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

<span class="boxlabel">
{{#switch: {{{boxtype}}}
  | note = Hinweis:
  | tip = Tipp:
  | warning = Achtung:
  | example = Beispiel:
  | important = Wichtig!
  | backgroundbox = 
  | #default = Hinweis:
 }}
</span>{{{Note text}}}
</div>