Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a29b2b18eb5c8043

Jump to content

Template:Uw-draftnocat/doc

From Wikipedia, the free encyclopedia

May be placed on the user talk page of users who include content categories in their sandbox, user subpage, draft space, or any other non-mainspace page.

Usage

[edit]

{{subst:Uw-draftnocat}}
{{subst:Uw-draftnocat|pagename}}
{{subst:uw-dnc|pagename|headtext=section heading|space=sandbox|n=number|period=time period|level=1..3}}

Parameters

[edit]

There is one positional parameter, and six named parameters, all optional.

  • |1= – pagename of their sandbox or draft page (default: [[Special:Mypage/sandbox]] links to their sandbox; see § ex-2
  • |heading=no – suppresses the automatic heading see § ex-6
  • |headtext= – alters the heading to your choice (default: == Sandbox ==) see § ex-6a
  • |space= – values: drafts, sandbox, subpage (alias: |s=). adds verbiage as shown:
    drafts – emits "Please note that pages in draft space, such as <page> are not allowed to be categorized...", links WP:DRAFTNOCAT (see § ex-3b)
    sandbox – emits "Please note that pages in your personal sandbox, such as <page> are not...", links WP:USERNOCAT (see § ex-3a)
    subpage – emits "Please note that user subpages, such as <page> are not ...", links WP:USERNOCAT; (see § ex-3c)
    (default) – emits "Please note that pages undergoing development outside mainspace are not ...", links WP:USERNOCAT (see § ex-1)
  • |level= – values: 1, 2, 3; default: 2. See § Notes below. Values:
    1 – Level 1 is gentler – adds a "please" and a "thanks"; drops the part of the last paragraph about disruption and blocking; (see § ex-4a)
    2 – Level 2 is the default; see the canonical example at the top of this page for the default message wording (see § ex-4b)
    3 – Level 3 – like level 2, but adds "you have been warned about this before" (bolded) right after " (see § ex-4c) this is not an optional rule that you're free to disregard or ignore"
  • |n= – replaces the word recently with the number of times, for n > 1; (alias: |number=) (see § ex-5b) Example values:
    1 : "the page has had to be pulled out of categories recently ..."
    2 : "the page has had to be pulled out of categories twice ..."
    3 : "the page has had to be pulled out of categories three times ..."
    (default) : "the page has had to be pulled out of categories recently ..."
  • |period= – appends "in <period>" after the number of times (requires param n; alias: |p=) Example values:
    |n=3|period=the past week ⟶ "...pulled out of categories three times in the past week" (see § ex-5a)
    (default) ⟶ "less than 24 hours" but: parameter period is ignored unless n is specified)

Notes

[edit]

Note: normally, the template will not list or link a page that does not exist, so if you set positional param 1 pointing to some non-existent page, it will not be displayed at all. An exception is if you specify param |space=sandbox: the user sandbox will be listed and linked regardless whether it exists, and will generate a red link if it doesn't. The logic behind this is that you are telling the template you want the sandbox link there regardless, so it does what you tell it. If you want the user sandbox linked conditionally only if it exists, use param 1 instead and point it to their sandbox.

This template is a work in progress. It was initially designed as a single-level warning template, but this may change. See Talk.

Examples

[edit]

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Uw-draftnocat in articles based on its TemplateData.

TemplateData for Uw-draftnocat

See also

[edit]
Wikipedia drafts (12 C, 20 P)