Actions

Template

Difference between revisions of "ArticleNote"

From Sonic Retro

Line 1: Line 1:
<includeonly>{{#ifeq:{{{mini}}}|yes|{{#vardefine:imgsize|50x30px}}|{{#vardefine:imgsize|50px}}}}{|class="prettytable" style="width:auto; margin-left:30px; {{#if:{{{inline}}}|display:inline-block;}}"
+
<includeonly>{{#ifeq:{{{mini}}}|yes|{{#vardefine:imgsize|50x30px}}|{{#vardefine:imgsize|50px}}}}{|class="prettytable" style="width:auto; margin-left:30px; border-bottom:none; {{#if:{{{inline|}}}|display:inline-block;}} {{#if:{{{style|}}}|{{{style}}}}}"
|style="width:50px; padding:0px; vertical-align:middle; text-align:center;"| {{#if: {{{image|}}} | [[File:{{{image}}}|{{#var:imgsize}}]] | [[File:Sonicretro-round.svg|{{#var:imgsize}}]] }}
+
|-style="height:30px;"
|style="padding-top:2px; padding-bottom:2px;"| {{#if: {{{text|}}} | {{{text}}} | Text goes here. }}
+
{{#if: {{{image|}}} | {{!}}style="width:50px; padding:0px; vertical-align:middle; text-align:center;"{{!}} [[File:{{{image}}}|{{#var:imgsize}}]] }}
 +
|style="padding-top:2px; padding-bottom:2px; {{#if:{{{textstyle|}}}|{{{textstyle}}}}}"| {{#if: {{{text|}}} | {{{text}}} | Text goes here. }}
 
|}</includeonly><noinclude>
 
|}</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 12: Line 13:
 
| mini=
 
| mini=
 
| inline=
 
| inline=
 +
| style=
 +
| textstyle=
 
}}
 
}}
 
</pre>
 
</pre>
Line 23: Line 26:
 
| image=Sonicretro-round.svg
 
| image=Sonicretro-round.svg
 
| text=This is a stub.
 
| text=This is a stub.
 +
| mini=yes
 +
| style=min-width:400px;
 +
| textstyle=font-family:times new roman;
 
}}</pre>
 
}}</pre>
 
|
 
|
Line 28: Line 34:
 
| image=Sonicretro-round.svg
 
| image=Sonicretro-round.svg
 
| text=This is a stub.
 
| text=This is a stub.
}}
+
| mini=yes
|-
+
| style=min-width:400px;
|
+
| textstyle=font-family:times new roman;
<pre>{{ArticleNote
 
| image=Lock.svg
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
 
Please discuss any proposed changes on this article's talk page.
 
}}</pre>
 
|
 
{{ArticleNote
 
| image=Lock.svg
 
| text='''This page is protected from editing to prevent vandalism.'''<br />
 
Please discuss any proposed changes on this article's talk page.
 
 
}}
 
}}
 
|-
 
|-
Line 63: Line 59:
 
<pre>{{ArticleNote
 
<pre>{{ArticleNote
 
| image=
 
| image=
| mini=yes
 
 
| text=Template with no image.
 
| text=Template with no image.
 
}}</pre>
 
}}</pre>
Line 69: Line 64:
 
{{ArticleNote
 
{{ArticleNote
 
| image=
 
| image=
| mini=yes
 
 
| text=Template with no image.
 
| text=Template with no image.
 +
| inline=yes
 
}}
 
}}
 
|}
 
|}

Revision as of 00:12, 31 July 2018

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.