This is a documentation subpage for Template:Work link. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses TemplateStyles: |
Usage
edit💣 Experimental - don't use if you value your eyebrows 💣
Template that should allow to automate a large percentage of links from Author/Portal space.
- 1 The Q-id of the edition or work to make a link for.
- on page Use the given page as the "current page". This will suppress author links to that page. Optional, defaults to the title of the current page. Mostly useful for documentation purposes.
Main concerns so far:
- blowing the expensive function or item lookup limits - every item needs at least 1 lookup, plus one for each author (even if not actually used, but this could be optimised on author pages by caching the current page's author)
Example: Edition of a book
* {{work link|Q19053527}} * {{work link|Q107511943}}
- War Prisoners by (1919)
- Possession by (1923)
But if on that author's page:
* {{work link|Q19053527|on page=Author:Clarence Seward Darrow}} * {{work link|Q107511943|on page=Author:Mazo de la Roche}}
- War Prisoners by (1919)
- Possession by (1923)
Example: Work of a book
* {{work link|Q107511838}}
- Possession by (1923)
Example: Article in a journal
* {{work link|Q42350565}}
- article
Details
edit- If the item is a version, edition or translation (Q3331189), then the parameters are looked up from there and the item is treated as an FRBR Edition otherwise...
- If the item is a scholarly article (Q13442814), then an {{article link}} is constructed, otherwise...
- We assume the item is an FRBR Work of some sort (creative work (Q17537576), book, lecture, speech, etc, etc). This is broadly the same as edition, but obviously cannot fall back through "edition or translation of (P629)".
See also
edit- {{wdl}} inline links to Wikidata items