Vorlage: ARCHIUM TEMPLATE thorax display: Unterschied zwischen den Versionen
Aus artux
Artux1zu2>SandroSchwarzentrub |
Artux1zu2>SandroSchwarzentrub (Änderung 995 von SandroSchwarzentrub (Diskussion) rückgängig gemacht.) |
||
| Zeile 1: | Zeile 1: | ||
<!-- ARCHIUM_TEMPLATE_hascher_display --> | |||
<!-- Version 20200407 --> | |||
<!-- This template queries the underlying cargo database | |||
and displays the results in a pleasant way --> | |||
{{ARCHIUM_HIDE_BEGIN}} | |||
<!-- load font-awesome files --> | |||
<link href="../fontawesome-free-5.12.1-web/css/all.css" rel="stylesheet"> | |||
<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 = template | |||
|template = ARCHIUM_TEMPLATE_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 = template | |||
|template = ARCHIUM_TEMPLATE_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 = template | |||
|template = ARCHIUM_TEMPLATE_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 = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query timeframe --> | |||
{{#vardefine:timeframe| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_timeframe | |||
|fields= | |||
ARCHIUM_PROPERTY_hascher_date_from = date_from, | |||
ARCHIUM_PROPERTY_hascher_date_until = date_until | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|named args = yes | |||
|template = ARCHIUM_TEMPLATE_format_timeframe | |||
}} | |||
}} | |||
<!-- 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 = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query creator --> | |||
{{#vardefine:creator| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_creator | |||
|fields=ARCHIUM_PROPERTY_hascher_creator | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query editor --> | |||
{{#vardefine:editor| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_editor | |||
|fields=ARCHIUM_PROPERTY_hascher_editor | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query topic --> | |||
{{#vardefine:topic| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_topic | |||
|fields=ARCHIUM_PROPERTY_hascher_topic | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query category --> | |||
{{#vardefine:category| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_category | |||
|fields=ARCHIUM_PROPERTY_hascher_category | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query sub category --> | |||
{{#vardefine:sub_category| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_sub_category | |||
|fields=ARCHIUM_PROPERTY_hascher_sub_category | |||
|default = - | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query title image --> | |||
{{#vardefine:title_image| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_title_image | |||
|fields=ARCHIUM_PROPERTY_hascher_title_image | |||
|default = | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
}} | |||
}} | |||
<!-- query count --> | |||
{{#vardefine:count| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_count | |||
|fields=ARCHIUM_PROPERTY_hascher_count | |||
|default = | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query condition --> | |||
{{#vardefine:condition| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_condition | |||
|fields=ARCHIUM_PROPERTY_hascher_condition | |||
|default = | |||
|no html | |||
|where = "_pageName" = '{{PAGENAME}}' | |||
|format = template | |||
|template = ARCHIUM_TEMPLATE_format_ul | |||
}} | |||
}} | |||
<!-- query all entries which have the same topic --> | |||
{{#vardefine:topic_list| | |||
{{#cargo_query: | |||
tables = | |||
ARCHIUM_TABLE_hascher_topic | |||
|fields=_pageName | |||
|default = | |||
|where = "ARCHIUM_PROPERTY_hascher_topic" = 'Industrie' | |||
|format = ul | |||
}} | |||
}} | |||
{{ARCHIUM_HIDE_END}} | |||
<div class="archium-background-{{#var:type}}"> | |||
<!-- HEADER-CONTAINER --> | |||
<div class="archium-grid-container-base 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> | |||
<!-- IDENTITY-CONTAINER --> | |||
<div class="archium-grid-container-base archium-grid-container-identity"> | |||
<div style = "grid-column: 1 / span 3;"> | |||
/ | <h3><i class="far fa-id-card"></i> Identifizierung</h3> | ||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 1";> | |||
<h4>Objekttyp:</h4> | |||
<p>{{#var:type}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 2 / span 1";> | |||
/ | <h4>Signatur:</h4> | ||
<p>{{#var:signature}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 3 / span 1";> | |||
<h4>Titel:</h4> | |||
<p>{{#var:title}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2";> | |||
} | <h4>Titelbild:</h4> | ||
<p>[[File:{{#var:title_image}}]]</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 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> | |||
<!-- PROVENANCE-CONTAINER --> | |||
<div class="archium-grid-container-base archium-grid-container-provenance"> | |||
<div style = "grid-column: 1 / span 3;"> | |||
} | <h3><i class="fas fa-route"></i> Provenienz</h3> | ||
</div> | |||
/ | <div class="archium-grid-item" style="grid-column: 1;"> | ||
<h4>Ersteller:</h4> | |||
<p>{{#var:creator}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 2;"> | |||
<h4>Bearbeiter:</h4> | |||
<p>{{#var:editor}}</p> | |||
</div> | |||
} | <div class="archium-grid-item">3</div> | ||
/ | <div class="archium-grid-item">4</div> | ||
</div> | |||
/ | <!-- CONTENTS-CONTAINER --> | ||
<div class="archium-grid-container-base archium-grid-container-contents"> | |||
<div style = "grid-column: 1 / span 3;"> | |||
<h3><i class="fas fa-box-open"></i> Inhalt</h3> | |||
</div> | |||
} | <div class="archium-grid-item" style="grid-column: 1 / span 2;"> | ||
/ | <h4>Thema:</h4> | ||
<p>{{#var:topic}}</p> | |||
/ | </div> | ||
<div class="archium-grid-item" style="grid-column: 3 / span 2;"> | |||
<h4>Kategorie:</h4> | |||
} | <p>{{#var:category}}</p> | ||
</div> | |||
<div class="archium-grid-item" style="grid-column: 5 / span 2;"> | |||
/ | <h4>Unterkategorie:</h4> | ||
<p>{{#var:sub_category}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
<h4>Beschreibung:</h4> | |||
<p>{{#var:description}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<h4>Anmerkungen:</h4> | |||
<p>{{#var:remark}}</p> | |||
</div> | |||
</div> | |||
<!-- STATUS-CONTAINER --> | |||
<div class="archium-grid-container-base archium-grid-container-status"> | |||
<div style = "grid-column: 1 / span 3;"> | |||
<h3><i class="far fa-chart-bar"></i> Objektstatus</h3> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
} | <h4>Anzahl:</h4> | ||
<p>{{#var:count}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<h4>Zustand:</h4> | |||
<p>{{#var:condition}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
<h4>3</h4> | |||
<p>3</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<h4>4</h4> | |||
<p>4</p> | |||
</div> | |||
</div> | |||
<!-- ATTACHMENTS-CONTAINER --> | |||
<div class="archium-grid-container-base archium-grid-container-attachments"> | |||
<div style = "grid-column: 1 / span 3;"> | |||
<h3><i class="fas fa-paperclip"></i> Anhänge</h3> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |||
<h4>Anmerkungen:</h4> | |||
<p>{{#var:remark}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |||
<h4>Themenliste:</h4> | |||
<div class = "dropdown-content"> | |||
<p>{{#var:topic_list}}</p> | |||
} | </div> | ||
</div> | |||
<div class="archium-grid-item">3</div> | |||
<div class="archium-grid-item">4</div> | |||
</div> | |||
</div> | |||
} | <nowiki/> | ||
</includeonly> | |||
<!-- --> | |||
<noinclude> | |||
<!-- CALL HOOKS --> | |||
{{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}} | |||
} | <!-- --> | ||
<!-- --> | |||
<!-- LICENSE NOTE --> | |||
<!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data --> | |||
<!-- 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> | |||
} | |||
/ | |||
/ | |||
} | |||
} | |||
/ | |||
/ | |||
/ | |||
} | |||
/ | |||
/ | |||
/ | |||
. | |||
Version vom 7. April 2020, 20:35 Uhr
<link href="../fontawesome-free-5.12.1-web/css/all.css" rel="stylesheet">
