Vorlage:FormatDate: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
(+volle Monatsnamen (opt.); +Verlinkung (opt.); Leerz. geschützt) |
(Neufassung: Daten vor 1; volle Namen Standard; Monate unverlinkt) |
||
Zeile 1: | Zeile 1: | ||
<noinclude>{{Dokumentation}} | <noinclude>{{Dokumentation}} | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
-->{{ #ifexpr: | d = (y-m-d) - (y-m-d*2) | ||
| {{ #ifexpr: {{#ifeq:{{lc:{{{2}}}}}|link|1|0}} + {{#ifeq:{{lc:{{{3}}}}}|link|1|0}} <!-- if Verlinkung: --> | m = -(y-m-d*0 - y-m-d*0)/2 | ||
y = y-m-d - (y-m-d - y-m-d)/2 | |||
-->{{ #ifexpr: {{{1}}}*0-{{{1}}}*0 <!-- if (monat != 0): --> | |||
| {{ #ifexpr: ( {{#ifeq: {{lc:{{{2}}}}} | link | 1 | 0}} | |||
+ {{#ifeq: {{lc:{{{3}}}}} | link | 1 | 0}} | |||
+ {{#ifeq: {{lc:{{{4}}}}} | link | 1 | 0}} ) <!-- if Verlinkung --> | |||
* ( ({{{1}}})-({{{1}}}*2) ) <!-- and (tag != 0): --> | |||
|<!-- | |<!-- | ||
-->[[<!-- "[[" | -->[[<!-- "[[" | ||
--> | -->{{ #expr: ({{{1}}})-({{{1}}}*2) }}. <!-- "tag. " | ||
-->{{ Monat Name-Nummer | {{ #expr: -({{{1}}}*0-{{{1}}}*0)/2 }} | F }}{{!}}<!-- "monat|" | |||
-->{{ #expr: ({{{1}}})-({{{1}}}*2) }}. <!-- "tag. " | |||
-->{{ Monat Name-Nummer | {{ #expr: -(0 | -->{{ #ifexpr: {{#ifeq:{{{2}}}|M|1|0}} + {{#ifeq:{{{2}}}|S|1|0}} + {{#ifeq:{{{2}}}|F|1|0}} | ||
--> | | {{ Monat Name-Nummer | {{ #expr: -({{{1}}}*0-{{{1}}}*0)/2 }} | {{{2}}} }} | ||
| {{ Monat Name-Nummer | {{ #expr: -({{{1}}}*0-{{{1}}}*0)/2 }} | F }} | |||
}}<!-- "mon."/"monat" | |||
-->]]<!-- "]]" --> | -->]]<!-- "]]" --> | ||
|<!-- | |<!-- | ||
Zeile 25: | Zeile 23: | ||
| {{ #expr: ({{{1}}})-({{{1}}}*2) }}. <!-- "tag. " --> | | {{ #expr: ({{{1}}})-({{{1}}}*2) }}. <!-- "tag. " --> | ||
}}<!-- | }}<!-- | ||
-->{{ #ifexpr: | -->{{ #ifexpr: {{#ifeq:{{{2}}}|M|1|0}} + {{#ifeq:{{{2}}}|S|1|0}} + {{#ifeq:{{{2}}}|F|1|0}} | ||
| {{ Monat Name-Nummer | {{ #expr: -({{{1}}}*0-{{{1}}}*0)/2 }} | {{{2}}} }} | |||
| {{ Monat Name-Nummer | {{ #expr: -(0 | | {{ Monat Name-Nummer | {{ #expr: -({{{1}}}*0-{{{1}}}*0)/2 }} | F }} | ||
}}<!-- "mon."/"monat" | |||
}} | -->}}<!-- | ||
-->{{ #ifexpr: {{#ifeq: {{lc:{{{2}}}}} | nbsp | 1 | 0}} | |||
+ {{#ifeq: {{lc:{{{3}}}}} | nbsp | 1 | 0}} | |||
+ {{#ifeq: {{lc:{{{4}}}}} | nbsp | 1 | 0}} | |||
| <!-- " " --> | |||
|   <!-- " " --> | |||
}} | |||
}}<!-- | }}<!-- | ||
-->{{ # | -->{{ #switch: {{ #expr: {{#ifeq: {{lc:{{{2}}}}} | link | 1 | 0}} | ||
| [[{{ #expr: ( | + {{#ifeq: {{lc:{{{3}}}}} | link | 1 | 0}} | ||
| | + {{#ifeq: {{lc:{{{4}}}}} | link | 1 | 0}} > 0 }}<!-- Verlinkung ? | ||
-->{{ #expr: {{{1}}}-({{{1}}}-{{{1}}})/2 <= 0 }} <!-- vor Jahr 1 ? --> | |||
| 00 = {{ #expr: {{{1}}}-({{{1}}}-{{{1}}})/2 }} | |||
| 10 = [[{{ #expr: {{{1}}}-({{{1}}}-{{{1}}})/2 }}]] | |||
| 01 = {{ #expr:-({{{1}}}-({{{1}}}-{{{1}}})/2) + 1 }} {{BCE|nbsp}} | |||
| 11 = [[{{ #expr:-({{{1}}}-({{{1}}}-{{{1}}})/2) + 1 }} {{BCE|sp}}{{!}}<!-- | |||
-->{{ #expr:-({{{1}}}-({{{1}}}-{{{1}}})/2) + 1 }} {{BCE|nbsp}}]] | |||
}}<!-- | }}<!-- | ||
--></includeonly> | --></includeonly> |