Santa Fe Institute Collaboration Platform


Get Involved!
Contact: Chris Kempes, Project Principal Investigator,

Template:Strip basepage

From Origins
Revision as of 20:38, August 22, 2019 by imported>Wikiworks

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Both #titleparts & SUBPAGENAME do poorly with slashes. For example, using the title Base/Page/Sub/Page where the base is Base/Page and the sub is Sub/Page:


The correct answer is Sub/Page.

You can optionally supply the base page name as a second parameter. Otherwise it will use the current full page name.

This template is intended to strip the current PAGENAME plus a / from the parameter. The idea is to show the subpage correctly while on the base page. So while on Base/Page, call {{Strip basepage:Base/Page/Sub/Page}} and it will spit out the correct answer. Requires StringFunctions.