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

Usage

edit

Simply place {{ASSTTEMPLATE}} 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
page where called result

Wikinews:Assistant:Context

Template:Assistant:Context

Wikinews:Assistant:Context/test

Template:Assistant:Context

Template:Assistant:Context

Template:Assistant:Context

Wikinews:Reference desk/Assistant:Request/commit

Template:Wikinews:Reference desk/Assistant:Request

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

Template:Wikinews:Reference desk/Assistant:Request

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

Template:Wikinews:Reference desk/Assistant:Request

Category:Wikinews:Reference desk/Assistant:Request

Template:Wikinews:Reference desk/Assistant:Request

Category:Assistant:Context/Templates

Template:Assistant:Context

Category:Assistant:Context

Template:Assistant:Context

User:Pi zero/Assistant:Context/button

Template:User:Pi zero/Assistant:Context

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

Template:User:Pi zero/Assistant:Context

User:Pi zero/Context/doc

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

Internals

edit

Calls {{ASST}} with ASSTTEMPLATE/t.