Template:Manual Box: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>{{(!}} style="margin: 6px 0px 2px 0px; padding: 5px; width: 100%; background-color: var({{#switch: {{{2}}}
{{(!}} style="margin: 6px 0px 2px 0px; padding: 5px; width: 100%; background-color: rgba({{#switch: {{{2}}}
| Attention =--color-box1-t
| Attention = 255,1,1
| Advanced =--color-box2-t
| Advanced = 52,153,103
| Hint = --color-box3-t
| Hint = 1,1,255
| Important = --color-box4-t
| Important = 251,112,0
| Reference = --color-box5-t}}); border-radius: var(--border-radius--medium); border: 2px solid var({{#switch: {{{2}}}
| Reference = 133,9,129}},0.1); ; border-radius: var(--border-radius--medium); border: 2px solid rgba({{#switch: {{{2}}}
| Attention =--color-box1-f
| Attention = 255,1,1
| Advanced = --color-box2-f
| Advanced = 52,153,103
| Hint = --color-box3-f
| Hint = 1,1,255
| Important = --color-box4-f
| Important = 251,112,0
| Reference = --color-box5-f}})"
| Reference = 133,9,129}})"
{{!}} valign="top" style="width: 130px; valign: top; margin: 5px;" {{!}} [[{{#switch: {{{1}}}
{{!}} valign="top" style="width: 130px; valign: top; margin: 5px;" {{!}} [[{{#switch: {{{1}}}
| de = Bild:{{#switch: {{{2}}}
| de = Bild:{{#switch: {{{2}}}
Line 26: Line 25:
  }}]]
  }}]]
{{!}} align-left {{!}} {{{3}}}
{{!}} align-left {{!}} {{{3}}}
{{!)}}</includeonly><noinclude>{{Documentation Language reference}}</noinclude>
{{!)}}</includeonly><noinclude>{{Documentation Language reference}}
 
= Example =
<noinclude>
= Verwendung =
Mit dieser Vorlage werden verschiedene Hinweisboxen erstellt. Verfügbar sind aktuell folgende Kategorien:
* Achtung (<code>Attention</code>)
* Weitere Informationen (<code>Advanced</code>)
* Hinweis (<code>Hint</code>)
* Referenz (<code>Reference</code>)
* Wichtig (<code>Important</code>)
Durch den Sprachparameter <code>de</code> und <code>en</code> sowie den zuvor genannten Kategorien, wo der englische Name auch gleichzeitg der Parameter ist, erfolgt die Umschaltung des Layouts.
 
Die Verwendung erfolgt durch <code><nowiki>{{Manual Box | Sprache | Kategorie | Hinweistext}}</nowiki></code>.
 
= Beispiele =
'''Parameter <code>de</code>, <code>Attention</code> und <code>Hier steht [...]</code>'''
{{Manual Box | de | Attention | Hier steht ein besonders wichtiger Text. Dieser kann auch über mehrere Zeilen sich erstrecken. <br />
Dabei bleibt die Grafik stets links oben ausgerichtet.}}
 
 
'''Parameter <code>de</code>, <code>Important</code> und <code>Das ist [...]</code>'''
{{Manual Box | de | Important | Das ist ein Beispiel für eine Box mit einem wichtigen Hinweis.}}
 
 
'''Parameter <code>en</code>, <code>Advanced</code> und <code>Here you can [...]</code>'''
{{Manual Box | en | Advanced | Here you can read more detailed informations about this topic.}}
 
 
'''Parameter <code>en</code>, <code>Hint</code> und <code>This is [...]</code>'''
'''Parameter <code>en</code>, <code>Hint</code> und <code>This is [...]</code>'''
{{Manual Box | en | Hint | This is a hint.}}
{{Manual Box | en | Hint | This is a hint.}}</noinclude>
{{Documentation Language reference | en}}
</noinclude>

Latest revision as of 17:40, 1 March 2025

Explanation of how to use this template in the German version (in German): Manual Box.

Example

Parameter en, Hint und This is [...]

Important Hint This is a hint.