Vorlage:BibTeX-name: Unterschied zwischen den Versionen

aus GlossarWiki, der Glossar-Datenbank der Fachhochschule Augsburg
(Die Seite wurde neu angelegt: „<includeonly>{{#ifeq: {{{value|}}} | | {{#vardefine: and | }}<!-- -->{{ #vardefine: i | 0 }}<!-- -->{{#vardefine: s | {{{value2|}}}}}<!-- -->{{#while: | {{…“)
 
Keine Bearbeitungszusammenfassung
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>{{#ifeq: {{{value|}}} | | {{#vardefine: and | }}<!--
<includeonly>{{#ifeq: {{{value|}}} | | {{#vardefine: and | }}<!--
-->{{ #vardefine: i | 0 }}<!--
-->{{#vardefine: i | 0 }}<!--
-->{{#vardefine: s | {{{value2|}}}}}<!--
-->{{#vardefine: s | {{{value2|}}}}}<!--
-->{{#while:
-->{{#while:
     | {{#vardefineecho: s2 | {{#explode:{{#var: s}}|,|{{#var: i}} }}}}<!--
     | {{#vardefineecho: s2 | {{#explode:{{#var: s}}|,|{{#var: i}} }}}}<!--
   -->{{#vardefine: i | {{ #expr: {{#var: i}} + 1 }}}}
   -->{{#vardefine: i | {{ #expr: {{#var: i}} + 1 }}}}
     | {{#var: and}}{{#regex: {{#var:s2}} | /(.+?)\s+(.+)/ | $2, $1 }} {{#vardefine: and |&#32;and&#32;}}  
     | {{#var: and}}{{#rreplace: {{#var:s2}} | /(.+?)\s+(.+)/ | $2, $1 }} {{#vardefine: and |&#32;and&#32;}}  
   }}  
   }}  
  | {{{value}}}
  | {{{value}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
=Zweck=
==Zweck==
Diese Vorlage formatiert eine Liste von Namen ins eine BiTex-konforme Namensliste um.
Diese Vorlage formatiert eine Liste von Namen ins eine BibTeX-konforme Namensliste um.


=Aufruf=
==Aufruf==
<pre><nowiki>
<pre><nowiki>
{{BibTeX-name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }}
{{BibTeX-name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }}
Zeile 19: Zeile 19:
</nowiki></pre>
</nowiki></pre>


=Ergebnisse=
==Ergebnisse==
{{BibTeX-name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }}
  {{BibTeX-name | value = Kowa, W. and Otto, H.\,L. | value2 = W. Kowa, H.L. Otto }}
{{BibTeX-name |                                    value2 = W. Kowa, H.L. Otto }}
  {{BibTeX-name |                                    value2 = W. Kowa, H.L. Otto }}
{{BibTeX-name | value2 = a b, c d, e f, g h, i j, k l, m n | }}
  {{BibTeX-name | value2 = a b, c d, e f, g h, i j, k l, m n | }}
 
[[Kategorie:Vorlage:Quelle]]
[[Kategorie:Vorlage:Hilfsvorlage]]
</noinclude>
</noinclude>

Aktuelle Version vom 18. Februar 2020, 18:20 Uhr

Zweck

Diese Vorlage formatiert eine Liste von Namen ins eine BibTeX-konforme Namensliste um.

Aufruf

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

Ergebnisse

 Kowa, W. and Otto, H.\,L.
 W. Kowa and H.L. Otto
 a b and c d and e f and g h and i j and k l and m n