Template:Metabox: Difference between revisions

m
Protected "Template:Metabox" ([Edit=Allow only administrators and content moderators] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite))
sims>K6ka
(This template could use a reminder...)
m (Protected "Template:Metabox" ([Edit=Allow only administrators and content moderators] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite)))
 
(19 intermediate revisions by 5 users not shown)
Line 1:
<noinclude>{{MetaboxEra|PR}}{{tm|{{widely-used|25,000+}}}}
</noinclude>{{#ifeq:{{{size}}}|small|<div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{MetaboxBG|{{{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; position: absolute;">[[File:{{{image}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|45px}}]]</div>|}}<div style="background: #{{#if:{{{headercolor|}}}|{{{headercolor}}}|{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxHeader|{{{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}}}|&nbsp;}}</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>
|type = notice
|<center><div style="overflow: auto;"><div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{MetaboxBG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if: {{{width|}}}|{{{width}}}%|85%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|60}}}px; margin-bottom: 1px;">{{#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}}}|{{MetaboxHeader|{{{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}}}|&nbsp;}}</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>
|image = Icon-warning-48x48.png
|headline = This template is used on thousands of pages
|text = To avoid large-scale disruption and unnecessary server load, consider testing your changes elsewhere, such as by copying the source code of this template and pasting it into your [[w:Help:User page|user space]], or in the [[The Sims Wiki:Sandbox|sandbox]]. Consider proposing your changes on the [[Template talk:Metabox|talk page]] before editing this template.
}}</noinclude>
{|class="roundborder" style="border: 1px solid #{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxBorder|{{{type}}}}}}}; background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{MetaboxBG|{{{type}}}}}}}; -moz-border-radius:5px; border-radius:5px; border-left: 10px solid #{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxBorder|{{{type}}}}}}}; border-right: 1px solid #{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxBorder|{{{type}}}}}}}; {{#ifeq:{{{size}}}|small|font-size: 90%; margin-right:5px; line-height:120%;" width={{#if:{{{width|}}}|"{{{width}}}%"|"45%"}} align="left"|font-size: 100%; line-height:120%;" width={{#if:{{{width|}}}|"{{{width}}}%"|"85%"}} align="center"}}
{{#if:{{{image|}}}|{{!}}width={{#if:{{{imagewidth|}}}|"{{{imagewidth}}}"|"{{#ifeq:{{{size}}}|small|50px|60px}}"}} align="center"{{!}}[[File:{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|40px}}|{{#if:{{{imagelink|}}}|link={{{imagelink}}}|}}]] }}
|'''{{{headline|}}} '''
{{{text}}}
|}<includeonly>{{#if:{{{cat|}}}|{{#ifeq:{{NAMESPACE}}| | [[Category:{{{cat}}}|{{#if:{{{catsort|}}}|{{{catsort}}}|{{{PAGENAME}}}}}]]|}}|}} {{#ifeq:{{NAMESPACE}}|Template|[[Category:Templates using Metabox|{{PAGENAME}}]]|}}</includeonly><noinclude>
{{Documentation}}
[[Category:Meta-templates|{{PAGENAME}}]]