Template:VLAnchor/doc

From Don't Starve Wiki
Jump to navigation Jump to search
Description
The Visible Linked Anchor template is used to 1.) provide a page anchor to a body of text, 2.) display the anchor name, and 3.) provide a link to the wiki article of the same name. The display text may optionally be changed, but the link always matches the anchor name. (See Quuz and Bazban below for that.)
Prototype.pngUseful in glossaries, indexes, and any lists that reference its own entries, where those entries have their own articles.
Syntax
{{VLAnchor| <anchor/target/text> }}
{{VLAnchor| <anchor/target> | <text> }}
Parameters

These parameters are set order-wise. They do not have names. The more parameters are used, the more advisable it is to use {{VAnchor}} or {{Anchor}}.

First Parameter
anchor name
The text following the hash/pound sign (#) in the dontstarve.fandom.com link.
(Optional) Second Parameter
link target
The name of the page the link navigates to.
Default value: Equal to anchor name
Examples
{{VLAnchor|Foobar}} yields: Foobar
  • Anchor: [[#Foobar]]
  • anchor = target = text
  • Same effect as: {{Anchor|Foobar}}[[Foobar]]
{{VLAnchor|Qux|Dolor sit amet}} yields: Dolor sit amet
  • Anchor: [[#Qux]]
  • anchor = target != text
  • Same effect as: {{Anchor|Qux}}[[Qux|Lorem Ipsum]]
{{VLAnchor}} cannot achieve the following (similar) usage
{{Anchor|Quuz}}[[Lorem Ipsum|Dolor sit amet]] yields: Dolor sit amet
  • Anchor: [[#Quuz]]
  • anchor != target != text
{{Anchor|Bazban}}[[Lorem Ipsum]] yields: Lorem Ipsum
  • Anchor: [[#Bazban]]
  • anchor != target = text


See also
Template:Anchor
Template:VAnchor
Template:VLAnchor
Template:Goto