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

From blackwiki
Jump to navigation Jump to search
imported>JECE
imported>Onceinawhile
 
(3 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
* {{Internet Archive|ID|NAME}}
 
* {{Internet Archive|ID|NAME}}
 
* {{Internet Archive|ID}}
 
* {{Internet Archive|ID}}
 +
* {{Internet Archive|ID|at=no}}
 
</pre>
 
</pre>
 
* {{Internet Archive|id=ID|name=NAME}}
 
* {{Internet Archive|id=ID|name=NAME}}
 
* {{Internet Archive|ID|NAME}}
 
* {{Internet Archive|ID|NAME}}
 
* {{Internet Archive|ID}}
 
* {{Internet Archive|ID}}
 +
* {{Internet Archive|ID|at=no}}
  
 
Parameter ID is the Internet Archive collection identifier - e.g., for https://archive.org/details/alicesadventures19002gut the ID is <code>alicesadventures19002gut</code>. This field is required.
 
Parameter ID is the Internet Archive collection identifier - e.g., for https://archive.org/details/alicesadventures19002gut the ID is <code>alicesadventures19002gut</code>. 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).
 
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).
 +
 +
Parameter "at" provides the option to remove the text "at the [[Internet Archive]]" from the output.
  
 
This template can be invoked using the {{tl|IA}} shortcut.
 
This template can be invoked using the {{tl|IA}} shortcut.
Line 30: Line 34:
  
 
== Examples ==
 
== Examples ==
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|alicesadventures19002gut|Alice's Adventures Under Ground}}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|alicesadventures19002gut|''Alice's Adventures Under Ground'' (manuscript)}}</nowiki>}}
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|handbuchderdrog02buchgoog|Handbuch der Drogisten-praxis|337}}</nowiki>}}
+
{{nowiki template demo|code=<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|handbuchderdrog02buchgoog|''Handbuch der Drogisten-praxis'' – "Eingedickte Pflanzensäfte und Pflanzenauszüge" (in German)|page=337}}</nowiki>}}
  
 
== Tracking categories ==
 
== Tracking categories ==
Line 46: Line 50:
 
* {{tl|Internet Archive member}} for links to member profiles
 
* {{tl|Internet Archive member}} for links to member profiles
 
* {{tl|Internet Archive music}} for links to live recordings by a specific music group
 
* {{tl|Internet Archive music}} for links to live recordings by a specific music group
*{{tl|OL author}} for [[Open Library]], a universal book catalog (see also {{tl|worldcat}})
+
* {{tl|OL}} for [[Open Library]], a universal book catalog (see also {{tl|worldcat}})
*{{tl|Webarchive}} for links to web pages archived on the [[Wayback Machine]]
+
* {{tl|Webarchive}} for links to web pages archived on the [[Wayback Machine]]
  
 
== TemplateData ==
 
== TemplateData ==
Line 69: Line 73:
 
"label": "Title",
 
"label": "Title",
 
"description": "Title of the work; defaults to article title",
 
"description": "Title of the work; defaults to article title",
"example": "Alice's adventures in Wonderland",
+
"example": "''Alice's Adventures in Wonderland''",
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
Line 79: Line 83:
 
</templatedata>
 
</templatedata>
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Internet Archive templates| ]]
 
[[Category:Internet Archive templates| ]]
 
[[Category:External link templates]]
 
[[Category:External link templates]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
</includeonly>
+
}}</includeonly>

Latest revision as of 18:06, 30 July 2020

Template:Wikidata property

Usage

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

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

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).

Parameter "at" provides the option to remove the text "at the Internet Archive" from the output.

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}}

Examples

Template:Nowiki template demo Template:Nowiki template demo

Tracking categories

See also

TemplateData

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