Vorlage:Wikibox2: Unterschied zwischen den Versionen

[gesichtete Version][gesichtete Version]
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<center><div style="width: {{#if: {{{Width|}}} | {{{Width}}} | 98% }}; border: 1px solid #97100d; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 0px; margin: 10px auto; margin: 0px; {{#if: {{{NoShaddow|}}} | | box-shadow:2px 2px 5px #000000;}} font-size:1em; line-height:2em;">
+
<noinclude>__NOTOC__{{AV!}}
<div style="height: 30px; background: #5d0505; color:#f0d9a2; border-bottom: 1px solid #97100d; border-top-left-radius: 10px; border-top-right-radius: 10px; width: auto; margin: 0px; font-weight: bold; font-size: 100%; padding: 0 0 0 5px;">{{{Titel}}}</div>
+
== Vorschau ==
 +
{{Wikibox2
 +
<!-- -->
 +
|Titel      = Box
 +
|Width      = 890px
 +
|TitelAlign = left
 +
|Shaddow    =
 +
|Content    =
 +
<big>Hier könnte ihre Werbung stehen!</big>
 +
}}
 +
 
 +
== Verwendung ==
 +
* Die Box kann mit beliebigen Elementen gefüllt werden.
 +
* '''Standard Box für viele Seitenvorlagen'''
 +
 
 +
== Parameter ==
 +
* Titel: String -> <small>Default: Leer</small>
 +
* Width: Zahl in px oder % -> <small>Default: 98%</small>
 +
* TitelAlign: left, right, center -> <small>Default: center</small>
 +
* Shaddow: Ja, Nein -> <small>Default: Ja</small>
 +
* Content: String -> <small>Default: Leer</small>
 +
 
 +
== Vorlage ==
 +
<nowiki>
 +
{{Wikibox2
 +
<!-- Titel der Box -->
 +
|Titel      =
 +
 
 +
<!-- Optional: Breite der Box. Maximum: 890px -->
 +
|Width      =
 +
 
 +
<!-- left, center, right. Default: center -->
 +
|TitelAlign =
 +
 
 +
<!-- Optional: Ja, Nein. Default: Ja -->
 +
|Shaddow    =
 +
 
 +
<!-- Inhalt der Box -->
 +
|Content    =
 +
}}
 +
</nowiki>
 +
[[Kategorie:Vorlagen/Formatvorlagen|{{PAGENAME}}]]
 +
[[Kategorie:Qualität-Vorlagen|{{PAGENAME}}]]
 +
</noinclude><includeonly><center><div style="width: {{#if: {{{Width|}}} | {{{Width}}} | 98% }}; border: 1px solid #97100d; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 0px; margin: 10px auto; margin: 0px; {{#switch: {{{Shaddow}}}
 +
| Nein =
 +
| #default = box-shadow:2px 2px 5px #000000;
 +
}} font-size:1em; line-height:2em;">
 +
<div align="{{#switch: {{{TitelAlign}}}
 +
|left = left
 +
|right = right
 +
|center = center
 +
|#default = center
 +
}}" style="height: 30px; background: #5d0505; color:#f0d9a2; border-bottom: 1px solid #97100d; border-top-left-radius: 10px; border-top-right-radius: 10px; width: auto; margin: 0px; font-weight: bold; font-size: 100%; padding: 0 0 0 10px;">{{{Titel}}}</div>
 
<div style="text-align: justify; padding: 3px 10px;">{{{Content}}}</div>
 
<div style="text-align: justify; padding: 3px 10px;">{{{Content}}}</div>
</div></center>
+
</div></center></includeonly>
<noinclude>
 
[[Kategorie:Vorlagen/Layout|{{PAGENAME}}]]
 
</noinclude>
 

Aktuelle Version vom 17. Juni 2023, 22:56 Uhr

Stopschild.png

Achtung!

Du siehst Dir gerade eine Vorlage an. Diese ist nicht dazu gedacht, um Daten für z.B. für einen Gegenstand einzutragen. Falls Du etwas in dieser Art vor hast, schau doch bitte in die Hilfe unter metin2:Hilfe.

Das Wort hinter subst: entspricht fast immer dem Namen des Typs, zu dem Du eine Seite anlegen willst.

Vorschau

Box
Hier könnte ihre Werbung stehen!

Verwendung

  • Die Box kann mit beliebigen Elementen gefüllt werden.
  • Standard Box für viele Seitenvorlagen

Parameter

  • Titel: String -> Default: Leer
  • Width: Zahl in px oder % -> Default: 98%
  • TitelAlign: left, right, center -> Default: center
  • Shaddow: Ja, Nein -> Default: Ja
  • Content: String -> Default: Leer

Vorlage

{{Wikibox2
<!-- Titel der Box -->
|Titel      = 

<!-- Optional: Breite der Box. Maximum: 890px -->
|Width      = 

<!-- left, center, right. Default: center -->
|TitelAlign = 

<!-- Optional: Ja, Nein. Default: Ja -->
|Shaddow    = 

<!-- Inhalt der Box -->
|Content    = 
}}