Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ISBN: Difference between revisions

Template page
(Update from sandbox: remove unnecessary {{trim}} and {{#if:}}, and make more readable.)
 
(Created page with "<includeonly>{{multilingual link/wrapper|ISBN}} [[Special:BookSources/{{{1}}}|{{{1}}}]]{{#invoke:check isxn|check_isbn|{{{1}}}|error= {{#invoke:Autotranslate|autotranslate|base=ISBN/i18n}}{{#switch:{{NAMESPACENUMBER}}|0|6=Category:Pages with ISBN errors}}}}</includeonly><noinclude> {{documentation}} </noinclude>")
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{Catalog lookup link
<includeonly>{{multilingual link/wrapper|ISBN}}&nbsp;[[Special:BookSources/{{{1}}}|{{{1}}}]]{{#invoke:check isxn|check_isbn|{{{1}}}|error=&nbsp;{{#invoke:Autotranslate|autotranslate|base=ISBN/i18n}}{{#switch:{{NAMESPACENUMBER}}|0|6=[[Category:Pages with ISBN errors]]}}}}</includeonly><noinclude>
|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|
{{documentation}}
article-link={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||{{#ifeq:{{yesno-yes|{{{link|}}}}}|no||ISBN (identifier)}}}}
</noinclude>
|article-name={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||ISBN}}
|link-prefix=[Special:BookSources/
|item-prefix={{!}}
|item-postfix=]
|list-leadout={{{leadout|}}}
}}{{#ifeq:{{yesno-no|{{{invalid1|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{1|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{2|}}}
    |{{#ifeq:{{yesno-no|{{{invalid2|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{2|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{3|}}}
    |{{#ifeq:{{yesno-no|{{{invalid3|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{3|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{4|}}}
    |{{#ifeq:{{yesno-no|{{{invalid4|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{4|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{5|}}}
    |{{#ifeq:{{yesno-no|{{{invalid5|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{5|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{6|}}}
    |{{#ifeq:{{yesno-no|{{{invalid6|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{6|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{7|}}}
    |{{#ifeq:{{yesno-no|{{{invalid7|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{7|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{8|}}}
    |{{#ifeq:{{yesno-no|{{{invalid8|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{8|}}}|template_name={{{template_name|ISBN}}}}}}}{{#if:{{{9|}}}
    |{{#ifeq:{{yesno-no|{{{invalid9|}}}}}|yes|{{main other|[[Category:Pages with listed invalid ISBNs]]}}|{{#invoke:check isxn|check_isbn|{{{9|}}}|template_name={{{template_name|ISBN}}}}}}}}}}}}}}}}}}}}}}}|
    {{error-small|Parameter error in {{tl|ISBN}}: Missing [[ISBN]].}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using ISBN template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:ISBN]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | invalid1 | invalid2 | invalid3 | invalid4 | invalid5 | invalid6 | invalid7 | invalid8 | invalid9 | leadout | link | plainlink |template_name }}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>

Revision as of 19:23, 12 June 2024