ਮੌਡਿਊਲ:Edition/doc
ਦਿੱਖ
This is the documentation page for ਮੌਡਿਊਲ:Edition
This Lua module is used on approximately 5,40,000 pages, or roughly 844% of all pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
The Edition module is responsible for retrieving and displaying various bits of data about editions on Wikisource.
For all of the methods below, the wikidata
parameter can be left out and the item ID of the page on which it is invoked will be used.
Method: author_list
[ਸੋਧੋ]Get a list of authors. These will be linked to their author pages where they exist.
Used by {{author-list}}.
Wikitext | Output |
---|---|
{{#invoke:Edition|author_list|wikidata=Q28913867}} | ਥਾਮਸ ਹਾਰਡੀ |
Method: badge
[ਸੋਧੋ]Display Wikidata badges for an edition.
Edition | Wikitext | Output |
---|---|---|
A Camp in the Adirondacks | {{#invoke:Edition|badge|wikidata=Q16325556}} | |
The Great Secret | {{#invoke:Edition|badge|wikidata=Q75047127}} | |
The Riverside song book/The Open Window | {{#invoke:Edition|badge|wikidata=Q59364480}} | |
Douglas Adams (no badge) | {{#invoke:Edition|badge|wikidata=Q42}} |
Method: inline
[ਸੋਧੋ]The 'inline summary' of an edition can be used on an author's page, for example, to show the basic details about the edition and work.
Wikitext | Output |
---|---|
{{#invoke:Edition|inline|wikidata_id=Q28913867}} | A Pair of Blue Eyes (1873) by ਥਾਮਸ ਹਾਰਡੀ (start transcription) |
Method: authority_control
[ਸੋਧੋ]For editions, you can list all available authority controlled identifiers with:
Wikitext | Output |
---|---|
{{#invoke:Edition|authority_control|wikidata=Q28020002}} |
|
And if you want to list all for the parent work of the edition, use:
Wikitext | Output |
---|---|
{{#invoke:Edition|authority_control|wikidata=Q28020002|show_work=yes}} |
|
See also
[ਸੋਧੋ]- {{edition}}
- {{author}}
- {{author-list}}
- {{work}}
- Module:Authority control