Actions

Template

Difference between revisions of "ArticleNote"

From Sonic Retro

(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{mini|}}} |
+
<includeonly>{{#ifeq:{{{mini}}}|yes|{{#vardefine:imgsize|50x30px}}|{{#vardefine:imgsize|50px}}}}{{#if:{{{imagesize|}}}|{{#vardefine:imgsize|{{{imagesize}}}px}}|}}{|class="prettytable" style="width:auto; margin-left:30px; border-bottom:none; {{#if:{{{inline|}}}|display:inline-block;}} {{#if:{{{style|}}}|{{{style}}}}}"
<div style="{{ #if: {{{inline|}}} |display:block;text-align:left;| }}{{ #ifeq: {{{align|}}}|center|margin:0 auto|float:{{{align}}} }}">
+
|-style="height:30px;"
<div class="toc shadow posrel" style="{{ #if: {{{inline|}}} ||margin:0 auto;display:table;}}text-align:left;
+
{{#if: {{{image|}}} | {{!}}style="padding:{{#if:{{{mini|}}}|3|8}}px; vertical-align:middle; text-align:center;"{{!}} [[File:{{{image}}}|{{#var:imgsize}}]] }}
overflow:hidden;{{ #if: {{{bgcolor|}}} | background:{{{bgcolor}}} | }}">
+
|style="padding-top:2px; padding-bottom:2px; {{#if:{{{textstyle|}}}|{{{textstyle}}}}}"| {{#if: {{{text|}}} | {{{text}}} | Text goes here. }}
{{ #if: {{{image|}}} | <div style="position:relative;left:{{ #if: {{{leftposition|}}} | {{{leftposition}}} | -10px }};top:{{ #if: {{{topposition|}}} | {{{topposition}}} | -17px }};height:15px;
+
|}</includeonly><noinclude>
float:left">[[Image:{{{image}}}{{!}}{{ #if: {{{imagewidth|}}} | {{{imagewidth}}} | 50px }}{{!}}link=]]</div> | }}
+
This template is for transclusion in [[:Category:Cleanup templates|cleanup templates]] and other similar site-wide templates.
<div style="float:left;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}">{{{text}}}</div>
 
</div></div>{{ #if: {{{inline|}}} ||<br /> }}
 
| <!-- else normal version -->
 
{{{!}}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=]] | }}
 
{{!}}style="padding:0 0 0 5px;{{ #if: {{{textcolor|}}} | color:{{{textcolor}}} | }}"{{!}}<p style="margin-bottom:.4em">{{{text}}}</p>
 
{{!}}}
 
}}</includeonly><noinclude>
 
This template is for transclusion in [[:Category:Cleanup Templates|cleanup templates]] and other similar site-wide templates.
 
  
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{ArticleNote
 
{{ArticleNote
|image=
+
| image=
|text=
+
| text=
|imagewidth=
+
| mini=
|align=
+
| inline=
|width=
+
| style=
|mini=
+
| textstyle=
|topposition=
 
|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.
+
 
 
+
===Examples===
==Example==
+
{| class="prettytable"
===Normal use===
+
! Code || Result
 +
|-
 +
|
 
<pre>{{ArticleNote
 
<pre>{{ArticleNote
| image=clock-green.png
+
| image=Sonicretro-round.svg
| text='''This article is outdated.'''<br />
+
| text=This is a stub.
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.
+
| mini=yes
 +
| style=min-width:400px;
 +
| textstyle=font-family:times new roman;
 
}}</pre>
 
}}</pre>
 
+
|
 
{{ArticleNote
 
{{ArticleNote
| image=clock-green.png
+
| image=Sonicretro-round.svg
| text='''This article is outdated.'''<br />
+
| text=This is a stub.
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.
+
| mini=yes
 +
| style=min-width:400px;
 +
| textstyle=font-family:times new roman;
 
}}
 
}}
 
+
|-
 
+
|
 
 
===mini=yes===
 
 
<pre>{{ArticleNote
 
<pre>{{ArticleNote
 
| image=Lock.svg
 
| image=Lock.svg
| mini=yes
+
| text='''This page is protected from editing to prevent vandalism.'''
| 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
 
 
}}</pre>
 
}}</pre>
 
+
|
 
{{ArticleNote
 
{{ArticleNote
 
| image=Lock.svg
 
| image=Lock.svg
| mini=yes
+
| text='''This page is protected from editing to prevent vandalism.'''
| text='''This page is protected from editing to prevent vandalism.'''<br />
+
}}
Please discuss any proposed changes on this article's talk page.
+
|-
| bgcolor=#000033
+
| <pre>{{Reqbook}}</pre>
| textcolor=#fff
+
| {{Reqbook}}
 +
|-
 +
| <pre>{{Segaretro}}</pre>
 +
| {{Segaretro}}
 +
|-
 +
|
 +
<pre>{{ArticleNote
 +
| image=
 +
| text=Template with no image.
 +
}}</pre>
 +
|
 +
{{ArticleNote
 +
| image=
 +
| text=Template with no image.
 +
| inline=yes
 
}}
 
}}
 +
|}
 +
 +
{{cleanup|ds dasf
 +
* fgsdfg
 +
*( dfasf
 +
*gfafdfsadf
 +
sadfsadfas}}
  
[[Category:Sonic Retro Templates|{{PAGENAME}}]]
+
[[Category:Sonic Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:30, 29 October 2019

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

Usage

{{ArticleNote
| image=
| text=
| mini=
| inline=
| style=
| textstyle=
}}

Examples

Code Result
{{ArticleNote
| image=Sonicretro-round.svg
| text=This is a stub.
| mini=yes
| style=min-width:400px;
| textstyle=font-family:times new roman;
}}
Sonicretro-round.svg This is a stub.
{{ArticleNote
| image=Lock.svg
| text='''This page is protected from editing to prevent vandalism.'''
}}
Lock.svg This page is protected from editing to prevent vandalism.
{{Reqbook}}
Image upload.svg This book or strategy guide requires additional or replacement scans.
{{Segaretro}}
Segaretro-round.svg It has been suggested that this page be moved over to Sega Retro as to be in accordance with both sites' policies.
Please see the talk page for relevant discussion and export procedure.
{{ArticleNote
| image=
| text=Template with no image.
}}
Template with no image.


Sonicretro-round.svg This article needs cleanup.
This article needs to be edited to conform to a higher standard of article quality. Specifically, issues with this article are:

ds dasf

  • fgsdfg
  • ( dfasf
  • gfafdfsadf
sadfsadfas

After the article has been cleaned up, you may remove this message. See How to Edit a Page for help.