Vorlage:Bild ns6: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(45 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
|_ | |_ | ||
}} | }} | ||
− | |||
− | |||
}}<!-- | }}<!-- | ||
Schreiben | Schreiben | ||
− | --><div class=bildseite>{{titel|{{{titel|}}}|Bildseite:}}<!-- | + | --><div class=bildseite>{{titel |
+ | |{{{titel|}}} | ||
+ | |{{#if: {{{archiv|}}} | Archivbildseite (Bild nicht in Verwendung oder nicht indiziert): | ||
+ | | Bildseite: | ||
+ | }} | ||
+ | }}<!-- | ||
--><dl><dd><small><!-- | --><dl><dd><small><!-- | ||
-->{{#if:{{{info|}}} | -->{{#if:{{{info|}}} | ||
Zeile 19: | Zeile 22: | ||
}} <!-- | }} <!-- | ||
-->{{#if:{{{quelle|}}} | -->{{#if:{{{quelle|}}} | ||
− | |{{{c|}}} [[hat_bildquelle::{{{quelle|}}}]] | + | |{{{c|}}} [[hat_bildquelle::{{{quelle|}}}]] |
}} <!-- | }} <!-- | ||
-->{{#var:zugriff}}<!-- | -->{{#var:zugriff}}<!-- | ||
Zeile 29: | Zeile 32: | ||
preload Bild 180px | preload Bild 180px | ||
− | --><div style='visibility:hidden; height: 0; overflow: hidden'>[[{{FULLPAGENAME}}|180px | + | --><div style='visibility:hidden; height: 0; overflow: hidden'>[[{{FULLPAGENAME}}|180px]]</div><!-- |
+ | |||
+ | Kurzangabe zur Bildquelle erzeugen | ||
+ | |||
+ | -->{{#vardefine:quelle-text | ||
+ | |{{ucfirst: {{#regex: {{#regex: {{#regex: {{#regex: {{#regex: {{{quelle|}}} | ||
+ | |/\[\S+\s([^\]]+).*\]/|$1}} | ||
+ | |/\s*\([^\)]*\)/|}} | ||
+ | |/''/|}} | ||
+ | |/(.{40}[^,\s]*).*/|$1}} | ||
+ | |/[^,]*/}} | ||
+ | }} }}<!-- | ||
+ | -->{{#vardefine:quelle-text | ||
+ | | {{#ifeq: {{#var:quelle-text}} |Unbekannt|<!--do nothing--> | ||
+ | | {{#var:quelle-text}} | ||
+ | }} | ||
+ | }}<!-- | ||
Bildverwendung | Bildverwendung | ||
Zeile 44: | Zeile 63: | ||
}}</div> <!-- | }}</div> <!-- | ||
− | + | Schlagworte | |
− | -->{{#if: {{{thema|}}}{{{medium|}}}{{{g-artist|}}} | + | -->{{#if: {{{thema|}}}{{{medium|}}}{{{g-artist|}}}{{#var:quelle-text}} |
|<div class=shortlist>Schlagworte: {{#if: {{{thema|}}} | |<div class=shortlist>Schlagworte: {{#if: {{{thema|}}} | ||
|* Thema: {{#arraymap: {{{thema|}}}|,|§ | |* Thema: {{#arraymap: {{{thema|}}}|,|§ | ||
Zeile 59: | Zeile 78: | ||
}} {{#if: {{{g-artist|}}} | }} {{#if: {{{g-artist|}}} | ||
|* Künstler: {{#arraymap: {{{g-artist|}}}|,|§ | |* Künstler: {{#arraymap: {{{g-artist|}}}|,|§ | ||
− | |{{prettyURL|page=Metalog:Bilder|key=artist|value=§|text={{#regex:§|/;/|,}}}}{{#set: gemacht_von=§}}|,\s | + | |{{prettyURL|page=Metalog:Bilder|key=artist|value=§|text={{#regex:§|/;/|,}}}}{{#set: gemacht_von=§}}|,\s |
− | |||
}} | }} | ||
− | }} </div> | + | }} {{#if: {{#var:quelle-text}} |
+ | |* Bildquelle: {{prettyURL|page=Metalog:Bilder|key=quelle|value={{#var:quelle-text}}|text={{#var:quelle-text}} }} {{#set: hat_bildquellentext= {{#var:quelle-text}} }} | ||
+ | }}</div> | ||
| [[Kategorie:Bild ohne Thema]] | | [[Kategorie:Bild ohne Thema]] | ||
}}<!-- | }}<!-- | ||
Zeile 68: | Zeile 88: | ||
Verwandte Bilder | Verwandte Bilder | ||
− | -->{{# | + | -->{{#arraydefine: v_terms |
− | | {{# | + | |{{#show: {{FULLPAGENAME}} |?cites_term}}, {{#show: {{FULLPAGENAME}} |?gemacht_von}}, |
− | + | |, |unique, sort=rand | |
− | + | }}<!-- | |
− | + | ||
− | + | Bilderliste erzeugen | |
− | + | -->{{#arraydefine: img_terms | |
− | + | | {{#arrayprint: v_terms | |
− | + | |, |§ | |
− | + | |{{#ask: | |
− | -->{{# | + | [[cites_term::§]][[is_image_article::!{{PAGENAME}}]] OR |
− | |{{! | + | [[gemacht_von::§]][[is_image_article::!{{PAGENAME}}]] |
+ | | format=plain | ||
+ | | link= none | ||
+ | | limit= 9 | ||
+ | | searchlabel= | ||
}} | }} | ||
+ | }} | ||
+ | |, |unique, sort=rand | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | Bilder reduzieren |
− | + | -->{{#arrayslice:img_terms_short | |
− | + | |img_terms|0|9 | |
− | + | }}<!-- | |
− | + | Bilder anzeigen | |
− | + | -->{{#ifeq: {{#arraysize:img_terms_short}} |0 |<!--do nothing--> | |
− | + | |<div> | |
− | | | + | <p>Verwandte Bilder:</p> |
− | + | <div class='galerie_glossar b_liste'><!-- | |
− | + | -->{{#arrayprint: img_terms_short||§ | |
− | }} | + | |<div class=b_bild>[[§|180x180px|class=noviewer]]</div> |
+ | }} | ||
+ | </div> | ||
+ | </div> | ||
}}<!-- | }}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Attribute | Attribute | ||
− | -->{{#set: is_image_article={{PAGENAME}} | + | -->{{#set: {{#if: {{{archiv|}}} |
+ | | is_archived_image_article={{PAGENAME}} | ||
+ | | is_image_article={{PAGENAME}} | ||
+ | }} | ||
| periode={{{zeitalter|}}} | | periode={{{zeitalter|}}} | ||
}}<!-- | }}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
SMW Cite | SMW Cite | ||
Zeile 152: | Zeile 141: | ||
}}<!-- | }}<!-- | ||
− | Attribute für Bilderabfrage | + | Attribute für Bilderabfrage (Metalog:Bilder) |
− | + | ||
− | -->{{# | + | Bildeintrag in Form eines Attributs erzeugen |
− | + | -->{{#set: item-bilderliste= <div class='js-Glossar imgs-G-neu' <!-- | |
− | | | + | DIV enthält Daten zur Bilderauswahl auf Metalog:Bilder |
− | + | -->data-thema='{{{thema|}}}' data-medium='{{{medium|}}}' <!-- | |
− | + | leeres Attribut "data-artist" verhindern | |
− | + | -->{{#if:{{{g-artist|}}} |data-artist='{{{g-artist|}}}' }}<!-- | |
− | + | -->{{#if:{{{zeitalter|}}} |data-time='{{{zeitalter|}}}' }}<!-- | |
− | | | + | -->{{#ifeq:{{{quelle|}}} | unbekannt |<!--do nothing--> |
− | + | | {{#if:{{{quelle|}}} |data-quelle='{{#var:quelle-text}}' }} | |
− | + | }}><!-- | |
− | + | --><span class='thumb-G-neu' data-src='<!-- | |
− | + | relativen Pfad für thumb-image in data-src verpacken | |
− | }}<!-- | + | -->{{#regex: {{filepath:{{PAGENAME}}|180}} |/\/r\/images.*/ }}<!-- |
− | -->{{# | + | dummy-image, wird später durch data-src ersetzt |
− | | | + | -->'>[[Bild:Grey.png|16x16px|class=noviewer|link={{FULLPAGENAME}}]]</span><!-- |
− | + | Text | |
+ | -->[[:{{FULLPAGENAME}}|{{{titel|}}}]]. {{{info-liste|}}}<!-- | ||
+ | -->{{#if:{{{quelle|}}}|. Bild: {{#var:quelle-text}} }}<!-- | ||
+ | --></div> | ||
}}<!-- | }}<!-- | ||
CSS | CSS | ||
− | -->{{#ifanon: | + | -->{{#CSS: {{#ifanon: {{#if: {{{archiv|}}} | |
− | + | #content, #footer { | |
+ | display:none; | ||
+ | } | ||
+ | body::before { | ||
+ | content: 'Bild nicht in Verwendung'; | ||
+ | display: block; | ||
+ | position: relative; | ||
+ | top: 40vh; | ||
+ | background: #fff; | ||
+ | text-align: center; | ||
+ | padding: 2em; | ||
+ | } }} | ||
+ | | #filehistory, #mw-imagepage-section-filehistory { | ||
display: block; | display: block; | ||
} | } | ||
− | + | }} | |
}} | }} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
+ | Erstellt den Bildtext mit Daten von [[Vorlage:Bild]]. | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Zeile 196: | Zeile 201: | ||
"info_kurz": {} | "info_kurz": {} | ||
}, | }, | ||
− | "description": " | + | "description": "" |
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 23. April 2025, 17:30 Uhr
Erstellt den Bildtext mit Daten von Vorlage:Bild.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Titel | titel | keine Beschreibung | Unbekannt | optional |
Info | info | keine Beschreibung | Unbekannt | optional |
Quelle | quelle | keine Beschreibung | Unbekannt | optional |
C | c | keine Beschreibung | Unbekannt | optional |
Zugriff | zugriff | keine Beschreibung | Unbekannt | optional |
Beschreibung | beschreibung | keine Beschreibung | Unbekannt | optional |
Thema | thema | keine Beschreibung | Unbekannt | optional |
Medium | medium | keine Beschreibung | Unbekannt | optional |
G-artist | g-artist | keine Beschreibung | Unbekannt | optional |
Zeitalter | zeitalter | keine Beschreibung | Unbekannt | optional |
Info_kurz | info_kurz | keine Beschreibung | Unbekannt | optional |