Difference between revisions of "Extension:Madness"

A fragment of the Garden of Remembering

(Docs)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Query the madlist.
Query the [[madlist]].


== Supported ==
== Supported ==
Line 20: Line 20:
== To-do ==
== To-do ==


Magic word:
=== Magic word ===
* All over/under certain lengths
* All matching %like% string
* Number of results to return
* Randomisation of result order


*By itself: select random line
*Only a number: select that line
*Other parameters: list


Format options:
<pre><nowiki>
* If one, don't make list
{{#madness}}
* If more than one, default to list
{{#madness: lineID}}
* Options: list, inline, paragraph break
{{#madness: all}}
{{#madness: all|limit = 5|minlength = 60|maxlength = 200|query = cats|order = random|format = list}}
 
Options:
 
limit: (all), numeric
minlength: (all), numeric
maxlength: (all), numeric
query: (none), string
order: ('asc'), 'desc', 'random'
format: ('list'), 'inline', 'paragraph'
 
No matched parameters: 'invalid query'
 
No matched results: 'no results'
 
 
Other things:
source, speaker
source, article
personal/impersonal
timestamp
user
</nowiki></pre>


=== Special:Madness ===


Special:Madness:
* Implement; duplicates 'all' list functionality, but with added tools
* Implement; duplicates 'all' list functionality, but with added tools
* Actions for lines: Add, delete, edit, view
* Actions for lines: Add, delete, edit, view
* Add force update from file
* Add force update from file
* Some sort of revision history?
* Some sort of revision history?

Latest revision as of 18:15, 9 September 2019

Query the madlist.

Supported

Random lines:

{{#madness}}

Specific lines:

{{#madness: lineID}}

Full list:

{{#madness: all}}

To-do

Magic word

  • By itself: select random line
  • Only a number: select that line
  • Other parameters: list
{{#madness}}
{{#madness: lineID}}
{{#madness: all}}
{{#madness: all|limit = 5|minlength = 60|maxlength = 200|query = cats|order = random|format = list}}

	Options:

	limit: (all), numeric
	minlength: (all), numeric
	maxlength: (all), numeric
	query: (none), string
	order: ('asc'), 'desc', 'random'
	format: ('list'), 'inline', 'paragraph'

	No matched parameters: 'invalid query'

No matched results: 'no results'


Other things:
	source, speaker
	source, article
	personal/impersonal
	timestamp
	user

Special:Madness

  • Implement; duplicates 'all' list functionality, but with added tools
  • Actions for lines: Add, delete, edit, view
  • Add force update from file
  • Some sort of revision history?