Template:pedlink

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

[[w:{{{1}}}|{{{1}}}]]


The following documentation is located at Template:pedlink/documentation. [edit]


Usage[edit]

The first parameter is mandatory. The template generates a link to the entry of that title if the entry exists and to the Wikipedia article of the same title otherwise.

The parameter w can be used to link to a different Wikipedia article.

The parameter disp can be used for display text.

The parameter lang is for the language code of the Wikipedia to link to iff it's not English.

Examples[edit]

  • {{pedlink|foo}} → foo
  • {{pedlink|foo|disp=baz}} → baz
  • {{pedlink|bcfhiedq}} → bcfhiedq (because bcfhiedq is not an entry)
  • {{pedlink|bcfhiedq|w=foo}} → bcfhiedq (because bcfhiedq is not an entry)
  • {{pedlink|bcfhiedq|w=foo|disp=baz}} → baz (because bcfhiedq is not an entry)
  • {{pedlink|bar|w=foo}} → bar (because bar is an entry)
  • {{pedlink|bar|w=foo|disp=baz}} → baz (because bar is an entry)
  • {{pedlink|bcfhiedq|w=foo|disp=baz|lang=la}} → baz (because bcfhiedq is not an entry)

See also[edit]