Template:Dated: Difference between revisions

fixup markup
Rephase, always center
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="messagebox" style="max-width: 55em; background-color: #F5F5F5; border: 1px solid #666666; {{#if: {{{center|}}} |margin: 1em auto 1em auto;|}}"
{| class="messagebox" style="max-width: 55em; background-color: #F5F5F5; border: 1px solid #666666; margin: 1em auto 1em auto;"
|- align=center
|- align=center
| style="padding: 0.5em; vertical-align: top;" | [[File:Warning.png|none|link=]]
| style="padding: 0.5em; vertical-align: top;" | [[File:Warning.png|none|link=]]
| style="padding-left: 1em;" | '''The currency of this article or section may be limited by out-of-date information.''' <br>[[:Category:Articles_with_dated_information | See all dates pages]]</includeonly> <br> There may be relevant discussion on the [[:{{NAMESPACE}} talk:{{PAGENAME}}|talk page]].<includeonly>[[Category:Articles with dated information|{{PAGENAME}}]]  
| style="padding-left: 1em;" | '''This page has been marked as important but in need of updating as of May 2016.''' <br>[[:Category:Articles_with_dated_information | See all dated pages]] <br> There may be relevant discussion on the [[:{{NAMESPACE}} talk:{{PAGENAME}}|talk page]].<includeonly>[[Category:Articles with dated information|{{PAGENAME}}]] </includeonly>
|- align=center
|- align=center
|
|
|{{#if:{{{1|}}}|<hr>{{{1}}}}}
|{{#if:{{{1|}}}|<hr>{{{1}}}}}
|}<div style="clear:both"></div><noinclude>
|}
<div style="clear:both"></div>
 
<noinclude>
[[Category:Page flagging template|Dated]]
[[Category:Page flagging template|Dated]]
[[Category:Highlighting template|Dated]]
[[Category:Highlighting template|Dated]]


== Usage ==
== Usage ==
Line 16: Line 18:
{{Dated|Optional comment.}}
{{Dated|Optional comment.}}


To center the message box on the page, enter any text after {{Code|<nowiki>|center=</nowiki>}} as below:
{{Code|<nowiki>{{Dated|center=.|Optional comment.}}</nowiki>}}
{{Dated|center=.|Optional comment.}}
</noinclude>
</noinclude>