Template:ASSTDOC/doc

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

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

Usage[edit]

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

Optionally specify an anchor within documentation page, as parameter anchor.

Optionally specify a page as unnamed 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

Wikinews:Assistant:Context/doc

Wikinews:Assistant:Context/test

Wikinews:Assistant:Context/doc

Template:Assistant:Context

Wikinews:Assistant:Context/doc

Wikinews:Reference desk/Assistant:Request/commit

Wikinews:Reference desk/Assistant:Request/doc

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

Wikinews:Reference desk/Assistant:Request/doc

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

Wikinews:Reference desk/Assistant:Request/doc

Category:Wikinews:Reference desk/Assistant:Request

Wikinews:Reference desk/Assistant:Request/doc

Category:Assistant:Context/Templates

Wikinews:Assistant:Context/doc

Category:Assistant:Context

Wikinews:Assistant:Context/doc

User:Pi zero/Assistant:Context/button

User:Pi zero/Assistant:Context/doc

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

User:Pi zero/Assistant:Context/doc

User:Pi zero/Context/doc

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

Internals[edit]

Calls {{ASST}} with ASSTDOC/t. Given an anchor, anchorencodes it.