User:Davey2010/Wikipedia:RedWarn/Documentation/Quick Template

Template:Breadcrumb2Wikipedia:RedWarn/Announcements

Work in progress documentation - please help if you can!

 

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).

Template packs

change

By default, the tool contains no templates. These instead come from template packs created by other users. The second button opens a new window titled "Select Template Pack". By default, this window will contain 2 buttons:

  • Help/Get more template packs
  • Create new template pack

If you click on the

  1. first option, you will be redirected to this page.
  2. The second button allows you to create your own template pack.

How to install template packs

change
 
Three dots on the right of the icon set opens "More Options"
 
The second last option is
  RedWarn preferences

Installing a pre-existing template pack created by others is simpler than creating your own.

  1. Go to /templates and choose a template pack you would like to install.
  2. Copy the pack code below the pack description.
  3. Now go to   RedWarn preferences,
  4. Scroll down to the purple "Quick Template" card on the bottom right sidebar and click "Install Template Pack"
  5. Paste in the template code into the alert box and press OK.

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

Updating

change

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

How to make your own template packs

change
 
Quick Template edit screen

You can create and modify packs by clicking "create new" or the pencil icon in the quick template screen. This will present you with a naming dialog and then the edit screen which fully supports all normal Wikitext. In addition to normal wikitext there are also a few special RedWarn shortcuts:

  • <!-- ##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.

Once you're finished, you can publish the pack by using the "manage publishing" button. You can also use this to update previously published scripts.

Quick template syntax examples

change

Under date example

change

<!-- ##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

change

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

change

List of Quick Template Packs

change

Wikipedia:RedWarn/Documentation/Quick Template/templates