Template:ISBNT: Difference between revisions

From Vigyanwiki
Template>Matthiaspaul
(Temporarily going through redirect in error message in order to make tl parameter work. This can be changed back to uppercase once Mediawiki's automagical recognition of ISBN has been disabled.)
Template>Matthiaspaul
(Added capability to ignore individual invalid ISBNs using the invalid? parameter)
Line 1: Line 1:
{{#if:{{{1|<noinclude>$</noinclude>}}}|{{Catalog lookup link|{{{id|{{{1|}}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|link-prefix=[Special:BookSources/|item-prefix={{!}}|item-postfix=]|list-leadout={{{leadout|}}}}}{{#if:{{trim|{{{1|}}}}}|{{#invoke:check isxn|check_isbn|{{{1|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{2|}}}}}|{{#invoke:check isxn|check_isbn|{{{2|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{3|}}}}}|{{#invoke:check isxn|check_isbn|{{{3|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{4|}}}}}|{{#invoke:check isxn|check_isbn|{{{4|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{5|}}}}}|{{#invoke:check isxn|check_isbn|{{{5|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{6|}}}}}|{{#invoke:check isxn|check_isbn|{{{6|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{7|}}}}}|{{#invoke:check isxn|check_isbn|{{{7|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{8|}}}}}|{{#invoke:check isxn|check_isbn|{{{8|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}{{#if:{{trim|{{{9|}}}}}|{{#invoke:check isxn|check_isbn|{{{9|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}}}}}}}}}}}}}}}}}|{{error|Parameter error in {{tl|isbnt<!-- ISBNT -->}}: No [[ISBN]] given.}}}}<noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>
{{#if:{{{1|<noinclude>$</noinclude>}}}|{{Catalog lookup link|{{{id|{{{1|}}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|link-prefix=[Special:BookSources/|item-prefix={{!}}|item-postfix=]|list-leadout={{{leadout|}}}}}{{#if:{{trim|{{{1|}}}}}|{{#ifeq:{{yesno-no|{{{invalid1|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{1|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{2|}}}}}|{{#ifeq:{{yesno-no|{{{invalid2|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{2|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{3|}}}}}|{{#ifeq:{{yesno-no|{{{invalid3|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{3|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{4|}}}}}|{{#ifeq:{{yesno-no|{{{invalid4|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{4|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{5|}}}}}|{{#ifeq:{{yesno-no|{{{invalid5|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{5|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{6|}}}}}|{{#ifeq:{{yesno-no|{{{invalid6|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{6|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{7|}}}}}|{{#ifeq:{{yesno-no|{{{invalid7|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{7|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{8|}}}}}|{{#ifeq:{{yesno-no|{{{invalid8|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{8|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}{{#if:{{trim|{{{9|}}}}}|{{#ifeq:{{yesno-no|{{{invalid9|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{9|}}}|error={{error|&nbsp;Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Invalid [[ISBN]].}}{{main other|[[Category:Pages with ISBN errors]]}}}}}}}}}}}}}}}}}}}}}}}}|{{error|Parameter error in {{tl|isbnt<!-- ISBNT -->}}: Missing [[ISBN]].}}}}<noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>

Revision as of 17:33, 27 August 2017

Template documentation