Template:Copyright-until/sandbox
Copyrighted in the United States
This is the template sandbox page for Template:Copyright-until (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
[edit]This template is intended to be used on Author: pages to display the first parameter as a Wikipedia link until the year of the second parameter, when it is shown as a red link because its copyright has expired.
e.g. on Author:Thorne Smith
Parameters
[edit]- 1st unnamed param (optional)
- Name to use for this work's link. Optional.
- until (or 2nd unnamed param) (optional)
- Year when the U.S. copyright is believed to expire. If not given, this will categorise into Category:Pages claiming copyright without date. This is usually the publication date, plus 96.
- This can be an expression like
1968 + 96
. - display (optional)
- Text to display instead of work link.
- author (optional)
- Author name, will create link to author page if work is specified.
- extra (optional)
- Extra information about the work (e.g. film by Joe Bloggs). This will go in parentheses after the title.
- pubyear (optional)
- Year of publication. This will go in parentheses after the title and extra data, if there is any.
- renewal (optional)
- If the copyright was extended by a renewal of U.S. copyright, use this to include the renewal number ("R" followed by digits)
- wikipedia (optional)
- Name of corresponding article on Wikipedia, if the article exists
Examples
[edit]Example 1
[edit]
* {{copyright-until|Topper|2022}}
appears as:
- Topper — Copyrighted in the United States until 2022
In the year 2022, it will appear as:
Example 2
[edit]
* {{copyright-until|Topper|2022|pubyear=1926}}
appears as:
- Topper (1926) — Copyrighted in the United States until 2022
In the year 2022, it will appear as:
- Topper (1926)
Note that because "Topper" has a Wikipedia entry, it can be linked to with:
* {{copyright-until|Topper|2022|wikipedia=Topper (books)}}
which appears as
- Topper — Copyrighted in the United States until 2022
Example 3 (no title parameter)
[edit]
* {{copyright until||until=2021}}
This example doesn't have a title parameter, so the generated content starts at "Copyrighted in..."
- Copyrighted in the United States until 2021
After 2021, nothing will be shown, but the page will still be categorised as above.
Example 4 (extra data)
[edit]
* {{copyright until|Title|extra=film by Steven Spielberg|pubyear=1973|until=2021}}
- Title (film by Steven Spielberg, 1973)
This is useful when some versions of a work are still copyrighted but others aren't.
Example 5 (author)
[edit]
* {{copyright until|Title|author=Steven Spielberg|pubyear=1973|until=2021}}
- Title by Steven Spielberg (1973)
This is useful when the template is used on non-Author pages, such as portals and versions/translations pages.
Example 6 (display)
[edit]
* {{copyright until|Title (Spielberg)|display=Title|pubyear=1973|until=2021}}
- Title (1973)
* {{copyright until|Title (Austen)|display=Title|pubyear=1873|until=1921}}
- Title (1873)
This is useful for disambiguated pages.
Categories
[edit]Listing work using this template will automatically list work in Category:Pages listing works with possibly expired copyrights allowing confirmation of copyright status and possible addition to Wikisource.
List a work on an Author or Portal page where the copyright has not yet expired
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Name for the work's link
| Page name | suggested |
until | until 2 | Year when the U.S. copyright is believed to expire (on 1st Jan). This is usually the publication date plus 96.
| Unknown | suggested |
renewal | renewal | If the copyright was extended by a renewal of U.S. copyright, use this to include the renewal number ("R" followed by digits)
| Line | suggested |
pubyear | pubyear | Year of publication
| Line | suggested |
display | display | Text to display instead of work link. | Unknown | optional |
author | author | Author name, will create link to author page if work is specified. | Line | optional |
extra | extra | Extra information about the work (e.g. film by Joe Bloggs). This will go in parentheses after the title. | String | optional |
wikipedia | wikipedia | Link to Wikipedia | Unknown | optional |