Jump to content

Template:Infobox book: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Add blank space after preceded and followed in order to separate non-italic year markup from title markup; tested in sandbox, should not have unintended side effects (but might; editors are endlessly creative in working around bugs)
Fix category name (neither one exists yet). Test for existence of ISBN in wikidata so that ISBNT is not called with a blank ISBN. I take no position on whether putting Wikidata ISBNs in articles is good or bad, but people are doing it, so it should work right.
Line 100: Line 100:
| data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
| data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
| {{#ifeq:{{{isbn|{{{ISBN|}}}}}}|FETCH_WIKIDATA
| {{#ifeq:{{{isbn|{{{ISBN|}}}}}}|FETCH_WIKIDATA
| {{#invoke:ISBNT|link|{{#property:P212}}}}[[Category:Pages using isbn values obtained from wikidata]]
| {{#if:{{#property:P212}}|{{#invoke:ISBNT|link|{{#property:P212}}}}[[Category:Pages using ISBN values obtained from wikidata]]}}
| {{ISBNT|1={{{isbn|{{{ISBN}}}}}}}} {{{isbn_note|{{{ISBN_note|}}}}}}
| {{ISBNT|1={{{isbn|{{{ISBN}}}}}}}} {{{isbn_note|{{{ISBN_note|}}}}}}
}}
}}

Revision as of 10:51, 28 January 2019