Template:DomEnc article link
Purpose
editThis template facilitates linking from Domestic Encyclopædia articles to other articles in the same project. Text to be linked is usually indicated by small caps in the original source. This template links absolutely, so it can be used anywhere, including in the Page: namespace.
Usage
editFor common articles:
{{DomEnc article link|year|name of the article}}
{{DomEnc article link|year|display name|name of the article}}
{{DomEnc article link|year|display name|name of the article|nosc=yes}}
{{DomEnc article link|year|name of the article|nosc=yes}}
If the referenced article is not a direct subpage to the root Encyclopedia page (for example, articles belonging to the "Supplement" section of the Domestic Encyclopædia (1802) included in the Vol. 4), then for linking to it additional parameter app must be used:
{{DomEnc article link|year|name of the article|app=<subsection name>}}
{{DomEnc article link|year|display name|name of the article|app=<subsection name>}}
{{DomEnc article link|year|display name|name of the article|app=<subsection name>|nosc=yes}}
{{DomEnc article link|year|name of the article|app=<subsection name>|nosc=yes}}
Examples
editSimple
edit{{DomEnc article link|1802|Almanack}}
gives: Almanack
Different link
editWhere the underlying link is different from the text, a second variable can be added to override the displayed text:
{{DomEnc article link|1802|Maiden-Hair|Maiden-hair, the Common}}
gives: Maiden-Hair
No small caps
editWhere no small-caps is required, then that can be overridden:
{{DomEnc article link|1802|distillation|Distilling|nosc=yes}}
gives: distillation
Article is not a direct subpage
editFor example, if an article belongs to "Supplement" section of the Domestic Encyclopædia (1802), Vol. 4 then this article is still available to be linked via parameter app:
{{DomEnc article link|1802|Dyeing|app=Supplement}}
gives: Dyeing
{{DomEnc article link|1802|Bur-weed|Bur-weed, the Greater|app=Supplement}}
gives: Bur-weed
{{DomEnc article link|1802|Hampstead Water|Hampstead-water|app=Supplement|nosc=yes}}
gives: Hampstead Water