Template:Noop/doc

From Angelina Jordan Wiki
Revision as of 06:50, 18 July 2024 by Dcljr (talk | contribs) (update)
This is a subpage documenting Template:Noop. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template generates an empty <nowiki /> element. It is intended to be used in certain contexts to separate characters that would otherwise be misinterpreted as wiki markup syntax (see examples below).

Any input to the template is ignored. This means that the template can be used to place short explanatory notes to editors, if that is desired (i.e., to explain the template call itself). More general notes to editors can be left using {{note to editors}} and the more emphatic {{NOTE TO EDITORS}}.

The name of this template is based on the phrase "no operation" (i.e., don't do anything).

Usage

  • {{noop}}

Example

  • [https:/{{noop}}/tv2.no/] ⇒ [https://tv2.no/]

The point here is to show the full URL in square brackets, but not as an operational link. Without the use of this template, you would get this:

  • [https://tv2.no/][1]

Which is not at all what was intended.

If you want the URL to be shown as a working link, that takes some doing. It's easy to do this:

But that doesn't follow the convention of this wiki to show external links in our own style. To accomplish that, you have to do something like:

  • [{{xl|url=https://tv2.no/|linktext=https:/{{noop}}/tv2.no/] ⇒ [https://tv2.no/]

This is so awkward because the {{xl}} template currently doesn't provide any (automatic) way to use the URL as the linktext without having it show up as a working link. This might be changed "soon".

Alias

  • {{null}}