Template:Update: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(Refactoring header boxes)
(template now takes custom text for the subtitle; revamped page to use smarter "includeonly" approach)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{HeaderBoxTemplateTemplate|color=brown|icon=Aged parchment-60px.jpg|text='''This page contains information that is out of date.'''<br>Please update the information here to reflect where the community is at today.}}
<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]]:


<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…