Vorlage:Bild: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(32 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
 
Variable
 
Variable
  
-->{{#vardefine:id
 
| {{#regex:{{#regex:  {{lcfirst:{{PAGENAME}}}}
 
  |/^([^\.]+)\.[^\.]+/e
 
  |i_$1
 
  }}
 
  |/\s/
 
  |_
 
  }}
 
}}<!--
 
 
-->{{#vardefine: b_titel
 
-->{{#vardefine: b_titel
| {{#if:{{{titel|}}}
+
| {{{titel|}}}
  | {{ucfirst:{{{titel|}}} }} <!--
 
--> {{#if:{{{titel_j|}}} | (''{{{titel_j|}}}'') }}
 
  | {{#if:{{{titel_d|}}}
 
    |{{ucfirst:{{{titel_d|}}} }} <!--
 
--> {{#if:{{{titel_j|}}}| (''{{{titel_j|}}}'') }}
 
    |{{#if:{{{titel_j|}}}
 
      |''{{ucfirst:{{{titel_j|}}} }}''
 
      |{{PAGENAME}}
 
      }}
 
    }}
 
  }}
 
 
}}<!--
 
}}<!--
 
-->{{#vardefine: artist_name
 
-->{{#vardefine: artist_name
Zeile 41: Zeile 21:
 
   |{{{artist|}}}; {{{artist_vor|}}}
 
   |{{{artist|}}}; {{{artist_vor|}}}
 
   |{{{artist|}}}
 
   |{{{artist|}}}
 +
  }}
 +
}}<!--Detail:
 +
-->{{#vardefine:detail
 +
| {{#ifeq:{{{detail|}}}|1|Detail}} 
 +
}}<!--Material:
 +
-->{{#vardefine: material
 +
| {{#if:{{{material|}}}
 +
  |{{{material|}}}{{#if:{{{maße|}}}|<span>; {{{maße|}}}</span> }}
 +
  |{{{maße|}}}
 
   }}
 
   }}
 
}}<!--
 
}}<!--
 
-->{{#vardefine: material
 
-->{{#vardefine: material
| {{#if:{{{material|}}}
+
| {{#if:{{#var:material}}  
   | {{#if:{{{maße|}}}
+
   | {{#var:material}}{{#if:{{#var:detail}}|<span>; {{#var:detail}}</span> }}
    |{{{material|}}}, {{{maße|}}}
+
   | {{#var:detail}}
    |{{{material|}}}
 
    }}
 
   | {{#if:{{{maße|}}}
 
    |{{{maße|}}}
 
    }}
 
 
   }}
 
   }}
 
}}<!--Zeit:
 
}}<!--Zeit:
Zeile 58: Zeile 42:
 
   |{{{periode|}}}{{#if:{{{jahr|}}}|, {{{jahr|}}} }}
 
   |{{{periode|}}}{{#if:{{{jahr|}}}|, {{{jahr|}}} }}
 
   | {{{jahr|}}}  
 
   | {{{jahr|}}}  
   }}
+
   }}
}}<!-- Treasure:
+
}}<!--
 +
-->{{#vardefine: zeit
 +
|{{ucfirst:{{#var: zeit}}}}
 +
}}<!--Treasure:
 
-->{{#vardefine: treasure
 
-->{{#vardefine: treasure
 
| {{#switch:{{{treasure|}}}
 
| {{#switch:{{{treasure|}}}
Zeile 93: Zeile 80:
 
   |{{ucfirst:{{#var: material}}}}  
 
   |{{ucfirst:{{#var: material}}}}  
 
   }}  
 
   }}  
}}<!-- Detail:
+
}}<!--  Artist
-->{{#vardefine: g
 
| {{#if:{{#var:g}}
 
   |{{#var:g}}{{#ifeq:{{{detail|}}}|1|, Detail }}
 
  | {{#ifeq:{{{detail|}}}|1| Detail }} }}
 
}}<!-- Artist
 
 
-->{{#vardefine: g
 
-->{{#vardefine: g
 
| {{#if:{{#var:g}}
 
| {{#if:{{#var:g}}
Zeile 145: Zeile 127:
 
   |{{ucfirst:{{{ort|{{{besitz|}}} }}}}}
 
   |{{ucfirst:{{{ort|{{{besitz|}}} }}}}}
 
   }}
 
   }}
}}<!--  
+
}}<!-- Collection
 +
-->{{#vardefine:g
 +
| {{#if:{{#var:g}}
 +
  | {{#var:g}}{{#if: {{{collection|}}}
 +
    |<span>; {{ucfirst:{{{collection|}}}}}</span>
 +
    }}
 +
  |{{ucfirst:{{{collection|}}}}}
 +
  }}
 +
}}<!-- 
 
———————— Quelle —————————  
 
———————— Quelle —————————  
 
-->{{#vardefine: c
 
-->{{#vardefine: c
 
| {{#switch:{{{c|}}}
 
| {{#switch:{{{c|}}}
 
   | cc= {{#fab:creative-commons}}
 
   | cc= {{#fab:creative-commons}}
   | 0= Bildquelle:
+
   | 0= Bildquelle:  
   | #default= ©
+
   | #default= {{#far:copyright}}
 
   }}
 
   }}
 
}}<!--
 
}}<!--
Zeile 160: Zeile 150:
 
   }}<!--
 
   }}<!--
 
-->{{#if: {{{quelle_b|}}}|, {{{quelle_b|}}} }}
 
-->{{#if: {{{quelle_b|}}}|, {{{quelle_b|}}} }}
 +
}}<!--
 +
-->{{#vardefine: quelle
 +
| {{#ifeq: {{{c|}}} |g
 +
  | {{#var: quelle}} (mit freundlicher Genehmigung)
 +
  | {{#var: quelle}}
 +
  }}
 +
}}<!--
 +
-->{{#vardefine:zugriff
 +
| {{#if:{{{quelle_d|}}} 
 +
  |<small> Letzter Zugriff: [[hat_zugriff::{{{quelle_d|}}}]]</small>   
 +
  }}   
 
}}<!--
 
}}<!--
-->{{#vardefine:zugriff
 
| {{#if:{{{quelle_d|}}}
 
  |<nowiki/> <small>(letzter Zugriff: {{{quelle_d|}}})</small>
 
  }} 
 
}}<!--
 
-->{{#vardefine:collection
 
| {{#if: {{{collection|}}}
 
  |<nowiki/> <span class=b_coll>{{{collection|}}}</span>
 
  }}
 
}}<!-- 
 
 
-->{{#vardefine:beschreibung
 
-->{{#vardefine:beschreibung
 
| {{#if: {{{1|{{{beschreibung|}}}}}}
 
| {{#if: {{{1|{{{beschreibung|}}}}}}
Zeile 177: Zeile 168:
 
   }}  
 
   }}  
 
}}<!--   
 
}}<!--   
 +
 +
-->{{#vardefine:info_kurz_bild
 +
| {{#if: {{#var:artist}}|{{#var:artist}}. }} <!--
 +
-->{{#if: {{#var:zeit}}|{{#var:zeit}}. }} <!--
 +
-->{{#if:{{#var:quelle}} |{{#var:c}} {{#var:quelle}}. }}
 +
}}<!--
 +
-->{{#vardefine:info_kurz_bild
 +
| {{#if: {{#var:info_kurz_bild}} | <br> {{#var:info_kurz_bild}} }}
 +
}}<!--
 +
 
-->{{#vardefine:info_kurz
 
-->{{#vardefine:info_kurz
|<span class=info_kurz><!--
+
|<small class=info_kurz><!--
 
-->{{#if:{{{1|{{{beschreibung|}}}}}}
 
-->{{#if:{{{1|{{{beschreibung|}}}}}}
 
   |{{{1|{{{beschreibung|}}}}}}
 
   |{{{1|{{{beschreibung|}}}}}}
 
   |{{#var:b_titel}}.
 
   |{{#var:b_titel}}.
 
   }} <!--
 
   }} <!--
-->{{#if: {{#var:artist}}|{{#var:artist}}. }} <!--  
+
-->{{#var:info_kurz_bild}} <!--
-->{{#if: {{#var:zeit}}|{{#var:zeit}} }} <!--  
+
--></small>}}<!--
-->{{#if:{{#var:quelle}} |<br/>{{#var:c}} {{#var:quelle}} }}<!--
+
-->{{#vardefine:info_kurz
--></span>
+
| {{#regex: {{#var:info_kurz}}
}}<!-- 
+
  |/([^\.])\.\.([^\.]{{!}}$)/
-->{{#vardefine:formularlink
+
  |$1.$2
| {{#ifanon:<!--do nothing-->|
 
<div style='text-align: center;font-size: xx-small; margin-top: 1.5rem; border-top:1px solid #ccc'>[[Spezial:Mit_Formular_bearbeiten/Bild/{{FULLPAGENAME}}|Diese Seite mit Formular bearbeiten]]</div>
 
 
   }}
 
   }}
 
}}<!--
 
}}<!--
 +
 
-->{{#vardefine:zeitalter
 
-->{{#vardefine:zeitalter
 
| {{#switch: {{#regex: {{{zeitalter|}}}|/[\S]+/}}
 
| {{#switch: {{#regex: {{{zeitalter|}}}|/[\S]+/}}
Zeile 220: Zeile 220:
  
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
|{{titel|{{#var:b_titel}}|Bildseite:}}<!--   
+
| {{Bild_ns6
--><dl><dd><small><!--
+
|titel={{#var:b_titel}}
-->{{#if:{{#var:g}}
+
|info= {{#var:g}}
    |{{#var:g}}. <nowiki/>
+
|quelle= {{#var:quelle}}
  }}<!--
+
|c= {{#var:c}}
-->{{#if:{{#var:quelle}}
+
|zugriff= {{#var:zugriff}}
    |{{#var:c}} [[hat_bildquelle::{{#var:quelle}}]]
+
|beschreibung= {{ucfirst:{{{1|{{{beschreibung|}}} }}} }}
  }}<!--
+
|thema= {{{thema|}}}
-->{{#var:zugriff}}<!--
+
|medium= {{{medium|}}}
-->{{#var:collection}}<!--
+
|g-artist= {{#var:artist_zeit}}
--></small></dd></dl> <!--
+
|zeitalter= {{#var:zeitalter}}
-->{{#if:{{{1|{{{beschreibung|}}} }}}|<div class=beschreibung>{{ucfirst:{{{1|{{{beschreibung|}}} }}} }}</div> }}
+
|info_kurz= {{#var:info_kurz}}
 
}}<!--
 
}}<!--
  
Thema neu 
+
Attribute für Bildseite
  
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
+
-->{{#set:hat_copyrightinfo={{{c|c}}}  
| {{#var:formularlink}} <!--
+
  | {{#set:hat genehmigung von={{#ifeq:{{{c|c}}}|g|{{{q_text|}}} }} }}
-->{{#if: {{{thema|}}}{{{medium|}}}{{#var:artist_zeit}}
+
   | hat_bildquellenlink={{{q_link|}}}
   |<p>Schlagworte (neu):</p><div class=shortlist>{{#if: {{{thema|}}}
+
  | hat_bildquellen_domain={{#regex: {{{q_link|}}}
    |* Thema: {{#arraymap: {{{thema|}}}|,|§
+
    |/(.*https*:\/\/(www\d*\.)?)([^\/\s]+).*/
      | {{queryformlink|linktext={{#regex:§|/[\s_]Sonstiges/|}}<!--
+
     |$3
    -->|thema=§|file=Bild}}{{#set: hat_thema_neu=§}}[[Kategorie:§]]|,\s
+
     }}
      }}
 
    }} {{#if: {{{medium|}}}
 
    |* Medium: {{#arraymap: {{{medium|}}}|,|§
 
      |{{queryformlink|linktext=§|medium=§|file=Bild}}{{#set: hat_medium_neu=§}}[[Kategorie:§]]|,\s
 
      }}
 
    }} {{#if: {{#var:artist_zeit}}
 
     |* Künstler:  {{#arraymap: {{#var:artist_zeit}}|,|§
 
      |{{Bild_artist_q|artist=§|time={{#var:zeitalter}} }}{{#set: gemacht_von=§}}|,\s
 
      }}
 
     }} </div>
 
  | [[Kategorie:Glossareintrag ohne Thema]]
 
 
   }}
 
   }}
}} <!--
 
 
Bildverwendung
 
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
 
|{{shortlist|{{#ask: 
 
[[:+||Metalog:+]]
 
[[uses_image::{{#var:id}}]]
 
| sort=Chapternumber
 
| format=ul 
 
| template=Glossar eintrag a
 
| userparam={{#var:id}}
 
| link=none
 
| intro= Bildverwendung:
 
}}}}
 
}} <!--
 
 
Schlagworte und Kategorien
 
 
SUB-TEMPLATES
 
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
 
| {{Bild_schlagworte2
 
| form= {{{form|}}}
 
| inhalt= {{{inhalt|}}}
 
| genre= {{{genre|}}}
 
| genre2= {{{genre2|}}}
 
| artist= {{#var:artist_name}}
 
| artist_vor= {{{artist_vor|}}}
 
| artist_fam= {{{artist|}}}
 
| artist_dates= {{{artist_dates|}}}
 
| zeitalter= {{{zeitalter|}}}
 
| periode= {{{periode|}}}
 
| jahr= {{{jahr|}}}
 
| serie_j= {{{serie_j|}}}
 
  }}<!--
 
-->{{#set: hat_bildtitel={{#var:b_titel}}
 
|hat bildinfo= {{#var:g}}
 
|hat bildbeschreibung= {{{1|{{{beschreibung|}}} }}}
 
|is_image_article={{#titleparts:{{PAGENAME}}| |-1}}
 
  }}
 
}}<!--
 
 
  SMW Cite
 
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
 
| {{#scite:{{PAGENAME}}
 
| reference={{PAGENAME}}
 
| type=image
 
| citation text=[[{{FULLPAGENAME}}|75x75px|right|class=noviewer]]{{#var:info_kurz}}
 
}}
 
}}<!--
 
 
CSS
 
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 6
 
| {{#ifanon: <!--do nothing-->
 
  | {{#CSS:  #filehistory, #mw-imagepage-section-filehistory {
 
    display: block;
 
    }
 
    }}
 
  }}<!--
 
 
  Wenn nicht in Namespace:Bild
 
 
-->
 
 
| {{#var:info_kurz}}
 
| {{#var:info_kurz}}
}}<!--
+
}}
<noinclude><!--
+
<noinclude>
 
+
<templatedata>
##########
+
{
Kopiervorlage:
+
"params": {
##########
+
"1": {},
--><noinclude>
+
"titel": {},
===Code für Bildseiten===
+
"artist": {},
<pre>
+
"artist_vor": {},
{{ bild
+
"artist_dates": {},
| titel
+
"detail": {},
| detail=0 <!-- 0 oder 1 (= „Detail“) -->
+
"material": {},
| form= <!--  Architektur, Skulptur, Malerei, Druck, Holzschnitt, Photographie, Schrift -->
+
"maße": {},
| inhalt= <!-- </nowiki>Tempel, Schrein, Objekt, Draufsicht, Pantheon, Wächter, Person, Portrait, Ritus, Pandämonium, Tier -->
+
"periode": {},
| thema=
+
"jahr": {},
| medium=
+
"treasure": {},
| genre= <!--Schreinhalle Tempelhalle Farbholzschnitt Hängerollbild Querbildrolle Statue Relief Photographie Zeremonie Buchillustration ...-->
+
"genre": {},
| genre2= <!-- nishiki-e  surimono  shunga  -->
+
"titel_d": {},
| material= <!-- Seide, Papier, Holz, Metall, Stein, Bronze, bemalt, vergoldet, Farbe, Tusche  ...-->
+
"genre2": {},
| maße= <!-- 25,5 x 19,1 cm ... Höhe: 30,2 cm -->
+
"serie": {},
| artist=
+
"buch": {},
| artist_vor = <!-- Vornamen, bei westl. Künstlern -->
+
"serie_j": {},
| artist_dates= <!--1421–1482-->
+
"ort": {},
| zeitalter= <!-- 1 (alt), 2 (Edo), 3 (modern) -->
+
"besitz": {},
| periode= <!--Heian-Zeit  Kamakura-Zeit Edo-Zeit ... oder: China,  Indien, Tibet ...-->
+
"c": {},
| jahr= <!--1432  15. Jh.  ...-->
+
"q_link": {},
| serie= <!--''japanisch'' (Ü)-->
+
"q_text": {},
| buch= <!--''japanisch'' (Ü)-->
+
"quelle_b": {},
| serie_j= <!--1831–32-->
+
"collection": {},
| ort= <!-- oder: im Besitz des ...  -->
+
"quelle_d": {},
| treasure=0 <!-- 0 oder 1 (= „Nationalschatz“), 2, 12 -->
+
"beschreibung": {},
| q_link= <!--Link zur Quelle: http://... -->
+
"zeitalter": {},
| q_text= <!-- Text zur Quelle -->
+
"thema": {},
| quelle_b= <!-- Zusatztext zur Quelle-->
+
"medium": {}
| c = c <!-- c, cc (creative commons), 0 (Copyright unklar)-->
+
},
| quelle_d= <!-- retrieved, 2011/7/12  -->
+
"description": "Gestaltet Bildseiten"
| collection=
+
}
| beschreibung= <!-- Beschreibung -->
+
</templatedata>
}}  
 
</pre>
 
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 16. November 2023, 15:40 Uhr

.

Gestaltet Bildseiten

Vorlagenparameter

ParameterBeschreibungTypStatus
11

keine Beschreibung

Unbekanntoptional
Titeltitel

keine Beschreibung

Unbekanntoptional
Artistartist

keine Beschreibung

Unbekanntoptional
Artist_vorartist_vor

keine Beschreibung

Unbekanntoptional
Artist_datesartist_dates

keine Beschreibung

Unbekanntoptional
Detaildetail

keine Beschreibung

Unbekanntoptional
Materialmaterial

keine Beschreibung

Unbekanntoptional
Maßemaße

keine Beschreibung

Unbekanntoptional
Periodeperiode

keine Beschreibung

Unbekanntoptional
Jahrjahr

keine Beschreibung

Unbekanntoptional
Treasuretreasure

keine Beschreibung

Unbekanntoptional
Genregenre

keine Beschreibung

Unbekanntoptional
Titel_dtitel_d

keine Beschreibung

Unbekanntoptional
Genre2genre2

keine Beschreibung

Unbekanntoptional
Serieserie

keine Beschreibung

Unbekanntoptional
Buchbuch

keine Beschreibung

Unbekanntoptional
Serie_jserie_j

keine Beschreibung

Unbekanntoptional
Ortort

keine Beschreibung

Unbekanntoptional
Besitzbesitz

keine Beschreibung

Unbekanntoptional
Cc

keine Beschreibung

Unbekanntoptional
Q_linkq_link

keine Beschreibung

Unbekanntoptional
Q_textq_text

keine Beschreibung

Unbekanntoptional
Quelle_bquelle_b

keine Beschreibung

Unbekanntoptional
Collectioncollection

keine Beschreibung

Unbekanntoptional
Quelle_dquelle_d

keine Beschreibung

Unbekanntoptional
Beschreibungbeschreibung

keine Beschreibung

Unbekanntoptional
Zeitalterzeitalter

keine Beschreibung

Unbekanntoptional
Themathema

keine Beschreibung

Unbekanntoptional
Mediummedium

keine Beschreibung

Unbekanntoptional