User:Lwarrenwiki/Cheatsheet

From Wikipedia, the free encyclopedia

Ye olde Lwarrenwiki cheat sheet     (Edit cheatsheet)

Anti-vandalism tools

Request for page protection (WP:RFPP), Hamiltrash sample

Sample page protection request, for use at WP:RFPP. See User:Lwarrenwiki/sandbox#Hamiltrash template maker for more variations.

=== [[:Angelica Hamilton]] ===
* {{pagelinks|Angelica Hamilton}}
'''Indefinite semi-protected:''' Semi-protection requested due to moderate but highly persistent level of long-term [[WP:SPA]] and IP vandalism related to [[:Hamilton (musical)|''Hamilton'' (musical)]], conforming to long-standing #[[List of fandom nicknames#Hamiltrash|Hamiltrash]] pattern of vandalism. ~~~~

=== ''Hamilton''-related vandalism pattern ===
* {{pagelinks|Angelica Schuyler Church}}
* {{pagelinks|Eliza Hamilton Holly}}
* {{pagelinks|Theodosia Burr Alston}}
'''Indefinite pending changes protection:''' Persistent [[WP:SPA]] and IP vandalism related to [[:Hamilton (musical)|''Hamilton'' (musical)]], conforming to long-standing #[[List of fandom nicknames#Hamiltrash|Hamiltrash]] pattern of vandalism. Outbreaks have continued sporadically over a long term, about three years. ~~~~

Talk page vandalism warnings

Automated warnings can be generated by Twinkle, when pulled down on the editor's User page or User Talk page. This proved easier and more versatile than my sidebar hack at User:Lwarrenwiki/hamiltrash.js and my previous manual template (both detailed in the collapsed section below). Sample comments:

