Actions

Template

Difference between revisions of "ArticleNote"

From Sonic Retro

m
m
Line 2: Line 2:
 
<div style="text-align:{{ #if: {{{align|}}} | {{{align}}} | center }}">
 
<div style="text-align:{{ #if: {{{align|}}} | {{{align}}} | center }}">
 
<div class="toc" style="text-align:left;display:inline-block; -moz-box-shadow:0 0 10px rgba(0,0,0,.5);  
 
<div class="toc" style="text-align:left;display:inline-block; -moz-box-shadow:0 0 10px rgba(0,0,0,.5);  
-webkit-box-shadow:0 0 10px rgba(0,0,0,.5); box-shadow:0 0 10px rgba(0,0,0,.5);overflow:hidden">
+
-webkit-box-shadow:0 0 10px rgba(0,0,0,.5); box-shadow:0 0 10px rgba(0,0,0,.5);overflow:hidden;{{ #if: {{{bgcolor|}}} | background:{{{bgcolor}}} | }}">
 
{{ #if: {{{image|}}} | <div style="position:relative;left:{{ #if: {{{leftposition|}}} | {{{leftposition}}} | -10px }};top:{{ #if: {{{topposition|}}} | {{{topposition}}} | -17px }};height:15px;
 
{{ #if: {{{image|}}} | <div style="position:relative;left:{{ #if: {{{leftposition|}}} | {{{leftposition}}} | -10px }};top:{{ #if: {{{topposition|}}} | {{{topposition}}} | -17px }};height:15px;
 
float:left">[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]]</div> | }}
 
float:left">[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]]</div> | }}
<div style="float:left">{{{text}}}</div>
+
<div style="float:left;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}">{{{text}}}</div>
 
</div></div>
 
</div></div>
 
| <!-- else normal version -->
 
| <!-- else normal version -->

Revision as of 00:11, 1 June 2010

This template is for transclusion in cleanup templates and other similar site-wide templates.

Usage

{{ArticleNote
|image=
|text=
|imagewidth=
|align=
|mini=
|topposition=
|leftposition=
}}

Set mini to yes/no for a minified version. topposition (default: -17px) and leftposition (default: -10px) are optional values used to position the icon in the minified version.