Actions

Template

Difference between revisions of "ArticleNote"

From Sonic Retro

m (Reverted edits by PicklePower (talk) to last revision by Shobiz)
(Undo revision 160487 by PicklePower (talk))
Line 1: Line 1:
 
<includeonly>{{#if:{{{mini|}}} |
 
<includeonly>{{#if:{{{mini|}}} |
<div style="text-align:{{ #if: {{{align|}}} | {{{align}}} | center }}">
+
<div style="{{ #if: {{{inline|}}} |display:block;float:left;| }}{{ #ifeq: {{{align|}}}|center|margin:0 auto|float:{{{align}}} }}">
<div class="toc" style="text-align:left;display:inline-block; -moz-box-shadow:0 0 10px rgba(0,0,0,.5);  
+
<div class="toc shadow posrel" style="{{ #if: {{{inline|}}} ||margin:0 auto;display:table;}}text-align:left;
-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}}} | }}">
+
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;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}">{{{text}}}</div>
 
<div style="float:left;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}">{{{text}}}</div>
</div></div>
+
</div></div>{{ #if: {{{inline|}}} ||{{clear}} }}
 
| <!-- else normal version -->
 
| <!-- else normal version -->
{{{!}}class="toc" width="{{ #if: {{{width|}}} | {{{width}}} | 50% }}" style="margin:0 auto;-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);{{ #if: {{{bgcolor|}}} | background:{{{bgcolor}}} | }}"
+
{{{!}}class="toc shadow" width="{{ #if: {{{width|}}} | {{{width}}} | 50% }}" style="margin:0 auto;{{ #if: {{{bgcolor|}}} | background:{{{bgcolor}}} | }}"
 
{{!}}-
 
{{!}}-
 
{{ #if: {{{image|}}} | {{!}}width="{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}"{{!}}[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]] | }}
 
{{ #if: {{{image|}}} | {{!}}width="{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}"{{!}}[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]] | }}
{{!}}style="padding:0 0 0 5px;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}"{{!}}{{{text}}}
+
{{!}}style="padding:0 0 0 5px;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}"{{!}}<p style="margin-bottom:.4em">{{{text}}}</p>
 
{{!}}}
 
{{!}}}
}}</includeonly><noinclude>
+
}}{{ #if: {{{inline|}}} ||{{clear}} }}</includeonly><noinclude>
 
This template is for transclusion in [[:Category:Cleanup Templates|cleanup templates]] and other similar site-wide templates.
 
This template is for transclusion in [[:Category:Cleanup Templates|cleanup templates]] and other similar site-wide templates.
  
Line 27: Line 27:
 
|topposition=
 
|topposition=
 
|leftposition=
 
|leftposition=
 +
|inline=
 
}}
 
}}
 
</pre>
 
</pre>
 
Set <tt>mini</tt> to yes/no for a minified version.  <tt>topposition</tt> (default: <tt>-17px</tt>) and <tt>leftposition</tt> (default: <tt>-10px</tt>) are optional values used to position the icon in the minified version.
 
Set <tt>mini</tt> to yes/no for a minified version.  <tt>topposition</tt> (default: <tt>-17px</tt>) and <tt>leftposition</tt> (default: <tt>-10px</tt>) are optional values used to position the icon in the minified version.
 
+
 
 
==Example==
 
==Example==
 
===Normal use===
 
===Normal use===

Revision as of 23:36, 29 September 2010

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

Usage

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

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.

Example

Normal use

{{ArticleNote
| image=clock-green.png
| text='''This article is outdated.'''<br />
Due to changing events, this article is either no longer correct or needs information added to it to make it complete. You can help Sonic Retro by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} updating it] so it is consistent with current knowledge.  After fixing this article, please remove this notice.
}}
50px This article is outdated.

Due to changing events, this article is either no longer correct or needs information added to it to make it complete. You can help Sonic Retro by updating it so it is consistent with current knowledge. After fixing this article, please remove this notice.


mini=yes

{{ArticleNote
| image=Lock.svg
| mini=yes
| text='''This page is protected from editing to prevent vandalism.'''<br />
Please discuss any proposed changes on this article's talk page.
| bgcolor=#000033
| textcolor=#fff
}}
Lock.svg This page is protected from editing to prevent vandalism.

Please discuss any proposed changes on this article's talk page.