Jump to content

Wikipedia:RedWarn/Documentation/Quick Template

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Asartea (talk | contribs) at 15:45, 21 November 2020 (starting rewrite). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Work in progress documentation - please help if you can!

About

The quick template tool allows you to quickly add canned messages to a userpage. The tool is accessed by clicking on the Quick Template button at the top of the page (only shows up on user and usertalk pages).

By default the tool contains no messages. These instead come instead from template packs created by other users. To install a pack you'll need to go your RedWarn preferences, scroll down a bit and then click "Install new template pack". A list of packs, as well as their code (required to add them), can be found at Wikipedia:RedWarn/Documentation/Quick Template/templates.

How to make your own template packs

  • You can create and modify packs by clicking "create new" or the pencil icon in the quick template screen
  • Once finished, you can publish by using the "manage publishing" button. You can also use this to update published scripts.

Shortcuts

Quick templates fully support Wikitext, but extend on this by offering additional user input and setting detailed below. Just add this text in your template:

  • <!-- ##RW UNDERDATE## --> - tells RedWarn to place this template under the current date header, like a notice
  • {{subst:BASEPAGENAME}} will produce the username of the target user (will show as "API" in previews)
  • For text inputs, use {{RWTEXT|Title|UniqueID}} (replacing "title" and "UniqueID" with a title for the textbox and a unique ID)
  • See also: WP:VAR - these are also supported.

Quick template syntax examples

Under date example

<!-- ##RW UNDERDATE## --> [[File:Information black.svg|24px]] '''Please do not''' add cool different coloured icons to pages, because they look far too cool! ~~~~

produces:

May 2020

Please do not add cool different coloured icons to pages because they look far too cool! Ed6767 (talk) 17:46, 25 May 2020 (UTC)[reply]

How to install template packs

Find a template pack listed at the page linked at bottom of this page, then copy the "pack code" to your clipboard. Open RedWarn preferences and select the "Install Quick Template Pack" button in the purple "Quick Template" card to the right of the preferences page.

Once a pack is installed, you can use the quick template feature to apply that template to a users talk page.

Updating

If a pack creator has updated the pack, to update, open the quick template editor and delete the current pack, then reinstall it.

List of Quick Template Packs

Attention: Please only add template packs from authors you trust. When installing template packs, you give the installer the same access to your account that a userscript does, i.e. full account access. Template packs are the responsibility of the pack creator, not RedWarn.