ढाँचा:ISBN

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage[सम्पादन गर्ने]

Use this template to create a link (or list of links) to Special:BookSources for one or more International Standard Book Numbers with the usual "ISBN" prefix. The template supports 10- and 13-digit ISBNs (with or without hyphens).

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

results in:

आइएसबिएन ०-७४७५-३२६९-९

And:

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

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

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}}

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

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}}

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

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}}

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

(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}}

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

Formatting[सम्पादन गर्ने]

The template preserves the formatting of the input values, for example:

{{ISBN|978-1-4133-0454-1|978141330454-1|978 1-41330-454-1}}

results in:

आइएसबिएन ९७८-१-४१३३-०४५४-१

Error checking[सम्पादन गर्ने]

This template uses Module:Check isxn to validate the ISBN. If the ISBN is not valid, this subtemplate will still generate the link, and it will add the article to Category:Pages with ISBN errors.

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 Category:Pages with listed invalid ISBNs.

  • {{ISBN}}   produces आइएसबिएन [[Special:BookSources/{{{1}}}|{{{१}}}]] ISBN त्रुटी अमान्य

See also[सम्पादन गर्ने]


Template Data[सम्पादन गर्ने]

Use this template to create a link (or list of links) to Special:BookSources for one or more International Standard Book Numbers with the usual "ISBN" prefix

Template parameters

Parameterविवरणप्रकारस्थिति
ISBN #11

first ISBN to put in the list

उदाहरण
0-674-01181-3
Stringrequired
ISBN #22

second ISBN to put in the list

उदाहरण
0-674-04200-3
Stringsuggested
ISBN #33

third ISBN to put in the list

उदाहरण
0-674-01169-3
Stringवैकल्पिक
ISBN #44

fourth ISBN to put in the list

उदाहरण
0-674-01181-6
Stringवैकल्पिक
ISBN #55

fifth ISBN to put in the list

उदाहरण
0-674-02181-5
Stringवैकल्पिक
66

no description

Unknownवैकल्पिक
77

no description

Unknownवैकल्पिक
88

no description

Unknownवैकल्पिक
99

no description

Unknownवैकल्पिक
Suppress link to ISBN?plainlink

If 'yes', does not produce "[[ISBN]]: " before the list

उदाहरण
yes
Stringवैकल्पिक
last list joiner textleadout

Text between second-to-last and last book ISBN's

उदाहरण
as well as
Stringवैकल्पिक
Invalid1invalid1

no description

Unknownवैकल्पिक
Invalid2invalid2

no description

Unknownवैकल्पिक
Invalid3invalid3

no description

Unknownवैकल्पिक
Invalid4invalid4

no description

Unknownवैकल्पिक
Invalid5invalid5

no description

Unknownवैकल्पिक
Invalid6invalid6

no description

Unknownवैकल्पिक
Invalid7invalid7

no description

Unknownवैकल्पिक
Invalid8invalid8

no description

Unknownवैकल्पिक
Invalid9invalid9

no description

Unknownवैकल्पिक