Difference between revisions of "Template:Did you know/Clear/sandbox"
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
imported>Coffeeandcrumbs (reset sandbox) |
||
| Line 1: | Line 1: | ||
| − | <noinclude> | + | <noinclude>__NOTOC__ |
| − | __NOTOC__ | ||
| − | |||
{{DYK-Refresh}} | {{DYK-Refresh}} | ||
{{DYKqueuenav}} | {{DYKqueuenav}} | ||
| − | '''''NOTE:''' | + | '''''NOTE:''' Because a preponderance of hooks on the suggestions page are biographies or are U.S. related, it is usually appropriate to have several hooks on biographies or U.S. topics in any given update, but never more than half of either. Further information is available at [[WP:DYKSG#J]]. Thanks.'' |
''Tips on assembling sets are at [[Wikipedia:Did you know/Preparation areas]].'' | ''Tips on assembling sets are at [[Wikipedia:Did you know/Preparation areas]].'' | ||
| Line 12: | Line 10: | ||
==Hooks== | ==Hooks== | ||
{{DYKbox}} | {{DYKbox}} | ||
| − | </noinclude | + | </noinclude> |
<!--Hooks--> | <!--Hooks--> | ||
| − | <div style="float:right; margin-left:0.5em;"> | + | <div class="dyk-img" style="float: right; margin-left: 0.5em;"> |
| − | + | {{main page image|image=example-serious.jpg|caption=Caption goes here|width=120 <!-- Use 120 for vertical images, 140 for square images, and 160 for horizontal images-->}}<!--See [[Template:Main page image]] for other parameters--> | |
</div> | </div> | ||
* ... that ... ''(pictured)'' ... | * ... that ... ''(pictured)'' ... | ||
| Line 26: | Line 24: | ||
* ... that ... | * ... that ... | ||
<!--HooksEnd--> | <!--HooksEnd--> | ||
| − | <div style="text-align:right; | + | <div class="dyk-footer hlist noprint" style="margin-top: 0.5em; text-align: right;"> |
* '''[[Wikipedia:Recent additions|Archive]]''' | * '''[[Wikipedia:Recent additions|Archive]]''' | ||
| − | * '''[[ | + | * '''[[Help:Your first article|Start a new article]]''' |
* '''[[Template talk:Did you know|Nominate an article]]''' | * '''[[Template talk:Did you know|Nominate an article]]''' | ||
| − | </div><noinclude> | + | </div> |
| − | + | <noinclude> | |
---- | ---- | ||
See how this template appears on both today's Main Page | See how this template appears on both today's Main Page | ||
| Line 41: | Line 39: | ||
*[{{fullurl:Wikipedia:Main Page alternative (Queue 5)|action=purge}} (Queue 5)] | *[{{fullurl:Wikipedia:Main Page alternative (Queue 5)|action=purge}} (Queue 5)] | ||
*[{{fullurl:Wikipedia:Main Page alternative (Queue 6)|action=purge}} (Queue 6)] | *[{{fullurl:Wikipedia:Main Page alternative (Queue 6)|action=purge}} (Queue 6)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (Queue 7)|action=purge}} (Queue 7)] | ||
{{endflatlist}} | {{endflatlist}} | ||
| + | |||
| + | {{flatlist}} | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 1)|action=purge}} (Prep Area 1)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 2)|action=purge}} (Prep Area 2)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 3)|action=purge}} (Prep Area 3)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 4)|action=purge}} (Prep Area 4)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 5)|action=purge}} (Prep Area 5)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 6)|action=purge}} (Prep Area 6)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (DYK Prep 7)|action=purge}} (Prep Area 7)] | ||
| + | {{endflatlist}} | ||
| + | ... and tomorrow's Main Page | ||
{{flatlist}} | {{flatlist}} | ||
| − | *[{{fullurl:Wikipedia: | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 1)|action=purge}} (Queue 1)] |
| − | *[{{fullurl:Wikipedia: | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 2)|action=purge}} (Queue 2)] |
| − | *[{{fullurl:Wikipedia: | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 3)|action=purge}} (Queue 3)] |
| − | *[{{fullurl:Wikipedia:Main | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 4)|action=purge}} (Queue 4)] |
| − | *[{{fullurl:Wikipedia:Main | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 5)|action=purge}} (Queue 5)] |
| − | *[{{fullurl:Wikipedia:Main | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 6)|action=purge}} (Queue 6)] |
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and Queue 7)|action=purge}} (Queue 7)] | ||
{{endflatlist}} | {{endflatlist}} | ||
| − | |||
{{flatlist}} | {{flatlist}} | ||
| − | *[{{fullurl:Wikipedia: | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 1)|action=purge}} (Prep Area 1)] |
| − | *[{{fullurl:Wikipedia: | + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 2)|action=purge}} (Prep Area 2)]. |
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 3)|action=purge}} (Prep Area 3)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 4)|action=purge}} (Prep Area 4)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 5)|action=purge}} (Prep Area 5)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 6)|action=purge}} (Prep Area 6)] | ||
| + | *[{{fullurl:Wikipedia:Main Page alternative (Tomorrow and DYK Prep 7)|action=purge}} (Prep Area 7)] | ||
{{endflatlist}} | {{endflatlist}} | ||
To reset the contents of this page for the next update, copy the empty page from [[Template:Did you know/Clear]]. | To reset the contents of this page for the next update, copy the empty page from [[Template:Did you know/Clear]]. | ||
==Credits== | ==Credits== | ||
| − | <div id="credits">This space is to credit the creators/nominators of the items in this template that in fact appear on the Main Page. If you replace or remove an item before it appears on the Main Page, please revert the promotion of the hook so its template appears again at [[Template talk:Did you know]] and add a note to the nomination's template explaining why you removed it | + | <div id="credits">This space is to credit the creators/nominators of the items in this template that in fact appear on the Main Page. If you replace or remove an item before it appears on the Main Page, please revert the promotion of the hook so its template appears again at [[Template talk:Did you know]] and add a note to the nomination's template explaining why you removed it. |
<!-- | <!-- | ||
******************** Example format ******************** | ******************** Example format ******************** | ||
** (Follow this or you WILL break something) | ** (Follow this or you WILL break something) | ||
** | ** | ||
| − | ** Normal credit: * {{DYKmake|ArticleName|Editor}} | + | ** Normal credit: * {{DYKmake|ArticleName|Editor|subpage=}} |
** Nomination credit: * {{DYKnom|ArticleName|Nominator}} | ** Nomination credit: * {{DYKnom|ArticleName|Nominator}} | ||
** | ** | ||
| Line 69: | Line 84: | ||
********************************************************* | ********************************************************* | ||
--> | --> | ||
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
| − | * {{DYKmake|Example|Editor}} | + | * {{DYKmake|Example|Editor|subpage=}} |
* {{DYKnom|Example|Nominator}} | * {{DYKnom|Example|Nominator}} | ||
</div> | </div> | ||
| Line 82: | Line 97: | ||
===Credit templates=== | ===Credit templates=== | ||
You can also give out credits using the following templates: | You can also give out credits using the following templates: | ||
| − | *'''Article talk page:''' ''({{tl| | + | *'''Article talk page:''' ''({{tl|DYK talk}})'' {{tlx|DYK talk|{{CURRENTDAY}} {{CURRENTMONTHNAME}}|{{CURRENTYEAR}}|entry{{=}} ... that ...?|nompage{{=}}Template:Did you know nominations/Article name}} (check if small style templates in use, if so add {{para|small|yes}} parm) |
| − | *'''Article creator/expander's talk page:''' ''({{tl|UpdatedDYK}})'' < | + | *'''Article creator/expander's talk page:''' ''({{tl|UpdatedDYK}})'' <code>{{tlsp|UpdatedDYK|{{CURRENTDAY}} {{CURRENTMONTHNAME}}|{{CURRENTYEAR}}|Article name}}<nowiki>--~~~~</nowiki></code> |
| − | *'''Nominator's talk page:''' ''({{tl|UpdatedDYKNom}})'' < | + | *'''Nominator's talk page:''' ''({{tl|UpdatedDYKNom}})'' <code>{{tlsp|UpdatedDYKNom|{{CURRENTDAY}} {{CURRENTMONTHNAME}}|{{CURRENTYEAR}}|Article name}}<nowiki>--~~~~</nowiki></code> |
| − | *'''Notify contributor about addition to a [[Wikipedia:Portals|Portal]]:''' (can be modified for more than one portal) – ''({{tl|UpdatedDYKportal}})'' < | + | *'''Notify contributor about addition to a [[Wikipedia:Portals|Portal]]:''' (can be modified for more than one portal) – ''({{tl|UpdatedDYKportal}})'' <code>{{tlsp|UpdatedDYKportal|Article name|Portal:Portal name}}<nowiki>--~~~~</nowiki></code> |
:Note that portal notifications are only done if you have taken the trouble to add the DYK hook to a relevant portal, which is entirely optional. The other notifications must be done before the preparation area page can be reset. | :Note that portal notifications are only done if you have taken the trouble to add the DYK hook to a relevant portal, which is entirely optional. The other notifications must be done before the preparation area page can be reset. | ||
==Images== | ==Images== | ||
| − | *Don't forget to add an '' | + | *Don't forget to add an ''{{tl|mprotected}}'' notice to the image description page (or ''{{tl|C-uploaded}}'' '''plus''' a copy of the author attribution and the licence tag if you have uploaded a temporary copy from Commons). |
| + | *Alternatively, consider crediting the image file page even if the file is from Commons: <code>{{tlx|DYKfile|{{CURRENTDAY}} {{CURRENTMONTHNAME}}|{{CURRENTYEAR}}|type=image}}</code> | ||
| − | == | + | ==Manually posting the new update (if the bot is down) == |
| − | *''Note: This is the manual method. When using [[User:DYKUpdateBot|DYKUpdateBot]], the bot should automate all of the following except steps 1 and | + | *''Note: This is the manual method. When using [[User:DYKUpdateBot|DYKUpdateBot]], the bot should automate all of the following except steps 1 and 11.'' |
| − | # Make sure the image/media for the [[Template:Did you know/Queue/{{Template:Did you know/Queue/Next}}|hooks to be loaded]] is on English Wikipedia or protected on Commons. If the image/file is on Commons and not protected, upload it to En and tag it with {{tl|c-uploaded}}. You do not need to protect the picture; this is done automatically because of the [[WP:Cascading protection|cascading protection]] of the Main Page. Alternatively, if you are an admin at Commons you can protect the | + | # Make sure the image/media for the [[Template:Did you know/Queue/{{Template:Did you know/Queue/Next}}|hooks to be loaded]] is on English Wikipedia or protected on Commons. If the image/file is on Commons and not protected, upload it to En and tag it with {{tl|c-uploaded}}. You do not need to protect the picture; this is done automatically because of the [[WP:Cascading protection|cascading protection]] of the Main Page. Alternatively, if you are an admin at Commons you can protect the picture/file at Commons instead of uploading to En. |
# Update [[T:DYK]] from [[Template:Did you know/Queue/{{Template:Did you know/Queue/Next}}|the current queue]]. | # Update [[T:DYK]] from [[Template:Did you know/Queue/{{Template:Did you know/Queue/Next}}|the current queue]]. | ||
# [{{fullurl:Main Page|action=purge}} Purge the cache of the Main Page] to make sure the new entries appear. | # [{{fullurl:Main Page|action=purge}} Purge the cache of the Main Page] to make sure the new entries appear. | ||
# [{{fullurl:Template:Did you know/Next update/Time|action=edit}} Reset] the [[Template:Did you know/Next update/Time|DYK time]]. | # [{{fullurl:Template:Did you know/Next update/Time|action=edit}} Reset] the [[Template:Did you know/Next update/Time|DYK time]]. | ||
| − | # Increment the [[Template:Did you know/Queue/Next|next queue | + | # Increment the [[Template:Did you know/Queue/Next|next queue pointer]]. |
| − | # Copy the [ | + | # Copy the [{{fullurl:Template:Did you know|action=history}} ''previous'' set of hooks] (''not'' the new set just promoted to the front page) to [[Wikipedia:Recent additions|the archive]]. Be sure to copy the final revision of the set (it should be the last diff on the [[T:DYK]] page before your update), and place the timestamp of the DYK update you just made above it. Please include the picture/file. |
# Check if the previous picture/file was temporarily uploaded from Commons for display on the Main Page, and delete it from En if so. | # Check if the previous picture/file was temporarily uploaded from Commons for display on the Main Page, and delete it from En if so. | ||
| + | # On the local description page of the picture/file for the ''previous'' set of hooks, add <code><nowiki>{{DYKfile|</nowiki>{{#time:j F{{!}}Y}}<nowiki>|type=image}}</nowiki></code> (occasionally replacing <code>image</code> with <code>video</code> where appropriate). Note that, like the archives, this will create a one-day misalignment between the date on the file page and the date it actually appeared in DYK. | ||
# If you have time, please do the credits for the hooks just promoted (see "Credits" section above). | # If you have time, please do the credits for the hooks just promoted (see "Credits" section above). | ||
| − | # Clear the queue you just promoted hooks from with {{ | + | # Clear the queue you just promoted hooks from with <code><nowiki>{{User:DYKUpdateBot/REMOVE THIS LINE}}</nowiki></code>. |
| − | # If you have time, check if | + | # If you have time, check if there are any full preparation areas. Check the hooks for errors, and promote them to the next empty numbered queue if they're good. Clear the prep you took hooks from to look like [[Template:Did you know/Clear|this]]. Tag the numbered queue with {{tlx|DYKbotdo|<nowiki>~~~</nowiki>}} once the queue is loaded and ready. |
| + | |||
{{#switch: {{substr|{{FULLPAGENAME}}|0|28}} | {{#switch: {{substr|{{FULLPAGENAME}}|0|28}} | ||
| Line 111: | Line 129: | ||
}} | }} | ||
| − | [[ | + | {{template other|{{sandbox other||[[Category:DYK templates for preparing updates]]}}}} |
</noinclude> | </noinclude> | ||
Revision as of 13:51, 22 July 2020
| 40x40px | Earliest time for next DYK update: Error: Invalid time.
Current time: 12:18, 30 August 2026 (UTC) Last updated: Template:Time ago (verify⧼dot-separator⧽ reset⧼dot-separator⧽ purge) |
| DYK queues: 25px • 25px • 25px • 25px • 25px • 25px • 25px • Clear Next queue: 25px (update • Script error: No such module "Purge". • edit • history) DYK prep areas: 25px • 25px • 25px • 25px • 25px • 25px • 25px • Clear Next prep for promotion: 25px (update • Script error: No such module "Purge". • edit • history) |
NOTE: Because a preponderance of hooks on the suggestions page are biographies or are U.S. related, it is usually appropriate to have several hooks on biographies or U.S. topics in any given update, but never more than half of either. Further information is available at WP:DYKSG#J. Thanks.
Tips on assembling sets are at Wikipedia:Did you know/Preparation areas.
Hooks
- ... that ... (pictured) ...
- ... that ...
- ... that ...
- ... that ...
- ... that ...
- ... that ...
- ... that ...
- ... that ...
See how this template appears on both today's Main Page
... and tomorrow's Main Page
To reset the contents of this page for the next update, copy the empty page from Template:Did you know/Clear.
Credits
Credit templates
You can also give out credits using the following templates:
- Article talk page: ({{DYK talk}})
{{DYK talk|30 August|2026|entry= ... that ...?|nompage=Template:Did you know nominations/Article name}}(check if small style templates in use, if so add|small=yesparm) - Article creator/expander's talk page: ({{UpdatedDYK}})
{{subst:UpdatedDYK|30 August|2026|Article name}}--~~~~ - Nominator's talk page: ({{UpdatedDYKNom}})
{{subst:UpdatedDYKNom|30 August|2026|Article name}}--~~~~ - Notify contributor about addition to a Portal: (can be modified for more than one portal) – ({{UpdatedDYKportal}})
{{subst:UpdatedDYKportal|Article name|Portal:Portal name}}--~~~~
- Note that portal notifications are only done if you have taken the trouble to add the DYK hook to a relevant portal, which is entirely optional. The other notifications must be done before the preparation area page can be reset.
Images
- Don't forget to add an {{mprotected}} notice to the image description page (or {{C-uploaded}} plus a copy of the author attribution and the licence tag if you have uploaded a temporary copy from Commons).
- Alternatively, consider crediting the image file page even if the file is from Commons:
{{DYKfile|30 August|2026}}
Manually posting the new update (if the bot is down)
- Note: This is the manual method. When using DYKUpdateBot, the bot should automate all of the following except steps 1 and 11.
- Make sure the image/media for the hooks to be loaded is on English Wikipedia or protected on Commons. If the image/file is on Commons and not protected, upload it to En and tag it with {{c-uploaded}}. You do not need to protect the picture; this is done automatically because of the cascading protection of the Main Page. Alternatively, if you are an admin at Commons you can protect the picture/file at Commons instead of uploading to En.
- Update T:DYK from the current queue.
- Purge the cache of the Main Page to make sure the new entries appear.
- Reset the DYK time.
- Increment the next queue pointer.
- Copy the previous set of hooks (not the new set just promoted to the front page) to the archive. Be sure to copy the final revision of the set (it should be the last diff on the T:DYK page before your update), and place the timestamp of the DYK update you just made above it. Please include the picture/file.
- Check if the previous picture/file was temporarily uploaded from Commons for display on the Main Page, and delete it from En if so.
- On the local description page of the picture/file for the previous set of hooks, add
{{DYKfile|30 August|2026|type=image}}(occasionally replacingimagewithvideowhere appropriate). Note that, like the archives, this will create a one-day misalignment between the date on the file page and the date it actually appeared in DYK. - If you have time, please do the credits for the hooks just promoted (see "Credits" section above).
- Clear the queue you just promoted hooks from with
{{User:DYKUpdateBot/REMOVE THIS LINE}}. - If you have time, check if there are any full preparation areas. Check the hooks for errors, and promote them to the next empty numbered queue if they're good. Clear the prep you took hooks from to look like this. Tag the numbered queue with
{{DYKbotdo|~~~}}once the queue is loaded and ready.