Difference between revisions of "Template:Internet Archive/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sadads
imported>HughLilly
(add TemplateData)
Line 49: Line 49:
 
<templatedata>
 
<templatedata>
 
{
 
{
"params": {
+
"params": {
"1": {},
+
"page": {
"2": {},
+
"label": "Page number",
"3": {},
+
"description": "Makes link go to specific page",
"page": {},
+
"example": "15",
"id": {},
+
"type": "number"
"name": {}
+
},
},
+
"id": {
"paramOrder": [
+
"label": "Internet Archive collection identifier",
"id",
+
"description": "ID of the work to be linked to",
"page",
+
"example": "alicesadventures00carr_12",
"name",
+
"type": "string",
"3",
+
"required": true
"1",
+
},
"2"
+
"name": {
]
+
"label": "Title",
 +
"description": "Title of the work; defaults to article title",
 +
"example": "Alice's adventures in Wonderland",
 +
"type": "string",
 +
"suggested": true
 +
}
 +
},
 +
"description": "Generates a link to a work at the Internet Archive.",
 +
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 20:31, 3 April 2018

Usage

For links of the form https://archive.org/details/ID

* {{Internet Archive|id=ID|name=NAME}}
* {{Internet Archive|ID|NAME}}
* {{Internet Archive|ID}}

Parameter ID is the Internet Archive collection identifier - e.g., for https://archive.org/details/alicesadventures19002gut the ID is alicesadventures19002gut. This field is required.

Parameter NAME defaults to the page name if omitted, but is useful (to avoid problems if the page is moved later to a title with parentheses, for instance).

This template can be invoked using the {{IA}} shortcut.

Optionally a page number may be specified to deep link into a resource. This will create a link in the form https://archive.org/stream/ID:

* {{Internet Archive|id=ID|name=NAME|page=PAGE}}
* {{Internet Archive|ID|NAME|PAGE}}

Tracking categories

See also


Generates a link to a work at the Internet Archive.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page numberpage

Makes link go to specific page

Example
15
Numberoptional
Internet Archive collection identifierid

ID of the work to be linked to

Example
alicesadventures00carr_12
Stringrequired
Titlename

Title of the work; defaults to article title

Example
Alice's adventures in Wonderland
Stringsuggested