Template:Update: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (Fixing a bug)
(template now takes custom text for the subtitle; revamped page to use smarter "includeonly" approach)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|align=center cellspacing=0 color=black cellpadding=0 style="border:1px solid black" width="700pt"
<noinclude>This template allows you to easily flag an article that needs updating. All you have to do is type <nowiki>"{{update}}"</nowiki> at the top of the article, and the following header box will appear in the article and it will be placed in [[:Category:Articles that need updating]]:
| bgcolor = brown|&nbsp;&nbsp;&nbsp;
|align=center cellspacing=0 color=grey cellpadding=0 style="border:1px solid black"|[[Image:Aged parchment-60px.jpg]]
|class="mbox-text" width=100%|
'''This page contains information that is out of date.'''<br>
Please update the information here to reflect where the community is at today.
|}


<includeonly>[[Category:Articles that need updating]]</includeonly>
{{update}}
<noinclude>[[Category:Administrative templates]]</noinclude>
 
You can also specify a reason by putting <nowiki>"{{update|The thing that needs updating is…}}"</nowiki>:
 
{{update|The thing that needs updating is…}}
 
[[Category:Administrative templates]]</noinclude>
<includeonly>{{HeaderBoxTemplateTemplate|color=brown|icon=Aged parchment-60px.jpg|iconsize=60px|text='''This page contains information that is out of date.'''<br>{{{1|Please update this information to reflect where the community is at today.}}}}}
 
{{#ifeq:{{PAGENAME}}|Update||[[Category:Articles that need updating]]}}</includeonly>

Latest revision as of 19:43, 22 August 2020

This template allows you to easily flag an article that needs updating. All you have to do is type "{{update}}" at the top of the article, and the following header box will appear in the article and it will be placed in Category:Articles that need updating:


Aged parchment-60px.jpg

This page contains information that is out of date.
Please update this information to reflect where the community is at today.


You can also specify a reason by putting "{{update|The thing that needs updating is…}}":


Aged parchment-60px.jpg

This page contains information that is out of date.
The thing that needs updating is…