Vorlage:BibTeX-name-attribute: Unterschied zwischen den Versionen
aus GlossarWiki, der Glossar-Datenbank der Fachhochschule Augsburg
Kowa (Diskussion | Beiträge) |
Kowa (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 20: | Zeile 20: | ||
=Ergebnis= | =Ergebnis= | ||
{{BibTeX-name-attribute | name = Name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }} | {{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 }} | |||
== Bug == | == Bug == | ||
Version vom 22. August 2012, 16:18 Uhr
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 }}
Ergebnis
Name = {Kowa, W. and Otto, H.\,L.},
Bug
{{BibTeX-name-attribute | name = Name | value2 = a b, c d, e f, g h, i j, k l, m n }}
Name = {{{#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 }}},
