Formular:ARCHIUM FORM hascher object: Unterschied zwischen den Versionen
Aus Denkmalpflege
| Zeile 1: | Zeile 1: | ||
| − | <!-- | + | <!-- ARCHIUM_TEMPLATE_hascher_display --> |
| − | <!-- Version | + | <!-- Version 20200309 --> |
| − | <!-- This | + | <!-- This template queries the underlying cargo database |
| − | + | and displays the results in a pleasant way --> | |
{{ARCHIUM_HIDE_BEGIN}} | {{ARCHIUM_HIDE_BEGIN}} | ||
| − | < | + | <includeonly> |
| − | {{# | + | <!-- MAGIC WORDS --> |
| − | </ | + | __NOEDITSECTION__ |
| + | __NOTOC__ | ||
| + | |||
| + | <!-- QUERY STUFF AND WRITE RESULTS TO VARIABLES --> | ||
| + | <!-- query type --> | ||
| + | {{#vardefine:type| | ||
| + | {{#switch: | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_type | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_type | ||
| + | |default = nicht kategorisiertes Objekt | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | }} | ||
| + | | object = Denkmalobjekt | ||
| + | | literature = Literatur | ||
| + | | topic = Thema | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query signature --> | ||
| + | {{#vardefine:signature| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_signature | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_signature | ||
| + | |default = keine Signatur angegeben | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query title --> | ||
| + | {{#vardefine:title| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_title | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_title | ||
| + | |default = kein Titel angegeben | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query description --> | ||
| + | {{#vardefine:description| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_description | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_description | ||
| + | |default = keine Beschreibung angegeben | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query remark --> | ||
| + | {{#vardefine:remark| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_remark | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_remark | ||
| + | |default = keine Anmerkungen angegeben | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query timeframe --> | ||
| + | {{#vardefine:timeframe| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_timeframe | ||
| + | |fields= | ||
| + | ARCHIUM_PROPERTY_hascher_date_from, | ||
| + | ARCHIUM_PROPERTY_hascher_date_until | ||
| + | |default = - | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query date of creation --> | ||
| + | {{#vardefine:date_of_creation| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_date_of_creation | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_date_of_creation | ||
| + | |default = - | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | <!-- query date of creator --> | ||
| + | {{#vardefine:creator| | ||
| + | {{#cargo_query: | ||
| + | tables = | ||
| + | ARCHIUM_TABLE_hascher_creator | ||
| + | |fields=ARCHIUM_PROPERTY_hascher_creator | ||
| + | |default = - | ||
| + | |no html | ||
| + | |where = "_pageName" = '{{PAGENAME}}' | ||
| + | |format = ul | ||
| + | }} | ||
| + | }} | ||
| + | {{ARCHIUM_HIDE_END}} | ||
| + | |||
| + | <div class="archium-background-{{#var:type}}"> | ||
| + | <div class="archium-grid-container-header"> | ||
| + | <div class="archium-grid-item-header" style="grid-column: 1 / span 3"> | ||
| + | <h3>Denkmalobjekt</h3> | ||
| + | </div> | ||
| + | <div class="archium-grid-item-header" style="grid-column: 4 /span 3"> | ||
| + | </div> | ||
| + | </div> | ||
| + | |||
| + | <div class="archium-grid-container-identity"> | ||
| + | <h3> Identifizierung </h3> | ||
| + | <div class="archium-grid-item" style="grid-column: 1"; white-space="normal"> | ||
| + | <h4>Objekttyp:</h4> | ||
| + | <p>{{#var:type}}</p> | ||
| + | </div> | ||
| + | |||
| + | <div class="archium-grid-item" style="grid-column: 2"> | ||
| + | <h4>Signatur:</h4> | ||
| + | <p>{{#var:signature}}</p> | ||
| + | </div> | ||
| + | |||
| + | <div class="archium-grid-item" style="grid-column: 3"> | ||
| + | <h4>Titel:</h4> | ||
| + | <p>{{#var:title}}</p> | ||
| + | </div> | ||
| + | |||
| + | <div class="archium-grid-item" style="grid-column: 1"> | ||
| + | <h4>Erstellungsdatum:</h4> | ||
| + | <p>{{#var:date_of_creation}}</p> | ||
| + | </div> | ||
| − | + | <div class="archium-grid-item" style="grid-column: 2 / span 2;"> | |
| − | < | + | <h4>Laufzeiten:</h4> |
| − | + | <p>{{#var:timeframe}}</p> | |
| − | + | </div> | |
| − | + | </div> | |
| − | |||
| − | {{ | ||
| − | |||
| − | + | <div class="archium-grid-container-provenance"> | |
| − | + | <h3>Provenienz</h3> | |
| − | + | <div class="archium-grid-item" style="grid-column: 1;"> | |
| + | <h4>Ersteller:</h4> | ||
| + | <p>{{#var:creator}}</p> | ||
| + | </div> | ||
| + | <div class="archium-grid-item">2</div> | ||
| + | <div class="archium-grid-item">3</div> | ||
| + | <div class="archium-grid-item">4</div> | ||
| + | </div> | ||
| − | + | <div class="archium-grid-container-contents"> | |
| − | + | <h3>Inhalt</h3> | |
| − | + | <div class="archium-grid-item" style="grid-column: 1;"> | |
| − | + | <h4>Thema:</h4> | |
| − | + | <p>{{category}}</p> | |
| − | + | </div> | |
| − | + | <div class="archium-grid-item" style="grid-column: 2;"> | |
| − | + | <h4>Kategorie:</h4> | |
| − | + | <p>{{category}}</p> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
| − | + | <div class="archium-grid-item" style="grid-column: 3;"> | |
| − | + | <h4>Unterkategorie:</h4> | |
| − | + | <p>{{category}}</p> | |
| − | + | </div> | |
| − | + | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |
| − | + | <h4>Beschreibung:</h4> | |
| − | + | <p>{{#var:description}}</p> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | < | ||
</div> | </div> | ||
| − | + | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |
| − | + | <h4>Anmerkungen:</h4> | |
| − | + | <p>{{#var:remark}}</p> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
| − | + | </div> | |
| − | + | ||
| − | + | <div class="archium-grid-container-status"> | |
| − | + | <h3>Objektstatus</h3> | |
| − | + | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |
| − | + | <h4>Beschreibung:</h4> | |
| − | + | <p>{{#var:description}}</p> | |
| − | < | + | </div> |
| − | < | + | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> |
| + | <h4>Anmerkungen:</h4> | ||
| + | <p>{{#var:remark}}</p> | ||
</div> | </div> | ||
| − | + | <div class="archium-grid-item">3</div> | |
| − | + | <div class="archium-grid-item">4</div> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
| − | < | + | |
| − | {{ | + | <div class="archium-grid-container-attachments"> |
| − | + | <h3>Anhänge</h3> | |
| + | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> | ||
| + | <h4>Anmerkungen:</h4> | ||
| + | <p>{{#var:remark}}</p> | ||
| + | </div> | ||
| + | <div class="archium-grid-item">2</div> | ||
| + | <div class="archium-grid-item">3</div> | ||
| + | <div class="archium-grid-item">4</div> | ||
| + | </div> | ||
| + | </div> | ||
| + | <nowiki/> | ||
</includeonly> | </includeonly> | ||
| − | + | <!-- --> | |
<noinclude> | <noinclude> | ||
<!-- CALL HOOKS --> | <!-- CALL HOOKS --> | ||
{{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}} | {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}} | ||
| − | + | <!-- --> | |
| + | <!-- --> | ||
<!-- LICENSE NOTE --> | <!-- LICENSE NOTE --> | ||
| − | <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data | + | <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data --> |
| − | Distributed under the terms of GNU General Public License, | + | <!-- Distributed under the terms of GNU General Public License, version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html --> |
| − | |||
</noinclude> | </noinclude> | ||
Version vom 12. März 2020, 12:34 Uhr
