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



YumeWiki
3,037Articles

Template:Claim: Difference between revisions

m (lighter + red warning color)
m (increase limit to 3 days)
Line 2: Line 2:
IF YOU DO NOT DO THIS, IT WILL BREAK THE TEMPLATE. and that would be sad.
IF YOU DO NOT DO THIS, IT WILL BREAK THE TEMPLATE. and that would be sad.


{{subst:(}}subst:#ifeq:{{#expr:{{{2|1}}}>24}}|1|ERROR: Cannot claim for more than 1 day|{{subst:(}}subst:#if:{{subst:(}}subst:void{{subst:)}}|<span style="color:red;">'''ERROR: must [https://www.mediawiki.org/wiki/Help:Substitution substitute] the template'''</span>|{{subst:(}}subst:#if:{{{1|}}}|{{#ifeq:{{#expr: {{CURRENTTIMESTAMP}} < {{subst:(}}subst:#time:YmdHis|+{{{2|1}}} hour{{subst:)}}}}|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:{{{1}}}]] until {{subst:(}}subst:#time:H:i|+{{{2|1}}} hour{{subst:)}} UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:{{{1}}}|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}|ERROR: Did not specify a user}}}}}}
{{subst:(}}subst:#ifeq:{{#expr:{{{2|1}}}>72}}|1|ERROR: Cannot claim for more than 3 days|{{subst:(}}subst:#if:{{subst:(}}subst:void{{subst:)}}|<span style="color:red;">'''ERROR: must [https://www.mediawiki.org/wiki/Help:Substitution substitute] the template'''</span>|{{subst:(}}subst:#if:{{{1|}}}|{{#ifeq:{{#expr: {{CURRENTTIMESTAMP}} < {{subst:(}}subst:#time:YmdHis|+{{{2|1}}} hour{{subst:)}}}}|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:{{{1}}}]] until {{subst:(}}subst:#time:Y-m-d "at" H:i|+{{{2|1}}} hour{{subst:)}} UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:{{{1}}}|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}|ERROR: Did not specify a user}}}}}}


-->
-->
<onlyinclude><!--This is where a "claim" template is. If it's gone, not needed, or you want to renew it, delete all this first.-->
<onlyinclude><!--This is where a "claim" template is. If it's gone, not needed, or you want to renew it, delete all this first.-->


{{subst:#ifeq:{{#expr:{{{2|1}}}>24}}|1|ERROR: Cannot claim for more than 1 day|
{{subst:#ifeq:{{#expr:{{{2|1}}}>72}}|1|ERROR: Cannot claim for more than 3 days|
{{subst:#if:
{{subst:#if:
{{subst:void
{{subst:void
Line 14: Line 14:
{{subst:#time:YmdHis|+{{{2|1}}} hour
{{subst:#time:YmdHis|+{{{2|1}}} hour
}}}}|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:{{{1}}}]] until  
}}}}|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:{{{1}}}]] until  
{{subst:#time:H:i|+{{{2|1}}} hour
{{subst:#time:Y-m-d "at" H:i|+{{{2|1}}} hour
}} UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:{{{1}}}|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}|ERROR: Did not specify a user}}}}}}
}} UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:{{{1}}}|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}|ERROR: Did not specify a user}}}}}}
<!--Code from the "claim" template ends here. Remember to delete these comments when deleting or re-using--></onlyinclude>
<!--Code from the "claim" template ends here. Remember to delete these comments when deleting or re-using--></onlyinclude>
{{documentation}}
{{documentation}}

Revision as of 15:14, 15 July 2023


{{subst:#ifeq:0|1|ERROR: Cannot claim for more than 3 days| {{subst:#if: {{subst:void }}|ERROR: must substitute the template| {{subst:#if:||ERROR: Did not specify a user}}}}}}

Documentation (for the above template, sometimes hidden or invisible)

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. The idea is for people to see it then wait for your submission before they start editing.

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. The maximum time is 72 hours, but keep the time at a minumum.

Parameters

Put a box warning users that you are editing the page.

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:

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



Visit Template:Claim/doc to edit this text! (How does this work?)