Difference between revisions of "ArticleNote"
From Sonic Retro
(more consistent) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#ifeq:{{{mini}}}|yes|{{#vardefine:imgsize|50x30px}}|{{#vardefine:imgsize|50px}}}}{|class="prettytable" 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="padding-top:2px; padding-bottom:2px;"| {{#if: {{{text|}}} | {{{text}}} | Text goes here. }} | |
− | + | |}</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 19: | Line 8: | ||
<pre> | <pre> | ||
{{ArticleNote | {{ArticleNote | ||
− | |image= | + | | image= |
− | |text | + | | text= |
− | + | | mini= | |
− | |||
− | |||
− | |mini | ||
− | |||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | == | + | ===Examples=== |
− | + | {| class="prettytable" | |
+ | ! Code || Result | ||
+ | |- | ||
+ | | | ||
<pre>{{ArticleNote | <pre>{{ArticleNote | ||
− | | image= | + | | image=Sonicretro-round.svg |
− | | text= | + | | text=This is a stub. |
− | |||
}}</pre> | }}</pre> | ||
− | + | | | |
{{ArticleNote | {{ArticleNote | ||
− | | image= | + | | image=Sonicretro-round.svg |
− | | text= | + | | text=This is a stub. |
− | |||
}} | }} | ||
− | + | |- | |
− | + | | | |
− | |||
− | |||
<pre>{{ArticleNote | <pre>{{ArticleNote | ||
| image=Lock.svg | | image=Lock.svg | ||
− | |||
| 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. | ||
− | |||
− | |||
}}</pre> | }}</pre> | ||
− | + | | | |
{{ArticleNote | {{ArticleNote | ||
| image=Lock.svg | | image=Lock.svg | ||
− | |||
| 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. | ||
− | |||
− | |||
}} | }} | ||
− | + | |- | |
+ | | | ||
+ | <pre>{{ArticleNote | ||
+ | | image=Lock.svg | ||
+ | | text='''This page is protected from editing to prevent vandalism.''' | ||
+ | }}</pre> | ||
+ | | | ||
{{ArticleNote | {{ArticleNote | ||
| image=Lock.svg | | image=Lock.svg | ||
+ | | text='''This page is protected from editing to prevent vandalism.''' | ||
+ | }} | ||
+ | |- | ||
+ | | <pre>{{Reqbook}}</pre> | ||
+ | | {{Reqbook}} | ||
+ | |- | ||
+ | | <pre>{{Segaretro}}</pre> | ||
+ | | {{Segaretro}} | ||
+ | |- | ||
+ | | | ||
+ | <pre>{{ArticleNote | ||
+ | | image= | ||
| mini=yes | | mini=yes | ||
− | | text= | + | | text=Template with no image. |
− | | | + | }}</pre> |
− | | | + | | |
+ | {{ArticleNote | ||
+ | | image= | ||
+ | | mini=yes | ||
+ | | text=Template with no image. | ||
}} | }} | ||
+ | |} | ||
− | + | [[Category:Sonic Retro templates]] | |
− | [[Category:Sonic Retro templates | ||
</noinclude> | </noinclude> |
Revision as of 20:24, 30 July 2018
This template is for transclusion in cleanup templates and other similar site-wide templates.
Usage
{{ArticleNote | image= | text= | mini= }}
Examples
Code | Result | ||
---|---|---|---|
{{ArticleNote | image=Sonicretro-round.svg | text=This is a stub. }} |
| ||
{{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. }} |
| ||
{{ArticleNote | image=Lock.svg | text='''This page is protected from editing to prevent vandalism.''' }} |
| ||
{{Reqbook}} |
| ||
{{Segaretro}} |
| ||
{{ArticleNote | image= | mini=yes | text=Template with no image. }} |
|