User:Lwarrenwiki/Cheatsheet
Ye olde Lwarrenwiki cheat sheet (Edit cheatsheet)
Anti-vandalism tools
[edit]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
[edit]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. |
Variations on the user warning message
|
---|
== {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} vandalism == * Please do not add nonsense to Wikipedia. Such edits are considered vandalism and quickly undone. |
Reporting a vandalism-only account
[edit]Report a VOA at the AIV noticeboard (edit page here):
* {{vandal|[[:XXXXX]]}} Vandalism pattern over several days/warnings. {{subst:4~}}
Reporting edit warring (3RR)
[edit]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
[edit]Resolved | This is done. |
{{Tmbox|image={{Resolved mark}}|text=This is done.}}
Responding to edit requests
[edit]{{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.
ESp templates for graphical icons
|
---|
For more graphic checkmarks, see the long list of variations at Template:Done/See also. These include:
|
Formatting wiki text
[edit]Page diffs
[edit]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)
[edit]The fti template (short for "format title: italic") italicizes the non-parenthetical portion of a page title, and links to the given page.
- Example โ
{{subst:fti|Hex (Hex album)}}
becomes Hex (Hex album)
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.
- Example โ
{{subst:ftq|24 (Game Theory song)}}
becomes "24" (Game Theory song)
These are intended for formatting article titles on disambiguation pages, and should always be subst-ed.
Template links
[edit]Use {{tl|Name}}
(short for template link) for a link to a template page.
- Output โ {{Name}}
Use {{tlx|Name|param1|param2}}
(template link expanded) for a link to a template page with parameters.
To suppress execution when wikilinking to a template, add a colon at the beginning, e.g., [[:Template:___]]
.
White space templates to replace HTML code
[edit]To replace and <br />:
- type=em, fig, en, thin, hair. If not specified, n non-breaking spaces (
) are produced. - A non-breaking space has the same width as a standard space, whose width is between the width of en and thin.
- type=em, fig, en, thin, hair. If not specified, n non-breaking spaces (
{{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
[edit]{{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
[edit]{{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|10:14, 23 November 2024 (UTC)}}
will yield: - โ Preceding unsigned comment added by Example (talk โข contribs) 10:14, 23 November 2024 (UTC)
Column breaks
[edit]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
[edit]
7 metatemplates in the Module:Message box family: |
Closely related metatemplates:
|
A full-width example generated with {{Ivmbox|A full...|Information icon4.svg}}
Collapsing a talk page discussion
[edit]Extended content
|
---|
The following is a closed discussion. Please do not modify it. |
{{collapse top |warning=yes}} [ ... ] {{collapse bottom}} {{Ivmbox| * Summary point 1 * Summary point 2 |Information icon4.svg}} Refactored this section by collapsing the lengthy discussion. Added notice box text to summarize. ~~~~ |
- 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
[edit]
|
Pinned posts (📌 pinned post)
[edit]The above is done with: (📌 {{Resize|75%|''pinned post''}})
Image tricks
[edit]CSS image crop
[edit]Example of Template:CSS image crop
|
---|
{{CSS image crop |Image = Name of the image file, or may accept {{Annotated image}}. |bSize = Base image width in pixels (the image we are cropping on) |cWidth = Crop image width in pixels |cHeight = Crop image height in pixels |oTop = Offset top in pixels, optional, defaults to 0 when omitted |oLeft = Offset left in pixels, optional, defaults to 0 when omitted |Location = 'right', 'left', 'center' or 'none' (determines image placement on page) โ defaults to 'right' for thumbs or when description is provided โ defaults to 'left' for non-thumbs or when description is blank |Description = Description (will render out using thumbnail class) |Link = Name of an article to be linked by clicking on the image (usually omit) |Alt = Alt text for the image. |Page = Page of the file, if there are multiple pages (such as pdf files). |magnify-link = Image to be linked by the magnify icon (usually omit) }} |
Multiple images
[edit]Example of Template:Multiple image
|
---|
{{multiple image | align = right | direction = horizontal | total_width = 300 | background color = Wheat | header_background = White | header = Arms of Hamilton of [[Kerelaw Castle|Grange]] | image1 = Arms of Hamilton of Grange.svg | alt1 = Hamilton of Grange arms | caption1= Arms: ''Gules'', a lion rampant, ''argent''... | image2 = Armorial of Hamilton of Grange (1823).jpg | alt2 = Hamilton of Grange arms, crest, and motto | caption2= Arms, crest, and motto | footer_background = White | footer = Arms of the [[Laird]]s of Grange in Ayrshire, Scotland, including Hamilton's paternal grandfather }} |
Commons image cleanup requests
[edit]To submit a cleanup request, see commons:Media for cleanup.
- Template:Cleanup image allows a reason to be specified:
{{Cleanup image|1=___}}
- If a transparent background is desired, add instead to Category:Images where background should be removed.
Commons image crop request (or documenting)
[edit]To submit a crop request, see commons:Template:Crop for Wikidata.
- E.g.:
{{Crop for Wikidata |1=Wikidata Q item number |2=Crop instructions}}
Steps to take when cropping in Commons
|
---|
It has been requested to crop a part of this image, so that the cropped part can serve as its own image for Wikidata:Q000000.
If you perform the crop, please
If cropping a JPEG, it is generally preferable to use a lossless cropping tool such as CropTool on Wikimedia Toolforge, jpegtran, or in some cases GIMP, ImageMagick, IrfanView, XnView. For more help, see Media for cleanup. |
Miscellany
[edit]Rcats for redirects
[edit]Rcats are maintenance templates used to categorize redirect pages (e.g., R from..., R to...)
- alphabetical listing of rcat templates
{{R template index}}
โ navigation box summary{{Redirect category shell}}
Research tools for editors
[edit]Requests and renewals at Wikipedia Library Card Platform: https://wikipedialibrary.wmflabs.org/users/
- Newspapers.com โ see WP:Newspapers.com (owned by Ancestry.com)
- NewspaperARCHIVE.com โ see WP:Newspaperarchive.com (owned by Heritage Microfilm)
- Fold3 โ documents and images from American and British military history; see WP:Fold3 (owned by Ancestry.com)
HighBeam Research โ see WP:HighBeamโ no longer offered
Blocked page moves
[edit]Use Wikipedia:Requested moves/Technical requests for uncontroversial technical requests.
Toolbar scripts and customizations
[edit]- User:Lwarrenwiki/common.js โ now contains only scripts for adding things to toolbars or menus
- User:Lwarrenwiki/vector.js โ now contains only scripts for other page rewrites
- User:Lwarrenwiki/vector.css โ now contains only code for turning redirects green
- For custom signature code, see the first page of Special:Preferences, and my signature tests
Userspace and sandbox
[edit]Contents of my personal namespace:
- All pages under User:Lwarrenwiki (includes css, js, userboxes, templates)
- All pages under User talk:Lwarrenwiki (user talk archives)
- All pages under User:Lwarrenwiki/sandbox (draft articles)
- This cheatsheet is at User:Lwarrenwiki/Cheatsheet
- New sandbox โ at User:Lwarrenwiki/New sandbox, which includes the former contents of User:Lwarrenwiki/sandbox
- Old sandbox โ transcludes the cheatsheet, so it can be accessed from the top menu "Sandbox" link