Jump to content

Formula:Wl

E Wikisource
Documentatio formulae

Rationale

[recensere]

This template (Wl = WiliLink) is mainly devoted to manage links for scriptors, using Wikidata. Its syntax is very simple:

  • {{Wl|wikidata id|text for link}}

It manages dynamically three cases:

  1. if scriptor has a la.wikisource Scriptor page, the link points to its page;
  2. if it has a la.wikipedia page, the link points to its la.wikipedia page;
  3. if conditions 1 and 2 are false, the link points to its wikidata item.

Examples

[recensere]
  • {{Wl|Q35802|Spinosa}} Condition 1 is true, it generates a link to a la.wikisource page: Spinosa
  • {{Wl|Q43216|EPICURUS}} Condition 1 is false, condition 2 is true, it generates a link to a la.wikipedia page: EPICURUS
  • {{Wl|Q3724654|Emma Perodi}} Both conditions 1 and 2 are false, it generates a link to wikidata: Emma Perodi