(Die Seite wurde neu angelegt: „</noinclude>{{#ifeq:{{{size}}}|small|<div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{Metabox/BG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if:{{{width|}}}|{{{width}}}%|40%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|45}}}px; margin-bottom: 1px;">{{#if:{{{image|}}}|<div style="float: left; width: {{#expr: {{{imagesize|45}}} + 5}}px; margin-left: 3px; posi…“) |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
{{#ifeq:{{{size}}}|small|<div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{Metabox/BG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; color: #3a3a3a; width: {{#if:{{{width|}}}|{{{width}}}%|40%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|45}}}px; margin-bottom: 1px; --theme-link-color: #002bb8; --theme-link-color--hover: #001352;">{{#if:{{{image|}}}|<div style="float: left; width: {{#expr: {{{imagesize|45}}} + 5}}px; margin-left: 3px; position: absolute;">[[File:{{{image}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|45px}}]]</div>|}}<div style="background: #{{#if:{{{headercolor|}}}|{{{headercolor}}}|{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{Metabox/Header|{{{type}}} }} }} }}; width: auto; margin: 3px;{{#if:{{{image|}}}| padding-left:{{#expr: {{{imagesize|45}}} + 5}}px;| padding-left: 5px;}} font-side: 95%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: {{{headline|}}}|{{{headline}}}| }}</div><div style="padding-bottom: 3px; {{#if:{{{image|}}}|margin-left: {{#expr: {{{imagesize|45}}} + 5}}px;|margin-left: 5px;}} margin-right: 5px; font-size: 90%;">{{{text}}}</div></div>{{clrl}}</div> | |||
|<center><div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{Metabox/BG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; | |<center><div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{Metabox/BG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; color: #3a3a3a; width: {{#if: {{{width|}}}|{{{width}}}%|85%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|60}}}px; margin-bottom: 1px; --theme-link-color: #002bb8; --theme-link-color--hover: #001352;">{{#if:{{{image|}}}|<div style="float: left; width: {{#expr: {{{imagesize|60}}} + 5}}px; margin-left: 5px; position: absolute;">[[File:{{{image}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|60px}}]]</div>|}}<div style="background: #{{#if:{{{headercolor|}}}|{{{headercolor}}}|{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{Metabox/Header|{{{type}}} }} }} }}; width: auto; margin: 5px;{{#if:{{{image|}}}| padding-left:{{#expr: {{{imagesize|60}}} + 5}}px;| padding-left: 5px;}} font-side: 110%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: {{{headline|}}}|{{{headline}}}| }}</div><div style="padding-bottom: 5px;{{#if:{{{image|}}}|margin-left: {{#expr: {{{imagesize|60}}} + 10}}px;|margin-left: 5px;}} margin-right: 5px;">{{{text}}}</div></div>{{clrl}}</div></center>}}<includeonly>{{#if:{{{cat|}}}|{{#ifeq:{{NAMESPACE}}| | [[Category:{{{cat}}}|{{#if:{{{catsort|}}}|{{{catsort}}}|{{{PAGENAME}}}}}]]|}}|}}{{#if:{{{nocat|}}} | | {{#ifeq:{{NAMESPACE}}|Template|[[Category:Templates using Metabox|{{PAGENAME}}]]|}}}}</includeonly> | ||
<noinclude> | |||
{{Dokumentation}} | {{Dokumentation}} | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 30. Oktober 2024, 18:34 Uhr
Metabox is so named because it is intended to be the foundation for all message box templates on The Sims Wiki. This template is being designed as the direct successor template to {{Parthenon}}. The primary goal of this project is to create a versatile message box that keeps certain 'types' of message boxes (e.g. administrative notices, featured page headers, or information boxes) organized by color, while offering advanced customization to able users.
- Main parameters
text
- This is the main text of the template itself. This is the only absolutely mandatory parameter.
headline
- This parameter adds text to the header bar. This parameter is optional, but the header bar will remain even if no parameter is specified.
image
- This parameter adds an image to the left side of the template. The image is resized to 60px automatically for the standard template, and 45px for small-sized templates. The File: prefix and brackets should not be included
- This automatic resize can be overridden by adding the desired size in the
imagesize
parameter (raw number only, no 'px' needed) - This image can be set to link to a page by filling the
imagelink
parameter
- This automatic resize can be overridden by adding the desired size in the
type
- This parameter sets the color of the template's background and header. There are six general types that can be applied:
type=admin
produces a green metabox. This type is intended to be used for "official" notices or administrative messages.type=info
produces a blue metabox. This type is meant to be used for general information or notification messages.type=notice
produces a red metabox. This type is reserved for "urgent" notices or warning header messages.type=feature
produces a yellow metabox. This type of box is for use by the various featured templates, such as {{Feat art}}.type=delete
produces a violet metabox. This color is reserved for templates dealing with page merges, deletes, moves, etc.type=cleanup
produces an orange metabox. This color is reserved for cleanup templates, templates dealing with style issues, etc.
If the type
parameter isn't specified or isn't specified correctly, the template will display with generic colors. The template can still be used in this way, but it's recommended to choose a type to display the box as.
Custom colors can be chosen, by specifying a color in the backgroundcolor
and headercolor
parameters; colors need to be in "hex triplet" format (e.g., #FFFFFF for white), but should exclude the number sign/hashtag.
size
- If this parameter is set so that size=small
, the template will display as a smaller, left-aligned box rather than the large, center-aligned standard template.
nocat
- Use this parameter with any input for templates that are normally transcluded to other templates, such as {{Experimental}} or {{Under construction}}, so that the templates that are using it will not be categorized as Category:Templates using Metabox.
- Note on parameters
If Metabox is used as the foundation for a template, individual editors can be allowed to control the way the template appears on individual pages, so long as the parameter is carried over to templates based off this template. For example, {{Cleanup}} has an optional parameter, size
, which is carried over from Metabox, since the Cleanup template is set up to allow the specification of a size parameter.
- Syntax
{{Metabox
|type =
|image =
|size =
|headline =
|text =
|nocat =
}}
- Color examples
- Attribution and Credit
Diese Vorlage wurde komplett geklaut von The Sims Wiki die Versionsgeschichte ist unter abrufbar.
This template is licensed under the Creative Commons Attribution-ShareAlike 3.0 (CC-by-SA) license. Please review the CC-by-SA license text for more information.- Die obige Dokumentation wurde aus der Seite Vorlage:Metabox/Doku eingefügt. (bearbeiten | Versionsgeschichte) Die Kategorien für diese Vorlage sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.
- Liste der Unterseiten