Vorlage:Infobox/Inline: Unterschied zwischen den Versionen

Aus OMSI-Tools
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(17 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude><languages/></noinclude><includeonly>
<templatestyles src="Vorlage:Infobox/styles.css"/>
<templatestyles src="Vorlage:Infobox/styles.css"/>
 
<div class="infobox infobox-inline" style="{{#if:{{{GLOWCOLOR|}}}|box-shadow: 0px 0px 5px {{{GLOWCOLOR}}};|}}"><table><tr><td><p class="infobox-inline-icon">
{{#if:{{{GLOW|}}}|
<div class="infobox infobox-inline glow"><table><tr><td><p class="infobox-inline-icon">
{{#switch: {{{ICON}}}
| info = [[Datei:IconInfo.svg|30px|link=]]
| warning = [[Datei:IconAttention.svg|30px|link=]]
}}
</p></td><td>{{{MESSAGE}}}</td></tr></table></div>
|
<div class="infobox infobox-inline"><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 25: 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
},
},
"GLOW": {
"GLOWCOLOR": {
"label": "Glow",
"label": "Leuchtfarbe",
"description": "Adds a blur effect to the border.",
"description": "Fügt einen Leuchteffekt in der angegebenen Farbe hinzu (alle CSS-Farbnamen möglich)",
"type": "boolean",
"type": "line",
"default": "false"
"suggested": true
}
}
},
},
"description": "International template - Displays an information or warning message.",
"description": "Zeigt eine Information oder Warnung an",
"format": "block",
"format": "inline",
"paramOrder": [
"paramOrder": [
"ICON",
"ICON",
"MESSAGE",
"MESSAGE",
"GLOW"
"GLOWCOLOR"
]
]
}
}
Zeile 55: Zeile 66:
  |ICON=
  |ICON=
  |MESSAGE=
  |MESSAGE=
  |GLOW=
  |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=
}}