MyWiki:RedWarn/Documentation/Quick Template

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{Wikipedia:RedWarn/Announcements}}

Work in progress documentation - please help if you can!

File:RedWarn Quick Template button.png

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

[edit source]

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

[edit source]
File:RedWarn default top icons.png
Three dots on the right of the icon set opens "More Options"
File:RedWarn default more options menu.png
The second last option is
File:Ic settings 48px.svg 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 File:Ic settings 48px.svg 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

[edit source]

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

[edit source]
File:RedWarn Quick Template edit box.png
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

[edit source]

Under date example

[edit source]

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

[edit source]

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

[edit source]

List of Quick Template Packs

[edit source]

{{Wikipedia:RedWarn/Documentation/Quick Template/templates}}