Difference between revisions of "Template:ArticleNote"
From MegaDrive Wiki
(Undo revision 200 by Tristan Seifert (talk)) |
|||
Line 4: | Line 4: | ||
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}}}|50px]</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 10: | Line 10: | ||
{{{!}}class="toc shadow" width="{{ #if: {{{width|}}} | {{{width}}} | 50% }}" style="margin:0 auto;{{ #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}}}|50px]] | }} | + | {{ #if: {{{image|}}} | {{!}}width="{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}"{{!}}[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]] | }} |
{{!}}style="padding:0 0 0 5px;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}"{{!}}<p style="margin:.2em 0 .4em 0">{{{text}}}</p> | {{!}}style="padding:0 0 0 5px;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}"{{!}}<p style="margin:.2em 0 .4em 0">{{{text}}}</p> | ||
{{!}}} | {{!}}} |
Revision as of 14:38, 11 September 2011
Contents
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. }}
50px | This article is outdated. |
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 }}