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



YumeWiki
3,068Articles

Template:Claim/doc: Difference between revisions

(update doc)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Description==
==Description==
<!--Short summary of what the main function of the template is-->
This template allows you to "claim" pages you want to edit for up to 72 hours (3 days).
This template allows you to "claim" pages you want to edit for up to 24 hours.
 
==Syntax==
==Syntax==
<pre>{{subst:claim|Username}}</pre>
<pre>{{subst:claim|Username}}</pre>
<pre>{{subst:claim|Username|Hours}}</pre>
<pre>{{subst:claim|Username|Hours}}</pre>
'''You ''must'' [https://www.mediawiki.org/wiki/Help:Substitution substitute] this template. Transcluding it normally will not work.'''
'''You ''must'' [[wikipedia:Help:Substitution|substitute]] this template. Transcluding it normally will not work.'''
==Usage==
==Usage==
The claim warning is used to prevent [[wikipedia:Help:Edit_conflict|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.<br>It is best to use this template at the very start of a page.<br>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.<br>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 to finish the edit. The maximum time is 24 hours. Be considerate to your fellow editors and keep the claim time at a minumum. Do not re-claim a page multiple times either.<br>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.
The claim warning is used to prevent [[wikipedia:Help:Edit conflict|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==
==Parameters==
<templatedata>{ "description": "","params": {
<templatedata>{ "description": "Put a box warning users that you are editing the page.","params": {
"1": {
"1": {
"label": "Username",
"label": "Username",
Line 20: Line 25:
"label": "Hours claimed",
"label": "Hours claimed",
"type": "number",
"type": "number",
"description": "The length of the claim in hours. Can be any number 1-24.",
"description": "The length of the claim in hours. Can be any number 1-72.",
"example": "5",
"example": "5",
"default": "1 hour"
"default": "1 hour"
}}}</templatedata>
}}}</templatedata>
==Sample==
==Sample==
The following input:
The following input:
<pre>{{subst:claim|WikiOdd}}</pre>
 
<pre>{{subst:claim|ZASNK}}</pre>
 
Produces:
Produces:


<!--This is where a "claim" template is. If it's gone or not needed, delete it. If you want to update or replace it, do {{subst:claim|YourUsername}}.-->
{{#if: | <span style="display:none;"></span>
{{#ifeq:{{#expr:1>24}}|1|ERROR: Cannot claim for more than 1 day|{{#if:
|{{#ifexpr: 0 < 20240612074611|{{Claim/1|ZASNK}} 2024-06-12 at 07:46 UTC. {{Claim/2|ZASNK}}}}
|ERROR: must [https://www.mediawiki.org/wiki/Help:Substitution substitute] the template|{{#if:WikiOdd|{{#ifeq:{{#expr: 0 <
}}<!--This was for Template:Claim - please delete if invisible or showing an error-->
1}}|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:WikiOdd]] until
 
06:51 UTC. Editing now could cause an [[wikipedia:Help:Edit_conflict|edit conflict]]. If you still wish to edit, it's best to [[User talk:WikiOdd|speak with them]] first. ''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} Refresh]''</div>|}}|ERROR: Did not specify a user}}}}}}
Note: this example is rigged to never disappear, despite it being out of date.
<!--Code from the "claim" template ends here. Remember to delete these comments if the template is deleted or re-used!-->
 
<br>Note: this example is rigged to never disappear.
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude>
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<includeonly>__NOEDITSECTION__</includeonly>
<includeonly>__NOEDITSECTION__</includeonly>

Latest revision as of 06:50, 12 June 2024

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.