Jump to content

Template:ASSTROOT/doc

From Wikibooks, open books for an open world

This template returns the name of the main page of the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.

Simply place {{ASSTROOT}} on a page to get the output.

Optionally specify a page as a parameter to see the output for a different page than the current one; or the name of a global assistant, or parent and name of a local assistant (see parameter examples at {{ASST}}).

This template can be substituted (via subst:) as well as transcluded.

Examples

[edit source]
page where called result

Wikibooks:Assistant:Context

Wikibooks:Assistant:Context

Wikibooks:Assistant:Context/test

Wikibooks:Assistant:Context

Template:Assistant:Context

Wikibooks:Assistant:Context

Wikibooks:Reference desk/Assistant:Request/commit

Wikibooks:Reference desk/Assistant:Request

Template:Wikibooks:Reference desk/Assistant:Request/commit

Wikibooks:Reference desk/Assistant:Request

Category:Wikibooks:Reference desk/Assistant:Request/Templates

Wikibooks:Reference desk/Assistant:Request

Category:Wikibooks:Reference desk/Assistant:Request

Wikibooks:Reference desk/Assistant:Request

Category:Assistant:Context/Templates

Wikibooks:Assistant:Context

Category:Assistant:Context

Wikibooks:Assistant:Context

User:Pi zero/Assistant:Context/button

User:Pi zero/Assistant:Context

User:Pi zero/Assistant:Context/button/doc

User:Pi zero/Assistant:Context

User:Pi zero/Context/doc

<span style="color:red;">'''<not an assistant page>'''</span>

Internals

[edit source]

Calls {{ASST}} with ASSTROOT/t.