Jump to content

Module:Module sandbox/doc

From Wikipedia, the free encyclopedia


Usage

{{#invoke:Module sandbox|function_name}}

Example

{{#invoke:Module sandbox|main}} yields:

No page given

Documentation

Package items

Excerpt.removeSelfLinks(text, str, text, str, filter) (function)
Parameters:
text Text from where to remove the string
str String to remove
text Text from where to remove the string
str String to remove
filter Required. Comma-separated list of numbers or min-max ranges, for example '1,3-5'
Returns:
The given text with the string removed
The given text with the string removed
Map from integers to booleans, for example {1=true,2=false,3=true,4=true,5=true}
Boolean indicating whether the filters should be treated as a blacklist or not
Note: Merging this into matchFilter is possible, but way too inefficient
TODO:
Use parser.getLinks
Use parser.getLinks
Use parser.getLinks

Other items

(variable)
TODO:
Make more robust and move downwards
Make more robust and move downwards
Use parser.getParagraphs() to get the first paragraph
Make more robust and move downwards
Use parser.getParagraphs() to get the first paragraph
The current regex may fail in cases with both kinds of quotes, like <ref name="Darwin's book">