Module:Filter/doc

Summary
Lua support routines for simple textual filters.

Entry Points

 * : (partially) canonicalise passed page name by closing up ".." level references.
 * e.g. Reference/Sub-page/../Sub-Page 2/Page Name  is transformed into.
 * This is useful because standard parser function {{#titleparts}} will not work with page names containing embedded "/../" sequences.
 * e.g. yields: "",
 * whereas yields "".

Utilisation
Currently used by these templates:
 * TOC link: Create link internal to a given work; appropriate to current namespace (Page:/Index: or main)