Module:Module sandbox/doc
Appearance
| This is a documentation subpage for Module:Module sandbox. It may contain usage information, categories and other content that is not part of the original module page. |
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:
textText from where to remove the stringstrString to removetextText from where to remove the stringstrString to removefilterRequired. 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">