×
Create a new article
Write your page title here:
We currently have 2,815 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
2,815Articles

Template:Claim/doc: Difference between revisions

mNo edit summary
mNo edit summary
Line 31: Line 31:


{{#ifeq:{{#expr: {{CURRENTTIMESTAMP}} <  
{{#ifeq:{{#expr: {{CURRENTTIMESTAMP}} <  
20230715161628}}|1|<div style="border: 1px #967255 solid; padding: 0.5em; -webkit-border-radius:10px;">[[File:MoaiStatue(badgeYN).png|50px]]&nbsp;&nbsp;Planned to be edited by [[User:ZASNK]] until  
200230715161628}}|1|<div style="border: 1px #967255 solid; padding: 0.5em; -webkit-border-radius:10px;">[[File:MoaiStatue(badgeYN).png|50px]]&nbsp;&nbsp;Planned to be edited by [[User:ZASNK]] until  
2023-07-15 at 16:16 UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:ZASNK|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}
2023-07-15 at 16:16 UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:ZASNK|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}
<!--Code from the "claim" template ends here. Remember to delete these comments when deleting or re-using-->
<!--Code from the "claim" template ends here. Remember to delete these comments when deleting or re-using-->
<br>Note: this example is rigged to never disappear.
<br>Note: this example is rigged to never disappear, despite it being out of date.
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<includeonly>__NOEDITSECTION__</includeonly>
<includeonly>__NOEDITSECTION__</includeonly>

Revision as of 15:17, 15 July 2023

Description

This template allows you to "claim" pages you want to edit for up to 72 hours (3 days).

Syntax

{{subst:claim|Username}}
{{subst:claim|Username|Hours}}

You must substitute this template. Transcluding it normally will not work.

Usage

The claim warning is used to prevent edit conflicts. It places a box explaining that a user (should be yourself) is wanting to edit a page, and is wanting to be the only editor until a specified time. The template hides itself after this time.
It is best to use this template at the very start of a page.
Keep in mind the importance of substituting the template - it does not work otherwise. This also leaves all the template code directly in the article. Comments surround this code to aid in deletion.
The purpose of limiting the time is that the claim template is supposed to be used directly before the user starts typing out the actual edit. With this in mind, it is not expected for the user to take more than a day or two to finish the edit. The maximum time is 72 hours. Be considerate to your fellow editors and keep the claim time at a minumum. Do not re-claim a page multiple times either.
Note that although you can specify any user, it should definitely be yourself, unless you are (for some reason) placing the template on someone else's behalf.

Parameters

Template parameters

ParameterDescriptionTypeStatus
Username1

Your username. Your user page and user talk page will both be linked in the template.

Example
Masada
Linerequired
Hours claimed2

The length of the claim in hours. Can be any number 1-72.

Default
1 hour
Example
5
Numberoptional

Sample

The following input:

{{subst:claim|ZASNK}}

Produces:

MoaiStatue(badgeYN).png  Planned to be edited by User:ZASNK until 2023-07-15 at 16:16 UTC. Editing now could cause an edit conflict. If you still wish to edit, it's best to speak with them first. Refresh


Note: this example is rigged to never disappear, despite it being out of date.