Difference between revisions of "Template:Editnotices/Group/Template:POTD protected"

From blackwiki
Jump to navigation Jump to search
imported>Ravenpuff
(trim)
imported>Ravenpuff
(Add support for multiple subpages)
Line 1: Line 1:
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<includeonly>{{#ifexpr:{{#time:U}}-{{#time:U|{{SUBPAGENAME}}}}<86400|</includeonly>
+
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||<includeonly>{{#ifexpr:{{#time:U}}-{{#time:U|{{#titleparts:{{FULLPAGENAME}}|1|2}}}}<86400|</includeonly>
 
{{editnotice
 
{{editnotice
 
| header = Notice to administrators editing this page
 
| header = Notice to administrators editing this page
 
| headerstyle = text-align:center; font-size:150%;
 
| headerstyle = text-align:center; font-size:150%;
| text = You are currently editing the "protected version" of a POTD template, which is only used on the Main Page and is not permanently kept; there is a separate "regular version" that is used for other purposes. Therefore, <strong>please make sure that any changes you make to this page are replicated at [[Template:POTD/<includeonly>{{SUBPAGENAME}}</includeonly><noinclude>{{#time:Y-m-d}}</noinclude>|the regular version]]</strong>. This will ensure that all appearances of this POTD across Wikipedia are synchronized, and any corrections or improvements are accurately retained in [[Wikipedia:Picture of the day/Archive|the archives]]. Further information can be found at the [[Wikipedia:Picture of the day/Guidelines|POTD guidelines]].
+
| text = You are currently editing the "protected version" of a POTD template, which is only used on the Main Page and is not permanently kept; there is a separate "regular version" that is used for other purposes. Therefore, <strong>please make sure that any changes you make to the content of this page are replicated at [[Template:POTD/<includeonly>{{#titleparts:{{FULLPAGENAME}}||2}}</includeonly><noinclude>{{#time:Y-m-d}}</noinclude>|the corresponding regular version]]</strong>. This will ensure that its appearance across Wikipedia is synchronized, and any corrections or improvements are accurately retained in [[Wikipedia:Picture of the day/Archive|the archives]]. Further information can be found at the [[Wikipedia:Picture of the day/Guidelines|POTD guidelines]].
 +
<includeonly>{{#ifeq:{{#titleparts:{{FULLPAGENAME}}||2}}|{{#titleparts:{{FULLPAGENAME}}|1|2}}|{{#ifexist:Template:POTD/{{#titleparts:{{FULLPAGENAME}}|1|2}}/1|
 +
<em>Note: This is a multiple POTD, with pictures and blurbs randomly selected from different subpages. Please check whether the change you are making applies to a specific subpage only or to more than one subpage, updating all protected and regular versions as appropriate.</em>
 +
|}}|
 +
<em>Note: This page is part of a multiple POTD, with pictures and blurbs randomly selected from different subpages. Please check whether the change you are making applies to this subpage only or to more than one subpage, updating all protected and regular versions as appropriate.</em>
 +
}}</includeonly>
 
| textstyle = font-size:120%;
 
| textstyle = font-size:120%;
 
| image = Ambox important blue.svg
 
| image = Ambox important blue.svg

Revision as of 16:10, 21 May 2020