Vorlage:Randnotiz: Unterschied zwischen den Versionen

Aus FHEMWiki
K (cat correct)
K (Problem mit zusätzlich generierter Leerzeile gelöst; class="Vorlage_Randnotiz" entfernt - hatte keinen Zweck; class="thumb tright" (MediaWiki intern) hinzugefügt, die übernehmen die Positionierung rechts statt position und float von früher)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude>
<onlyinclude><div class="thumb tright" style="width:40%;font-size:100%;padding:1em;background-color:#{{#switch: {{{RNTyp}}}
<div id="Vorlage_Randnotiz">
| g | Info = E0F8E0
{| cellspacing="5" cellpadding="5" style="width:40%;font-size:100%; background-color:#{{#switch: {{{RNTyp}}}                     <!-- Hintergrundfarbe
| y | Warn = F2F5A9
-->| g | Info = E0F8E0         <!--
| r | Fehl = F6CEE3
-->| y | Warn = F2F5A9         <!--
| #default = E0F8E0}};border:3px solid #{{#switch:{{{RNTyp}}}
-->| r | Fehl = F6CEE3         <!--
| g | Info = 008000
-->| #default = E0F8E0}};border:3px solid #{{#switch: <!--
| y | Warn = 868A08
-->{{{RNTyp}}}                 <!-- Rahmenfarbe
| r | Fehl = FF0000
-->| g | Info = 008000         <!--
| #default = 008000}};">[[File:{{#switch: {{{RNTyp}}}
-->| y | Warn = 868A08         <!--
| g | Info = Info_green.png
-->| r | Fehl = FF0000         <!--
| y | Warn = Emblem-question-yellow.svg
-->| #default = 008000}}; position:relative; float:right; {{{style|{{{1|}}}}}}"
| r | Fehl = X mark.svg
| [[Datei:{{#switch:                         <!--
| #default = Info_green.png}}|20px]]{{{RNText}}}</div>
-->{{{RNTyp}}}                               <!-- Bild / Icon
-->| g | Info = Info_green.png               <!--
-->| y | Warn = Emblem-question-yellow.svg   <!--
-->| r | Fehl = X mark.svg                   <!--
-->| #default = Info_green.png}}|20px]]       <!--
--> {{{RNText}}}
|}
</div>
</onlyinclude>
</onlyinclude>
<!--
<!--

Aktuelle Version vom 1. Dezember 2021, 16:14 Uhr

Info green.png{{{RNText}}}


Dokumentation für diese Vorlage

Diese Vorlage fügt einen rechtsbündigen, 40% der Seitenbreite einnehmenden Rahmen mit dem angegebenen Text ein. Rahmen- und Hintergrundfarbe sind wählbar und bestimmen das verwendete "Info-Icon" mit. Syntax für die Verwendung ist:

{{Randnotiz|RNTyp=Info|RNText=Text text text ...}}

Unterstützte Werte für RNTyp:

  • Info (oder g): grüne Box mit Info-Icon
  • Warn (oder y): gelbe Box mit Fragezeichen
  • Fehl (oder r): rote Box mit Warnschild

Ist ein Hinweistext in Seitenbreite gewünscht, kann dafür die Vorlage Hinweis verwendet werden.

Beispiele

X mark.svgRote Box mit rotem Icon
{{Randnotiz|RNTyp=Fehl|RNText=Rote Box mit rotem Icon}}


Emblem-question-yellow.svgGelbe ListenBox mit gelbem Icon und
  • text
  1. text
... Verwendung von Aufzählungszeichen!
{{Randnotiz|RNTyp=y|RNText=Gelbe ListenBox mit gelbem Icon und
* text
# text 
... Verwendung von Aufzählungszeichen!
}}


Info green.pngGrüne (Default) Box mit Info-Icon
{{Randnotiz|RNText=Grüne Box mit Info-Icon}}