User:Zanaq/Zeusmode/quickTemplate

From Wikipedia, the free encyclopedia

quickTemplate(tm) is a way to easily add and remove templates. It is included in Zeusmode and is highly configurable.

each template consists of several properties grouped by a common number. property[number]

[edit] properties

the properties are:

  • qTemplate - simple template name. '-' for a separator.
  • qPos - 'bottom' or 'top' for top. percentage for separator.
  • qCategory - wikipedia page to link to in the quickWikify bar
  • qTemplateText - if this is defined a button in stead of a checkbox appears. The article text is replaced by this text. $1 for the article text. $2 for user input.
  • qPrompt - if this is defined a prompt for user input will appear.
  • qDefault - if defined, this will be the default value for the prompt
  • qDisplayText - if defined, this will be the text in the wikify bar

[edit] example

qTemplate[++k] = 'Wikify'  ; qPos[k] ='top'      ;  qCategory[k] = 'Category:Articles that need to be wikified' ;
qTemplate[++k] = 'Cleanup' ; qPos[k] ='top'      ;  qCategory[k] = 'Category:Wikipedia cleanup' ;
qTemplate[++k] = 'NPOV'    ; qPos[k] ='top'      ;  qCategory[k] = 'Category:NPOV disputes' ;
qTemplate[++k] = 'Disputed'; qPos[k] ='top'      ;  qCategory[k] = 'Category:Accuracy disputes' ;
qTemplate[++k] = 'Stub'    ; qPos[k] ='bottom'   ;  qCategory[k] = 'Category:Stubs' ;
qTemplate[++k] = '-' ; qPos[k] = '12%';
qTemplate[++k] = 'speedy'  ; qPos[k] ='top'      ;  qCategory[k] = 'Category:Candidates for speedy deletion' ;
qTemplate[++k] = '-' ; qPos[k] = '12%';