Template:Wikilivres

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

The default behavior of this template is to present a string "Wikilivres has original media or text related to this article:" with a link to a page on Wikilivres with the same name as the Wikipedia page.

This template takes up to two optional parameters which will alter the page name used to link to Wikilivres.

  • {{Wikilivres|alternative page link|different name, if desired}}

Examples

{{Wikilivres|1=The Shape of Things to Come/Book 2|2=name for The Shape of Things to Come}}

produces

{{Wikilivres|1=The Shape of Things to Come/Book 2#Anchor|2=name for The Shape of Things to Come Anchor}}

produces


Limitation [] - square brackets

  • You cannot use square brackets ("[" and "]") in the first parameter.

To resolve this use "[" and "]" instead:
{{Wikilivres|1=The Shape of Things to Come/Book 2#Publication info[First edition]|2=name for The Shape of Things to Come [First Edition]}}

produces

Template data

<templatedata>{ "description": "Creates a small box with a links to a document at Wikilivres.", "params": {

 "1": {
   "label": "Page name",
   "description": "The document name on Wikilivres. The article's page name is used as a default. Square brackets [ and ] need to be coded as [ and ].",
   "type": "string",
   "required": false
 },
 "2": {
   "label": "Displayed name",
   "description": "Optional displayed link text.",
   "type": "string",
   "required": false
 }

}}</templatedata>

See also