Jump to content

User:Mortee/Cheatsheet

From Wikipedia, the free encyclopedia

Referencing

[edit]
{{Reflist|refs=
* <ref name="refname1">content1</ref>
* <ref name="refname2">content2</ref>
}}
  • {{r|reference name}}<ref name="reference name" />
  • {{sfn}} – for referencing different pages within one work through an article
  • |ref=harv – within a {{cite book}} or similar, to make {{sfn}} work
  • {{rp|188}} → : 188  – for in-line page numbers next to references
  • {{cite encyclopedia}} – for citing papers/chapters within an edited collection
  • {{cita news}} – to make Spanish or Italian news refs work without having to translate parameters. {{literatur}} for German. There are a few others.
  • {{citar web}} – ditto for Portuguese web references. {{lien web}} for French web references. There are a few others.
  • {{reflist-talk}} – for reference sections within a talk page
  • {{refbegin|indent=y}} and {{refend}} – format lists of works below references
[edit]

Random markup

[edit]
  • {{tildes}} → ~~~~
  • {{od|::::::::}} → 
  • {{od|8}} → 
  • {{tq|quoted text}} → quoted text
  • {{redacted}} → (Redacted)
  • {{redacted|identifying information}} → (Redacted) (this changes the hover-over text)
  • {{para|attribute}} → |attribute=
  • {{para|attribute|value}} → |attribute=value
  • {{hlist|one|two|three}} → 
    • one
    • two
    • three
  • {{pb}} – to put a visual paragraph break in a list or similar without confusing screen readers
  • {{ec}} → (edit conflict)
  • {{tps}} → (talk page stalker)
  • {{tps|g}} → (talk page gnome)
  • {{Non-admin comment}} → (Non-administrator comment)
  • {{lag|article}} → Article (edit|talk|history|links|watch|logs|google)
  • {{=}} → = (as an escape character)
  • {{!}} → | (as an escape character)
  • {{not a typo}}
  • {{sic}} →  [sic]
  • {{lit}} → lit. = {{literal translation}}
  • Columns: {{div col}} and {{div col end}} for easy columns; {{col-begin}}, {{col-break}} and {{col-end}} for manual control
  • {{unsigned}} but always subst: {{subst:unsigned|Mortee|12:00, 31 December 2049 (UTC)}}— Preceding unsigned comment added by Mortee (talkcontribs) 12:00, 31 December 2049 (UTC)
  • {{convert|3|ft|m}} → 3 feet (0.91 m)
    • |abbr=on → 3 ft (0.91 m)
    • |adj=on → 3-foot (0.91 m)
    • {{convert|3|ft|2+3/8|in|m}}3 feet 2+38 inches (0.975 m)
  • {{frac|2|3}} → 23
  • {{frac|1|2|3}} → 1+23
  • {{sfrac|2|3}} → 2/3
  • {{sfrac|1|2|3}} → ⁠1+2/3
  • <!-- comments in the Wiki markup, not visible to readers -->
  • For lists in infoboxes etc, without visible bullet points:
{{Plainlist|
* Item
* Item
}}
  • To collapse WikiProject templates together:
{{WikiProjectBannerShell|1=
  {{WikiProject History|class=|importance=}}
  {{WikiProject Scotland|class=|importance=}}
}}
<center>
  <gallery mode=packed>
    File:some image.jpg|description|alt=description for the blind
    File:another image.jpg|description|alt=description for the blind
  </gallery>
</center>
  • {{moved discussion from}} and {{moved discussion to}}
    Moved from there
    Moved to here
  • {{markup}} for comparing complex source with output. Gets fiddly because you need to replace some common markup with other templates.
  • {{collapse top|title=Collapsed section}} ... {{collapse bottom}}
Collapsed section

...

Tools

[edit]

User stats

[edit]
[edit]

Policy, guidelines and canon essays

[edit]

Templates

[edit]

Maintenance templates

[edit]

For all these, add the current date with |date=November 2024. For many, you can and should explain why you're adding it using |reason=.

Inline

[edit]

Maintenance templates

[edit]

User-space templates

[edit]

(Easiest to use Twinkle for most of these)

Welcome

[edit]

Warning

[edit]

Notification

[edit]

Misc

[edit]
  • {{db-u1}} – request deletion of a page of your own
  • {{uw-selfrevert|pagename|additional text}} ~~~~ – to thank a user for reverting their own mistake

Images and symbols

[edit]

Icons

[edit]
  • {{icon|DYK1}} →  Q
  • {{icon|DYK2}} → 
  • {{icon|Redirect}} → 

Templates

[edit]

With the exception of {{later}}, all of the templates below with bold wording attached allow a customised message as the second parameter. For some reason, {{warnsign}} and {{partly done}} capitalise the first letter of your message. The others don't. You can't set specify text, though; it will become an apostrophe (except for {{idea}}, which always adds a colon after whatever text you write).

Smileys

[edit]

Families

[edit]

Direct invocation

[edit]
Image Markup
Information icon [[File:Information.svg|25px|alt=Information icon]]
Information icon [[File:Information_orange.svg|25px|alt=Information icon]]
Warning icon |[[File:Ambox warning pn.svg|25px|alt=Warning icon]]
Stop hand [[File:Stop_hand_nuvola.svg|25px|alt=Stop hand]]

Misc

[edit]