Content deleted Content added
Allow up to three parameters Tag: Reverted |
Self-revert - It worked in the sandbox, but Mediawiki doesn't like recursion per WP:TEMPLATE LOOP Tag: Undo |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly>[https://openlibrary.org/publishers/{{replace|{{{1|{{PAGENAME}}}}}| |_}} {{{1|{{PAGENAME}}}}}]{{yesno|{{{links-only|}}}|yes=|no= at [[Open Library]]|def={{error|In [[Template:Open Library publisher]], {{param|links-only}} should be yes or no}}}}</includeonly><noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> |
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> |
Revision as of 21:03, 8 November 2023
Template documentation[view] [edit] [history] [purge]
Usage
This template is intended for use in the External links section of an article on a publisher.
When given no parameters, it uses the page name for the name of the publisher. In this form, it could be added automatically to virtually all articles on publishers.
If any parameters is given, then the template ignores the page name, and instead uses the parameter as the name for the publisher on Open Library.
Examples
{{Open Library publisher}}
{{Open Library publisher|Edwin Mellen Press}}
{{Open Library publisher|Edwin Mellen Press|Mellen Press}}
{{Open Library publisher|Edwin Mellen Press|Mellen Press|links-only=yes}}
Limitations
This template currently accepts up to three parameters. Additional parameters are silently ignored. In the future, it is hoped that this template will accept and display at least nine parameters.