Template:Update after: Difference between revisions

From Vigyanwiki
Template>Ludwigs2
(Undid revision 227501903 by Ludwigs2 (talk) oops.)
Template>Ludwigs2
(rewriting template per WP:ILT#Problematic_ones; converted to 'fix' format, added defaults to merge in template 'old fact')
Line 8: Line 8:
   ##### optional named parameter BANNER=Y creates a banner message instead of an inline message
   ##### optional named parameter BANNER=Y creates a banner message instead of an inline message


--><!--
  ##### The next line is the tooltip #####
--><sup title="The text in the vicinity of this tag needs to be updated on [[{{{1}}}-{{{2}}}-{{{3}}}]]." <!--
  ##### The next line causes the message to not appear when printed #####
-->class="noprint"><!--
  ##### Next line shows up on day pages  #####
-->[[Wikipedia:Updating information/{{{1}}}/{{{2}}}/{{{3}}}|<s />]]<!--
  ##### Next line shows up on month pages #####
-->[[Wikipedia:Updating information/{{{1}}}/{{{2}}}|<s />]]<!--
  ##### Next line shows up on year pages  #####
-->[[Wikipedia:Updating information/{{{1}}}|<s />]]<!--
  ##### This section causes the message or banner to appear in the text, with specified date offset. #####
-->{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }}  >=
-->{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }}  >=
   {{JULIANDAY| {{{1}}} | {{{2}}} | {{{3}}} }} + 0   <!--
   {{JULIANDAY| {{{1|{{CURRENTYEAR}}}}} | {{{2|{{CURRENTMONTH}}}}} | {{{3|{{CURRENTDAY}} }}}}} + {{{delay|0}}}
  ##### (Change 0 above to 1, 7, or 31 to cause the message or banner to appear a day, week, or month late) #####
|{{#ifeq: {{uc:{{{BANNER| {{{banner| {{{Banner|N}}} }}} }}} }}| Y  
-->|{{#ifeq: {{uc:{{{BANNER| {{{banner| {{{Banner|N}}} }}} }}} }}| Y |<!--
  |{{update|category=}}
  ##### Following is the banner. #####
  |{{fix
-->{{update|category=}}<!--
    |link = {{TALKPAGENAME}}#obsolete
  ##### End of banner #####
    |text = dated info
-->|&#91;[[:Category:Wikipedia articles in need of updating|''update needed'']]&#93;}} }}<!--
    |cat = [[Category:Wikipedia articles in need of updating|{{PAGENAME}}]] {{#if:{{{4|}}}|[[Category:{{{4}}}]]}}
  ##### This section causes the category to appear at the specfied time, if someone edits (or maybe views) the page. #####
    |title = The text in the vicinity of this tag is dated}}  
-->{{#if:{{{4|}}}|{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >=
  }}{{#if:{{{1|}}}|[[As of {{{1}}}|<s />]][[Wikipedia:Updating information/{{{1}}}|<s />]]{{#if:{{{2|}}}|[[Wikipedia:Updating information/{{{1}}}/{{{2}}}|<s />]]{{#if:{{{3|0}}}|[[Wikipedia:Updating information/{{{1}}}/{{{2}}}/{{{3}}}|<s />]]}}}}}}
  {{JULIANDAY| {{{1}}} | {{{2}}} | {{{3}}} }} + 0  <!--
}}</includeonly><noinclude>
  ##### (Change 0 above to 1, 7, or 31 to cause the category to appear a day, week, or month late) #####
-->|[[Category:{{{4}}}|{{PAGENAME}}]]}}}}<!--
  ##### This section connects to [[:Category:Wikipedia articles in need of updating]] at the specfied time. #####
-->{{#if:{{{4|}}}|{{#ifexpr: {{JULIANDAY| {{CURRENTYEAR}} | {{CURRENTMONTH}} | {{CURRENTDAY}} }} >=
  {{JULIANDAY| {{{1}}} | {{{2}}} | {{{3}}} }} + 0  <!--
  ##### (Change 0 above to 1, 7, or 31 to cause the category to appear a day, week, or month late) #####
-->|[[Category:Wikipedia articles in need of updating|{{PAGENAME}}]]}}}}<!--
  ##### This section connects to the appropriate [[As of nnnn]] page.
-->[[As of {{{1}}}|<s />]]</sup></includeonly><noinclude>


{{template doc}}
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 07:17, 24 July 2008


Template documentation