Predloga:ISBN/dok

Iz Wikipedije, proste enciklopedije

Uporaba[uredi kodo]

To predlogo uporabite za kreacijo povezava (ali več povezav) na Use this template to create a link (or list of links) to Posebno:ViriKnjig za eno ali več International Standard Book Number z "ISBN" prefiksom. Predloga podpira 10- in 13-cifrne ISBNje (z ali brez pomišljaji).

{{ISBN|0-7475-3269-9}}

izpiše:

ISBN 0-7475-3269-9

And:

{{ISBN|978-1-4133-0454-1}}

izpiše:

ISBN 978-1-4133-0454-1

The idea is to switch from "magic link" syntax to more explicit syntax. This March 2017 (English Wikipedia) RfC determined the magic link should be replaced by this template.

If more than one ISBN is given, the template will separate them using a comma:

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}}

izpiše:

ISBN 978-1-4133-0454-1, 978-1-4133-0454-1, 978-1-4133-0454-1

Alternatively the conjugation between the last two list items can be defined using the leadout= parameter:

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}}

izpiše:

ISBN 978-1-4133-0454-1, 978-1-4133-0454-1 and 978-1-4133-0454-1

It the leading "ISBN" link should not occur (for example in longer lists), it can be suppressed using the plainlink=yes parameter:

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|plainlink=yes}}

izpiše:

978-1-4133-0454-1, 978-1-4133-0454-1, 978-1-4133-0454-1

(Alternatively the {{ISBNT}} template can be used.)

The plainlink and leadout parameter can be used at the same time:

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|plainlink=yes|leadout=as well as}}

izpiše:

978-1-4133-0454-1, 978-1-4133-0454-1 as well as 978-1-4133-0454-1

Preverjanje napak[uredi kodo]

Ta predloga za preverbo ISBN uporablja Modul:Check isxn. Če ISBN ni veljaven, bo ta podpredloga kljub temuu ustvarila povezavo, in dodala članek v Kategorija:Strani z ISBN napakami.

Since invalid ISBNs are sometimes used in publications, it is possible to disable the validity check for individual ISBNs given as parameters. In order to do so, add invalid?=yes (with ? replaced by the parameter number 1 to 9) to the template. In this case, the article will be added to Kategorija:Strani z označenimi napakami v ISBN.

  • {{ISBN}}   izpiše Napaka parametra v {{isbn}}: Manjka ISBN.

See also[uredi kodo]