Template:Work link/doc

Usage
Template that should allow to automate a large percentage of links from Author/Portal space.


 * The Q-id of the edition or work to make a link for.
 * 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)

Details

 * If the item is a, then the parameters are looked up from there and the item is treated as an FRBR Edition otherwise...
 * If the item is a, then an article link is constructed, otherwise...
 * We assume the item is an FRBR Work of some sort (, book, lecture, speech, etc, etc). This is broadly the same as edition, but obviously cannot fall back through "".