Template:Import enwiki
![]() | Temporary solution to pull link enWP link via Wikidata. Plan to test and then build into Template:Plain sister once the logic for doing so has been undertaken. Once process has been transferred to that template then this template should be deleted. |
Usage
For use within {{header}} (main namespace articles) to link to a related article at English Wikipedia where the page at Wikisource has a correponding Wikidata item. The existing wikipedia field is utilised.
{{header
| title = [[../]]
...
| wikipedia = {{import enwiki}}
...
}}
Background
The wikipedia field is used to manually link to an article at English Wikipedia. Where a wikidata item exists for the edition, or an article in an edition, we can utilise main subject property to automatically retrieve the wikipedia link for that subject
Example: Thom's Irish Who's Who/Cogan, Denis J. which can be linked to the wikipedia article w:Denis Joseph Cogan.
Notes
Use of this methodology allows for:
- target link to be maintained where the subject is changed in the wikidata item for the page
- target link to be maintained where subject interwiki link is changed
- if used where no wikidata item, or no main subject is in item, or there is no interwiki for the main subject, the wikipedia link will not show. This is due to the #if: use in the header template, as such it is safe to use.