Submit your Decoding and Disrupting work to the 2026 volume of Transformative Dialogues: Teaching and Learning Journal. Deadline is April, 1st.

Last edited 5 years ago
by Jessica Kirsch

Template:Box Note: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox notification-{{{boxtype}}}">
<templatestyles src="Template:Box_Note/styles.css" />
<div class="infobox notification-{{{boxtype}}}"
{{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}>
<span class="boxlabel">
{{#switch: {{{boxtype}}}
{{#switch: {{{boxtype}}}
  | note = Hinweis:
| note = Hinweis:
  | tip = Tipp:
| tip = Tipp:
  | warning = Achtung:
| warning = Achtung:
  | example = Beispiel:
| example = Beispiel:
  | important = Wichtig!
| important = Wichtig!
  | backgroundbox =  
| backgroundbox =  
  | #default = Hinweis:
| #default = Hinweis:
}}
}}
</span>{{{Note text}}}
</span>{{{Note text}}}
</div>
</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>

Latest revision as of 14:24, 9 September 2020

Hinweis: {{{Note text}}}

Kopiervorlage:

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

Erstellt eine Infobox für Hinweise, Warnungen, Tipps, etc.

Template parameters

ParameterDescriptionTypeStatus
boxtypeboxtype

Mögliche Werte: note, tip, warning, important, example, backgroundbox

Default
note
Example
note
Stringrequired
Note textNote text

no description

Unknownoptional
bgcolorbgcolor

Hintergrundfarbe der Box im Hex-format (z.B. #ececec)

Stringoptional
No categories assignedEdit