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 11: Line 11:
 
</span>{{{Note text}}}
 
</span>{{{Note text}}}
 
</div>
 
</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>
 +
<nowiki>{{#switch: {{{boxtype}}}
 +
  | note = Hinweis:
 +
  | tip = Tipp:
 +
  | warning = Achtung:
 +
  | example = Beispiel:
 +
  | important = Wichtig!
 +
  | backgroundbox =
 +
  | #default = Hinweis:
 +
}}</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">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:44, 9 September 2020

Hinweis: {{{Note text}}}

<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>