Hi!No problem, you're welcome.
It already should have been possible to use only 12 digits too, since the 13th digit is
calculated anyway.
But however, I have done what you suggested and now the number will be filled up with
zeros as far as needed ;)
The inside of the tag (all that's between the open- and end-tag) will now be parsed
through and everything in the outcome that's not a number will be thrown away. So any
number outcome by Templates should now be used as barcode by the extension.
Additionally I have added the support for EAN-8 and UPC-A barcodes. the EAN-8 code uses
<ean8>...</ean8> tags and the UPC-A code uses <upc>...</upc> tags.
EAN-8 needs 7 digits (or otherwise the rest will be filled up with zeros, as suggested)
and the UPC-A would need 11 (again, otherwise the rest will be filled up with zeros).
Much fun ;) Hope it's usefull!
greetings,
Markus
Date: Sat, 2 Aug 2008 01:13:14 +0200> From:
rolf.lampa(a)rilnet.com> To: mediawiki-l(a)lists.wikimedia.org> Subject: Re:
[Mediawiki-l] EAN-code generator for Mediawiki> > M Sz wrote:> > Hi!I have
made a quick programming session and developed exactly such an extension for you. You (and
of course everybody else) can download it and read more about it (as well as see its
results) at> >
http://www.chaosreligion.com/wtl/index.php5?title=EAN> > or at
its MediaWiki
page:http://www.mediawiki.org/wiki/Extension:EAN> > - Wow! Thank you
very much!> > And it works! One thing though; the tag
<ean>1234...0</ean> requires > minimum 13 digits before it will try to
render. It would be very useful > to have the option to let the extension pad with
leading zero's if the > number given i shorter than 13 digits (for example serie
numbers often > is shorter than 13 digits and it can be a bit tricky to pad with
zero's > using ParserFunctions).> > I also added some install instructions
regarding the new '/ean' > directory to the Extension:EAN article (Apache on my
server didn't have > the rights to let your script automatically create the folder
so I gave > a hint about adding it manually instead).> > Again, thank you very
much! May I guess that you already thought of > making the EAN code result resizable
using parameter but you haven't had > the time to write the road map yet... :)>
> In any case, <thumbs up> !> > Regards,> > // Rolf Lampa> >
_______________________________________________> MediaWiki-l mailing list>
MediaWiki-l(a)lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_________________________________________________________________
Sie haben nie Platz in Ihrer Inbox? Mit Windows Live Hotmail haben Sie jetzt 5GB
Speicherplatz - gratis! Holen Sie sich hier Ihren neuen Windows Live Hotmail Account!
http://get.live.com/mail/overview