Difference between revisions of "Template:ArticleNote"

From MegaDrive Wiki
Jump to: navigation, search
m (13 revisions imported)
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<div class="toc shadow posrel" style="{{ #if: {{{inline|}}} ||display:table;}}{{ #ifeq: {{{align|}}}|left||margin:0 auto;}}text-align:left;
 
<div class="toc shadow posrel" style="{{ #if: {{{inline|}}} ||display:table;}}{{ #ifeq: {{{align|}}}|left||margin:0 auto;}}text-align:left;
 
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: 2px; top: -1px; float:left; margin-right: 4px;">[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 25px }}{{!}}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>
Line 14: Line 13:
 
{{!}}}
 
{{!}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
This template is for transclusion in [[:Category:Cleanup Templates|cleanup templates]] and other similar site-wide templates.
 
  
 
==Usage==
 
==Usage==
Line 37: Line 35:
 
| image=clock-green.png
 
| image=clock-green.png
 
| text='''This article is outdated.'''<br />
 
| 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.
+
Due to changing events, this article is either no longer correct or needs information added to it to make it complete. You can help us by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} updating it] so it is consistent with current knowledge.  After fixing this article, please remove this notice.
 
}}</pre>
 
}}</pre>
  
 
{{ArticleNote
 
{{ArticleNote
| image=clock-green.png
+
| image=clock.png
 
| text='''This article is outdated.'''<br />
 
| 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.
+
Due to changing events, this article is either no longer correct or needs information added to it to make it complete. You can help us by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} updating it] so it is consistent with current knowledge.  After fixing this article, please remove this notice.
 
}}
 
}}
 
 
  
 
===mini=yes===
 
===mini=yes===
 
<pre>{{ArticleNote
 
<pre>{{ArticleNote
| image=Lock.svg
+
| image=Lock.png
 
| mini=yes
 
| mini=yes
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
Line 59: Line 55:
  
 
{{ArticleNote
 
{{ArticleNote
| image=Lock.svg
+
| image=Lock.png
| mini=yes
 
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
 
Please discuss any proposed changes on this article's talk page.
 
Please discuss any proposed changes on this article's talk page.

Latest revision as of 11:29, 16 March 2015


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. Only possible value for align is left.

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 us by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} updating it] so it is consistent with current knowledge.  After fixing this article, please remove this notice.
}}


Clock.png

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 us by updating it so it is consistent with current knowledge. After fixing this article, please remove this notice.

mini=yes

{{ArticleNote
| image=Lock.png
| 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.png

This page is protected from editing to prevent vandalism.
Please discuss any proposed changes on this article's talk page.