Zeile 1: |
Zeile 1: |
− | <!-- Get the recordset in array format | + | <noinclude>Diese Vorlage wird in den Chronikseiten verwendet, um Gebäude Baujahr und Abbruchjahr zu automatisieren.</noinclude><!-- |
− | -->{{#vardefine:recordset|{{#ask:[[{{PAGENAME}}::+]] | + | --><includeonly>{{Chronikeintrag|Gebäude}} |
− | |?{{PAGENAME}} | + | {{#ask:[[:+]] [[Baujahr::{{PAGENAME}}]] |
− | |?Gebäude | + | |?Pronomen |
− | | format=array | + | |?Objekt |
− | | sep=<RESULT> | + | |?Architekt |
− | | mainlabel=- | + | |template=Baujahr |
− | }}}}<!-- Get article from which this result came
| + | |format=ul}}<!-- |
− | -->{{#vardefine:article|{{#explode:{{#var:recordset}}|<PROP>|-1}} }}<!-- | + | -->{{#ask:[[:+]] [[Abbruchjahr::{{PAGENAME}}]] |
− | -->{{#vardefine:records|{{#replace:{{#var:recordset}}|<PROP>{{#var:article}}|}} }}<!--
| + | |?Pronomen |
− | -->* {{#replace:{{#var:records}}|<MANY>| (siehe [[{{#var:article}}]]). <li> }} (siehe [[{{#var:article}}]]).
| + | |?Objekt |
− | ----
| + | |?Architekt |
− | {{#var:recordset}}
| + | |template=Abbruchjahr |
− | ----
| + | |format=ul}}</includeonly> |
− | {{#vardefine: start | {{#explode: {{#var: recordset}} | <PROP> | 0}} }}
| |
− | * Good thing: {{#var: start}}
| |
− | {{#vardefine: end | {{#replace: {{#var: recordset}} | {{#var: start}} }} }}
| |
− | ** Just the rest of the fest: {{#var: end}}
| |
− | * get property: {{#explode: {{#var: end}} | <RESULT> | 0}}
| |