Vorlage:BibTeX-name-attribute

aus GlossarWiki, der Glossar-Datenbank der Fachhochschule Augsburg

Zweck

Diese Vorlage erzeugt ein BibTeX-Attribut mit den beiden Elementen name und value, sofern value eine nicht-leere Zeichenkette enthält.

Aufruf

{{BibTeX-name-attribute | name = Name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }}
{{BibTeX-name-attribute | name = Name |                                     value2 = W. Kowa, H.L. Otto }}
{{BibTeX-name-attribute | name = Name | value2 = a b, c d, e f, g h, i j, k l, m n }}

Ergebnisse

   Name = {Kowa, W. and Otto, H.\,L.},

   Name = {{{#regex: W. Kowa | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: H.L. Otto | /(.+?)\s+(.+)/ | $2, $1 }}},

   Name = {{{#regex: a b | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: c d | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: e f | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: g h | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: i j | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: k l | /(.+?)\s+(.+)/ | $2, $1 }} and {{#regex: m n | /(.+?)\s+(.+)/ | $2, $1 }}},