Difference between revisions of "Template:Selfref/doc"

From CannaQAWiki
Jump to navigationJump to search
m (Updated for LabLynx Wiki)
(Cleaned up initial import)
Line 4: Line 4:
== Usage ==
== Usage ==


<nowiki>{{Selfref}}</nowiki> is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of LabLynx Wiki.
<nowiki>{{Selfref}}</nowiki> is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of CannaQAwiki.


In most cases, <nowiki>{{Selfref}}</nowiki> is used to create a disambiguation link to a page in the LabLynx Wiki: namespace from article space. When using <nowiki>{{Selfref}}</nowiki> in this way, use the following format:
In most cases, <nowiki>{{Selfref}}</nowiki> is used to create a disambiguation link to a page in the CannaQAWiki: namespace from article space. When using <nowiki>{{Selfref}}</nowiki> in this way, use the following format:
<pre>
<pre>
{{Selfref|the self-referential notice to display, including links}}
{{Selfref|the self-referential notice to display, including links}}

Revision as of 17:48, 16 March 2019

Usage

{{Selfref}} is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of CannaQAwiki.

In most cases, {{Selfref}} is used to create a disambiguation link to a page in the CannaQAWiki: namespace from article space. When using {{Selfref}} in this way, use the following format:

{{Selfref|the self-referential notice to display, including links}}

If the text of the notice contains any = characters, you have to escape it like this:

{{Selfref|1=the self-referential notice to display, including links}}

(This is needed with all templates, not just {{Selfref}}.) When using {{Selfref}} in this way, the text will be indented slightly and put in italics.

{{Selfref}} can also be used for any other text which shouldn't appear in mirrors (the mirrors can remove it by blanking {{Selfref}} in their copy, although not all of them do), without reformatting; to use it like this, place an extra vertical bar at the end of the template inclusion, like this:

{{Selfref|the self-referential text to display without reformatting|}}

or adding the word "inline" after a bar, like this:

{{Selfref|the self-referential text to display without reformatting|inline}}

This template should not be substituted.


See also

  • {{srlink}}, for the opposite case when you want a link to the Wikipedia: namespace that does show in mirrors without breaking (for instance when writing an article about Wikipedia or something connected to it).
  • Template:Otheruses templates - list of hatnotes