Template:Wikipedia Library access/doc
| This template uses Lua: |
| This template should not be substituted. |
This template allows you to add a link to a resource accessed via The Wikipedia Library. The template's output is only visible in mainspace (article namespace) for autoconfirmed users; The Wikipedia Library is only accessible to extended-confirmed users (ie. users who have made 500+ edits and have had an account for 30+ days), so unregistered users and non-autoconfirmed users are unlikely to have any use for the TWL link. In other namespaces, the template is visible for everyone.
Double-check links produced by this template, especially before adding them to mainspace citations; if you find an error, or the template behaves unexpectedly, please report this at the talk page!
Parameters
[edit source]- 1, aliases url and link: takes either a regular URL (in which case it will convert the URL to TWL format, ie. from
www.example.comtowww-example-com.wikipedialibrary.idm.oclc.org) or a full Wikipedia Library source URL (in which case it won't modify the URL) - 2, alias access: takes a string representing the access level of the source. Defaults to
full, which returnsFull access availableas the display text for the piped link. - doi: takes a DOI value and formats it as a Wikipedia Library DOI link
- jstor: takes a JSTOR reference number and formats it as a Wikipedia Library JSTOR stable URL
- gale: takes a Gale Document Number and formats it as a Wikipedia Library Gale stable URL. Enter the number without the Gale prefix, ie. gale=A613605069 not gale=GALE|A613605069. (As of August 2025[update] this parameter is still experimental, so make sure to check that the resulting link is functional!)
- date: takes a date as of which the source was or wasn't accessible. This date isn't affected by date format templates, so it will be displayed exactly as input
If no parameters are defined, or only 2 / access is defined, the template defaults to plain text (other than a wikilink to The Wikipedia Library).
Examples
[edit source]| Markup | Renders as |
|---|---|
|
Full access available to users of The Wikipedia Library. |
|
Full access available to users of The Wikipedia Library. |
|
Full access available to users of The Wikipedia Library. |
|
Full access available to users of The Wikipedia Library. |
|
Full access available to users of The Wikipedia Library. |
|
Full access available to users of The Wikipedia Library as of August 2025. |
|
Partial access available to users of The Wikipedia Library. |
|
No access available via The Wikipedia Library. |
|
No access available via The Wikipedia Library as of August 2025. |
|
A real example
[edit source]| Markup | Renders as |
|---|---|
|
TemplateData
[edit source]TemplateData for Wikipedia Library access
Indicates that a source is available via The Wikipedia Library. Hidden for users who are not autoconfirmed.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 url link | source URL | URL | optional |
| 2 | 2 access | access type
| Line | optional |
| doi | doi | source DOI | Line | optional |
| jstor | jstor | source JSTOR ID | Number | optional |
| gale | gale | Gale Document Number | Line | optional |
| date | date | 'as of' date | Line | optional |
References
[edit source]- ^ This is a citation, which might be formatted with a citation template. Full access available to users of The Wikipedia Library.
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). Full access available to users of The Wikipedia Library.