This high-risk template is indefinitely protected from editing to prevent vandalism.

Template:ASSTROOTLINK

From Wikibooks, open books for an open world
Jump to navigation Jump to search

<not an assistant page>

Template documentation[edit] [history] [purge]

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

Usage

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

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}}).
  • anchor — anchor when linking to the main page for the assistant.
  • editintro — used for page-creation link if the main page for the assistant does not exist.
  • preload — used for page-creation link if the main page for the assistant does not exist.
  • label — label for the link instead of the name of the assistant (name being the field after Assistant:).

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

Wikibooks:Assistant:Context

[[Wikibooks:Assistant:Context|Context]]

Wikibooks:Assistant:Context/test

[[Wikibooks:Assistant:Context|Context]]

Template:Assistant:Context

[[Wikibooks:Assistant:Context|Context]]

Wikibooks:Reference desk/Assistant:Request/commit

''Wikibooks:Reference desk'' ‍[[Wikibooks:Reference desk/Assistant:Request|Request]]

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

''Wikibooks:Reference desk'' ‍[[Wikibooks:Reference desk/Assistant:Request|Request]]

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

''Wikibooks:Reference desk'' ‍[[Wikibooks:Reference desk/Assistant:Request|Request]]

Category:Wikibooks:Reference desk/Assistant:Request

''Wikibooks:Reference desk'' ‍[[Wikibooks:Reference desk/Assistant:Request|Request]]

Category:Assistant:Context/Templates

[[Wikibooks:Assistant:Context|Context]]

Category:Assistant:Context

[[Wikibooks:Assistant:Context|Context]]

User:Pi zero/Assistant:Context/button

''User:Pi zero'' ‍[[User:Pi zero/Assistant:Context|Context]]

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

''User:Pi zero'' ‍[[User:Pi zero/Assistant:Context|Context]]

User:Pi zero/Context/doc

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

Wikibooks:Assistant:Context
anchor = whitelist

[[Wikibooks:Assistant:Context|Context]]

Wikibooks:Reference desk/Assistant:Request
label = assistant

[[Wikibooks:Reference desk/Assistant:Request|assistant]]

Garthok/Assistant:Narful
preload = Template:Garthok/Assistant:Narful/preload
editintro = Template:Garthok/Assistant/Narful/editintro

''Garthok'' ‍<span class="plainlinks">[//en.wikibooks.org/w/index.php?title=Garthok/Assistant:Narful&action=edit&editintro=Template:Garthok/Assistant/Narful/editintro&preload=Template:Garthok/Assistant:Narful/preload&summary=create create Narful]</span>

Internals

Calls {{ASST}} with ASSTROOTLINK/t.

See also

Template:ASSTROOTLINK/t