Template:ASSTDOCLINK
<not an assistant page>
This template returns a link to the main documentation page of the interactive assistant to which the page it's used on belongs, assuming certain naming conventions.
Usage
Simply place {{ASSTDOCLINK}}
on a page to get the output. By default, when called from any subsidiary page of the assistant, the link is to the section about that subsidiary page on the main documentation page, while when called from the main page of the assistant the link is to the main documentation page as a whole.
Optional parameters:
- unnamed — page name to use instead of the name of the transcluding page. Alternatively, name of a global assistant, or parent and name of a local assistant (cf. {{ASST}}).
bold
— if non-blank, puts the assistant name (but not the parent) in boldface.anchor
— anchor when linking to the main documentation page for the assistant, overriding the default behavior. See {{ASSTDOCHEADING}}.label
— label for the link instead of the name of the assistant (name being the field afterAssistant:
).editintro
— used for page-creation list if the main documentation page for the assistant does not exist.preload
— used for page-creation list if the main documentation page for the assistant does not exist.sec
— if non-blank, and nolabel
is specified, the part of the page name after the assistant name is used for the label; see {{ASSTSUB}}.
If label
is non-blank, the parent
(as provided by {{ASST}}) is omitted.
If editintro
or preload
is non-blank, and the target doesn't exist, the label has create
pefixed to it.
This template can be substituted (via subst:
) as well as transcluded.
Examples
page where called | result |
---|---|
Wikinews:Assistant:Context |
|
Wikinews:Assistant:Context/test |
|
Template:Assistant:Context |
|
Wikinews:Reference desk/Assistant:Request/commit |
|
Template:Wikinews:Reference desk/Assistant:Request/commit |
|
Category:Wikinews:Reference desk/Assistant:Request/Templates |
|
Category:Wikinews:Reference desk/Assistant:Request |
|
Category:Assistant:Context/Templates |
|
Category:Assistant:Context |
|
User:Pi zero/Assistant:Context/button |
|
User:Pi zero/Assistant:Context/button/doc |
|
User:Pi zero/Context/doc |
|
Wikinews:Assistant:Context |
|
Wikinews:Reference desk/Assistant:Request |
|
Wikinews:Reference desk/Assistant:Request/start |
|
Garthok/Assistant:Narful |
|
Internals
Calls {{ASST}} with ASSTDOCLINK/t.
See also
- {{ASSTROOTLINK}}
- {{ASSTTEXT}}