Template:Isbn: Difference between revisions
Jump to navigation
Jump to search
imported>MJBurrage Created page with "{{#vardefine:num|{{#replace:{{#replace:{{{1|}}}| }}|-}}}}<abbr title="ISBN-{{#len:{{#var:num}}}}">{{#switch: {{#len:{{#var:num}}}} |13 ={{#vardefine:isbn|{{#sub:{{#var:num}}|..." |
imported>MJBurrage No edit summary |
||
| Line 1: | Line 1: | ||
{{#vardefine:num|{{#replace:{{#replace:{{{1|}}}| }}|-}}}} | {{#vardefine:num|{{#replace:{{#replace:{{{1|}}}| }}|-}}}}{{#switch: {{#len:{{#var:num}}}} | ||
|13 =<abbr title="ISBN-{{#len:{{#var:num}}}}">{{#vardefine:isbn|{{#sub:{{#var:num}}|3|10}}}}{{#switch: {{#sub:{{#var:isbn}}|0|1}} | |||
|0|1 ={{#sub:{{#var:num}}|0|3}}- | |0|1 ={{#sub:{{#var:num}}|0|3}}- | ||
|#default =}} | |#default =}} | ||
|10 ={{#vardefine:isbn|{{#var:num}}}} | |10 =<abbr title="ISBN-{{#len:{{#var:num}}}}">{{#vardefine:isbn|{{#var:num}}}} | ||
|#default = Not an ISBN | |#default =<abbr title="Not an ISBN"> | ||
}}{{#switch: {{#sub:{{#var:isbn}}|0|1}} | }}{{#switch: {{#sub:{{#var:isbn}}|0|1}} | ||
|0 =0-{{#ifexpr: {{#sub:{{#var:isbn}}|1|2}} >= 95 | |0 =0-{{#ifexpr: {{#sub:{{#var:isbn}}|1|2}} >= 95 | ||
Revision as of 19:03, 19 October 2018