Vorlage:Infobox/Inline: Unterschied zwischen den Versionen

Aus OMSI-Tools
(Die Seite wurde neu angelegt: „<templatestyles src="Template:Infobox/styles.css"/> <div class="infobox infobox-inline"><table><tr><td><p class="infobox-inline-icon"> {{#switch: {{{ICON}}} | info = 30px|link= | warning = 30px|link= }} </p></td><td>{{{MESSAGE}}}</td></tr></table></div> <noinclude> [[Kategorie:Infoboxen{{#translation:}}]] [[Kategorie:Alle Vorlagen{{#translation:}}]] <templatedata> { "params": { "ICON": { "label"…“)
 
Keine Bearbeitungszusammenfassung
 
(23 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<templatestyles src="Template:Infobox/styles.css"/>
<noinclude><languages/></noinclude><includeonly>
 
<templatestyles src="Vorlage:Infobox/styles.css"/>
<div class="infobox infobox-inline"><table><tr><td><p class="infobox-inline-icon">
<div class="infobox infobox-inline" style="{{#if:{{{GLOWCOLOR|}}}|box-shadow: 0px 0px 5px {{{GLOWCOLOR}}};|}}"><table><tr><td><p class="infobox-inline-icon">
{{#switch: {{{ICON}}}
{{#switch: {{{ICON}}}
  | info = [[Datei:IconInfo.svg|30px|link=]]
  | info = [[Datei:IconInfo.svg|30px|link=]]
  | warning = [[Datei:IconAttention.svg|30px|link=]]
  | warning = [[Datei:IconAttention.svg|30px|link=]]
| maintenance = [[Datei:IconMaintenance.svg|30px|link=]]
}}
}}
</p></td><td>{{{MESSAGE}}}</td></tr></table></div>
</p></td><td>{{{MESSAGE}}}</td></tr></table></div>
</includeonly><noinclude>
= Vorschau =
{|
| {{Infobox/Inline | ICON = info | MESSAGE = info }} || || {{Infobox/Inline | ICON = info | MESSAGE = info & blue glow | GLOWCOLOR = blue }}
|-
| || ||
|-
| {{Infobox/Inline | ICON = warning | MESSAGE = warning }} || || {{Infobox/Inline | ICON = warning | MESSAGE = warning & yellow glow | GLOWCOLOR = yellow }}
|-
| || ||
|-
| {{Infobox/Inline | ICON = maintenance | MESSAGE = maintenance }} || || {{Infobox/Inline | ICON = maintenance | MESSAGE = maintenance & red glow | GLOWCOLOR = red }}
|}


<noinclude>
<hr/>
[[Kategorie:Infoboxen{{#translation:}}]]
[[Kategorie:Alle Vorlagen{{#translation:}}]]
<templatedata>
<templatedata>
{
{
Zeile 16: Zeile 28:
"ICON": {
"ICON": {
"label": "Icon",
"label": "Icon",
"description": "Specify icon - possible values: <code>info</code> | <code>warning</code",
"description": "Legt das Icon fest",
"type": "line",
"type": "line",
"required": true
"required": true,
"autovalue": "",
"suggested": true,
"suggestedvalues": [
"info",
"warning",
"maintenance"
]
},
},
"MESSAGE": {
"MESSAGE": {
"label": "Message",
"label": "Nachricht",
"description": "Message which will be shown",
"description": "Anzuzeigende Nachricht",
"type": "content",
"type": "content",
"required": true
"required": true,
"suggested": true
},
"GLOWCOLOR": {
"label": "Leuchtfarbe",
"description": "Fügt einen Leuchteffekt in der angegebenen Farbe hinzu (alle CSS-Farbnamen möglich)",
"type": "line",
"suggested": true
}
}
},
},
"description": "International template - Displays an information or warning message.",
"description": "Zeigt eine Information oder Warnung an",
"format": "block"
"format": "inline",
"paramOrder": [
"ICON",
"MESSAGE",
"GLOWCOLOR"
]
}
}
</templatedata>
</templatedata>
Zeile 35: Zeile 66:
  |ICON=
  |ICON=
  |MESSAGE=
  |MESSAGE=
|GLOWCOLOR=
}}</nowiki>
}}</nowiki>
</noinclude>
</noinclude>

Aktuelle Version vom 7. August 2023, 16:55 Uhr

Vorschau

info

info & blue glow

warning

warning & yellow glow

maintenance

maintenance & red glow

Zeigt eine Information oder Warnung an

[Vorlagendaten bearbeiten]

Vorlagenparameter

Diese Vorlage bevorzugt Inline-Formatierung von Parametern.

ParameterBeschreibungTypStatus
IconICON

Legt das Icon fest

Vorgeschlagene Werte
info warning maintenance
Autowert
Zeileerforderlich
NachrichtMESSAGE

Anzuzeigende Nachricht

Inhalterforderlich
LeuchtfarbeGLOWCOLOR

Fügt einen Leuchteffekt in der angegebenen Farbe hinzu (alle CSS-Farbnamen möglich)

Zeilevorgeschlagen

Template source code:

{{Infobox/Inline
 |ICON=
 |MESSAGE=
 |GLOWCOLOR=
}}