General   
[extra line break]
* Disruptive edit reverted. Insertion of content related to {{subst:fti|Hamilton (musical)}}, conforms to common [[List of fandom nicknames#Hamiltrash|Hamiltrash]] pattern of vandalism.
Lams
[extra line break]
* Disruptive edit reverted. Insertion of Lams [[shipping (fandom)]] content related to {{subst:fti|Hamilton (musical)}}, conforms to common [[List of fandom nicknames#Hamiltrash|Hamiltrash]] pattern of vandalism.
Lyrics
[extra line break]
* Disruptive edit reverted. Insertion of {{subst:fti|Hamilton (musical)}} lyrics, conforms to common [[List of fandom nicknames#Hamiltrash|Hamiltrash]] pattern of vandalism.
More information Variations on the user warning message ...
Close

Reporting a vandalism-only account

Report a VOA at the AIV noticeboard (edit page here):

* {{vandal|[[:XXXXX]]}} Vandalism pattern over several days/warnings. {{subst:4~}}

Reporting edit warring (3RR)

On the editor's User page or User Talk page, pull down the Twinkle menu. Select AIV and AN3 to generate a report with automatic diffs at the WP:AN3 (aka WP:3RRV) administrators' noticeboard.

Resolved

{{Tmbox|image={{Resolved mark}}|text=This is done.}}

Responding to edit requests

  • {{Edit semi-protected|demo=yes|answered=yes}}

Template:Edit semi-protected produces a small box on the right, e.g., for deactivating a request for an edit to a semi-protected page.

Template:ESp includes a long list of templates for adding a detailed response when deactivating a request for an edit to a semi-protected page.

More information ESp templates for graphical icons ...
Close

Formatting wiki text

Page diffs

For an inline wikilink to a single-edit diff, only the ID of the older page (oldid) is needed:

  • [[Special:Diff/oldid]]
  • [[Special:Diff/oldid|this edit]]
  • [[Special:Diff/oldid/newid]] gives diff between versions <oldid> and <newid>, which need not be in the same article

Likely to be piped and parenthesized on talk pages, as ([[Special:Diff/<oldid>|diff]])  – produces (diff).
See also Help:Special page.

Format title (italics, quotes)

The fti template (short for "format title: italic") italicizes the non-parenthetical portion of a page title, and links to the given page.

The ftq template (short for "format title: quotes") puts the non-parenthetical portion of a page title in double quotes, and links to the given page.

These are intended for formatting article titles on disambiguation pages, and should always be subst-ed.

Use {{tl|Name}} (short for template link) for a link to a template page.

Use {{tlx|Name|param1|param2}} (template link expanded) for a link to a template page with parameters.

  • Output — {{Name|param1|param2}}
  • Within the parameters, {{tlx}} requires {{=}} instead of =

To suppress execution when wikilinking to a template, add a colon at the beginning, e.g., [[:Template:___]].

White space templates to replace HTML code

To replace &nbsp; and <br />:

  • {{spaces|n|type}}, or redirect from {{nbsp|n|type}}
  • type=em, fig, en, thin, hair. If not specified, n non-breaking spaces (&nbsp;) are produced.
  • A non-breaking space has the same width as a standard space, whose width is between the width of en and thin.
  • {{br|n}} for n line breaks
  • {{Block indent}} for things that aren't in lists, or where a colon doesn't work

Fixing dated statements

  • {{Show by date|year|month|day|text before|text after|options}}
  • hour=−5 (−5 for EST, −4 for EDT, omit for UTC)
  • {{As of|year|month|day|options}}
  • df=US, lc=y, since=y, alt=alternate text, pre=insertion (e.g., the first week of)

Fixing someone else's unsigned talk page post

  • {{subst:Unsigned|user name|time, day month year (UTC)}}
  • {{subst:Unsigned IP|user IP address|time, day month year (UTC)}}
Some experimentation yielded the good news that the time/date parameter may actually be free-form. At the least, I learned that UTC (or any time zone) is not actually required. —14:04, 16 June 2021 (UTC)

  Example:

Typing {{subst:Unsigned|Example|04:01, 20 March 2026 (UTC)}} will yield:
 Preceding unsigned comment added by Example (talkcontribs) 04:01, 20 March 2026 (UTC)

Column breaks

Automatic

Use {{Div col|colwidth=nnem}} and {{Div col end}} templates for automatically-balanced columns.

  • {{Div col|colwidth=nnem}} specifies minimum width of columns and automatically determines number of columns based on screen width. (If no colwidth is supplied, the template uses a default of 30em.)
  • {{Div col|colwidth=30em|content=
* One
* Two
}} allows the avoidance of {{Div col end}}
  • {{Div col|rules=___}} adds vertical lines between columns if set to yes or to any CSS styling (e.g., rules=1px dashed blue;)
  • {{Div col|gap=nnem}} specifies spacing between columns
  • {{Div col|style=___}} specifies CSS styling to apply to the columns
  • {{colbegin}} and {{colend}} are redirects to these templates

Manual

The {{col-begin}}, {{col-break}} and {{col-end}} templates control columns of text on a page:

Message boxes


A full-width example generated with {{Ivmbox|A full...|Information icon4.svg}}

Collapsing a talk page discussion

More information Extended content ...
Close
  • Summary of lengthy discussion
  • Collapsed using {{Collapse top}} and {{Collapse bottom}}
  • To see the code that produces this, show the extended content by clicking [show] in the right margin above.

Refactored this section by collapsing the lengthy discussion. Added notice box text to summarize. ~~~~

List of colors

More information X11 color chart, HTML name ...
Close

Pinned posts (📌 pinned post)

The above is done with:  (&#128204; {{Resize|75%|''pinned post''}})

Image tricks

CSS image crop

More information Example of Template:CSS image crop ...
Close

Multiple images

More information Example of Template:Multiple image ...
Close

Commons image cleanup requests

To submit a cleanup request, see commons:Media for cleanup.

Commons image crop request (or documenting)

To submit a crop request, see commons:Template:Crop for Wikidata.

  • E.g.: {{Crop for Wikidata |1=Wikidata Q item number |2=Crop instructions}}
More information Steps to take when cropping in Commons ...
Close

Miscellany

Rcats for redirects

Rcats are maintenance templates used to categorize redirect pages (e.g., R from..., R to...)

  • WP:RE/SG – Redirect style guide
  • WP:TMR – discussion and list of rcat templates

Research tools for editors

Requests and renewals at Wikipedia Library Card Platform: https://wikipedialibrary.wmflabs.org/users/

Blocked page moves

Use Wikipedia:Requested moves/Technical requests for uncontroversial technical requests.

Toolbar scripts and customizations

Userspace and sandbox

Contents of my personal namespace:

Related Articles

Wikiwand AI