Vorlage:Glossar eintrag: Unterschied zwischen den Versionen

Wechseln zu: Navigation, Suche
 
(46 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 11: Zeile 11:
 
| desc_of_term=   
 
| desc_of_term=   
 
| tags=   
 
| tags=   
 +
| map=
 +
| zoom=
 +
| type=
 +
| icon=
 
}}  
 
}}  
 
</nowiki>
 
</nowiki>
Zeile 17: Zeile 21:
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:spr
+
-->{{#vardefine:spr |{{{sprache|jap.}}} }}<!--
|{{#regex: {{{sprache|jap.}}} | /\w+/}}
+
-->{{#vardefine:spr  
 +
| {{#ifeq: {{#regex: {{#var:spr}} | /\W/}} |.|{{lc:{{#var:spr}}}}| {{#var:spr}} }}
 
}}<!--
 
}}<!--
 +
-->{{#vardefine:sprache
 +
| {{#switch:{{lc:{{{sprache|jap.}}}}} |
 +
| jap.= Japanisch
 +
| chin.= Chinesisch
 +
| kor.= Koreanisch
 +
| west.= Westlich
 +
| skt.= Sanskrit
 +
| #default= {{{sprache|}}}
 +
}} }}<!--
 
-->{{#vardefine:set_spr
 
-->{{#vardefine:set_spr
|([[lang_of_term::{{#var:spr}}.]]{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})
+
|<span class=g_lang>([[lang_of_term::{{#var:spr}}| ]][[Metalog:Glossar/{{#var:sprache}}|{{#var:spr}}]]{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})</span>
 
}}<!--
 
}}<!--
 +
-->{{#vardefine:term
 +
| [[styled_term::{{{styled_term_oD|{{{styled_term|}}}}}}| ]][[styled_term_mD::{{{styled_term|}}}]]
 +
}}<!--
 
-->{{#vardefine:suchbegriff
 
-->{{#vardefine:suchbegriff
 
| {{#regex:{{#regex: {{{styled_term_oD|{{{styled_term|}}}}}}|/ /e|_}}|/'/e|}}
 
| {{#regex:{{#regex: {{{styled_term_oD|{{{styled_term|}}}}}}|/ /e|_}}|/'/e|}}
Zeile 29: Zeile 46:
 
| {{#ifeq: {{NAMESPACE}} | Glossar | {{{original_script|}}} |}}
 
| {{#ifeq: {{NAMESPACE}} | Glossar | {{{original_script|}}} |}}
 
}}<!--  
 
}}<!--  
-->{{#vardefine:id | {{#regex: {{lc:{{NAMESPACE}}}}|/\w/}}-{{#var:code}} }}<!--
+
-->{{#vardefine:id | {{#regex: {{lc:{{NAMESPACE}}}}|/\w/}}-{{lc:{{#var:code}}}} }}<!--
  
 
SCHREIBEN
 
SCHREIBEN
  
 
-->{{titel| Glossareintrag „{{{styled_term_oD|{{{styled_term|}}}}}}“ }}  
 
-->{{titel| Glossareintrag „{{{styled_term_oD|{{{styled_term|}}}}}}“ }}  
 +
<div class= g_maininfo>
 +
<p class=g_styled_term>{{#var:term}} [[original_script::{{{original_script|}}}|{{{original_script| }}}]] {{#var:set_spr}}</p>
 +
<p class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</p>
 +
<!--
 +
USES TERM
  
<span class=g_styled_term>[[styled_term::{{{styled_term|}}}]] [[original_script::{{{original_script|}}}|{{{original_script| }}}]] {{#var:set_spr}}</span>
+
-->
 +
<div class='g_links_artikel'>{{#ask:
 +
[[:+]]
 +
[[uses_term::{{#var:code}}]]  
 +
| format=ul
 +
| intro= <h3>Artikel zu „{{{styled_term_oD|{{{styled_term|}}}}}}“:</h3>
 +
| link= none
 +
| template= smw_g
 +
| userparam= {{lc:{{#regex:{{NAMESPACE}}|/\w/}}}}-{{#var:code}}
 +
}}</div><!--
  
<span class=g_desc_of_term>[[desc_of_term::{{{desc_of_term|}}}]]</span><!--  
+
------------Fachbegriffe-------------
 +
--><div class='g_links_glossar'>{{#ask:
 +
[[Glossar:+]][[cites_term::{{#var:code}}]] OR
 +
[[Skt:+]][[cites_term::{{#var:code}}]]  
 +
| ?styled_term=
 +
| format=plain
 +
| link= none
 +
| template= smw_links_12
 +
| sep= ,&ensp;
 +
| intro= <h3>Verwandte Fachbegriffe:</h3>
 +
:
 +
}}</div></div><!--
  
Themen, externe Links
+
Themen
  
--><div class=g_thema>
+
--><div class=g_thema><!--
Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[category:$0]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
+
-->Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[hat_thema::$0| ]] [[category:$0]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
 +
 
 +
Attribute
 +
-->[[glossar_id::{{#var:id}}| ]]<!--
 +
 
 +
externe Links
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
 
--><span class=g_links_extern>{{#if: {{#var:suche_kanji}}| <!--
 +
 
Suche nach Kanji:
 
Suche nach Kanji:
-->[[Bild:Wadoku logo.svg| x20px| link=http://www.wadoku.de/search/{{#var:kanji}}| Suche {{{kanji|}}} in Wadoku.de]] •  
+
-->[[Bild:Wadoku logo.svg| x20px| link=http://www.wadoku.de/search/{{#var:kanji}}| Suche {{{kanji|}}} in Wadoku.de]] • [[Bild:Wikipedia-icon.png| 20px
[[Bild:Wikipedia-icon.png| 20px| link=https://ja.wikipedia.org/w/index.php?search={{#var:kanji}}| Suche {{{kanji|}}} in Wikipedia(ja)]] •  
+
| link=https://ja.wikipedia.org/w/index.php?search={{#var:kanji}}| Suche {{{kanji|}}} in Wikipedia(ja)]] • [[Bild:Google-icon.png| 20px
[[Bild:Google-icon.png| 20px| link=https://www.google.co.jp/#q={{#var:kanji}}| Suche {{{kanji|}}} mit Google(ja)]] •  
+
| link=https://www.google.co.jp/#q={{#var:kanji}}| Suche {{{kanji|}}} mit Google(ja)]] • [[Bild:camera-icon.png| 20px
[[Bild:camera-icon.png| 20px| link=https://www.google.co.jp/#q={{#var:kanji}}&tbm=isch| Suche {{{kanji|}}} mit Google Images(ja)]]
+
| link=https://www.google.co.jp/#q={{#var:kanji}}&tbm=isch| Suche {{{kanji|}}} mit Google Images(ja)]]
 
| <!--
 
| <!--
Suche nach Transkription:
 
-->[https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}} Wikipedia] •
 
[https://www.google.com/#q={{#var:suchbegriff}} Google] •
 
[https://www.google.com/#q={{#var:suchbegriff}}&tbm=isch Google Images]
 
}}
 
</span></div><!--
 
 
USES TERM
 
  
-->
+
Suche nach Transkription:
<div class='g_links_artikel'>{{#ask:
+
-->[[Bild:Wikipedia-icon.png| 20px| link=https://en.wikipedia.org/w/index.php?search={{#var:suchbegriff}}| Suche {{{romaji|}}} in Wikipedia]] • [[Bild:Google-icon.png| 20px
[[category:Artikel]]
+
| link=https://www.google.com/#q={{#var:suchbegriff}}| Suche {{{romaji|}}} mit Google]] [[Bild:camera-icon.png| 20px
[[uses_term::{{#var:code}}]]  
+
| link=https://www.google.com/#q={{#var:suchbegriff}}&tbm=isch| Suche {{{romaji|}}} mit Google Images]]
| format= ul
+
}}</span></div><!--
| link=none
 
| template= smw_g
 
| userparam= {{#var:id}}
 
}}</div>
 
<div class='g_links_glossar'>{{#ask:
 
[[category:glossar]]
 
[[uses_term::{{#var:code}}]]
 
| format= ul
 
}}</div><!--
 
  
 
------------Bilder-------------
 
------------Bilder-------------
 
--><div class='g_links_bilder b_liste'>{{#ask:  
 
--><div class='g_links_bilder b_liste'>{{#ask:  
 
[[Bild:+]]
 
[[Bild:+]]
[[uses_term::{{#var:code}}]]   
+
[[cites_term::{{#var:code}}]]   
| format= ul
+
| format=ul
 
| link=none
 
| link=none
| template= smw_g_img
+
| template=smw_g_img
| intro= <h3>Bilder mit Bezug zu „{{{styled_term_oD|{{{styled_term|}}}}}}“</h3>
+
| class= b_liste
 +
| limit= 9
 +
| order= rand
 +
| searchlabel= Weitere Bilder...
 +
| intro= <h3>Bilder zu „{{{styled_term_oD|{{{styled_term|}}}}}}“:</h3>
 
}}</div><!--
 
}}</div><!--
  
KATEGORIEN
+
-----MAP-----
 
+
-->{{#if: {{{map|}}}
-->[[category:glossar]][[defines_term::{{#var:code}}| ]]<!--
+
|{{map
 +
| {{{map| }}}~ ~ ~ ~ ~{{{romaji|}}}
 +
| caption= Geographische Lage von {{{styled_term_oD|{{{styled_term|}}}}}}; s.a. [[Metalog:Karte]]
 +
| zoom= {{#if: {{{zoom|}}}| {{{zoom|}}} | 9 }}
 +
| type= {{#if: {{{style|{{{type| }}}}}}| {{{style|{{{type| }}}}}} | terrain }}
 +
| height=400px
 +
| controls= type
 +
| icon= {{ucfirst:{{#if:{{{icon|}}}|{{{icon|}}}|Star}} }}_icon.png
 +
}} }}<!--
  
 
CSS
 
CSS
Zeile 92: Zeile 135:
 
-->{{#css:
 
-->{{#css:
 
.g_styled_term {
 
.g_styled_term {
  font-size: 1.2em;
+
  font-size: 1.5em;
 +
text-align: center;
 +
}
 +
.g_lang {
 +
  font-size: .66em;
 +
  text-transform: uppercase;
 +
}
 +
#content h3 {
 +
  font-size: 1.2em;
 +
  color: #135;
 +
}
 +
.g_maininfo,
 +
.g_thema {
 +
  border: 4px solid;
 +
  padding: 1em 31px;
 +
  margin: 1em -35px;
 +
  border-radius: 8px;
 +
}
 +
.g_maininfo {
 +
  color: #135;
 +
  background-color: #f3f8ff;
 +
  border-color: #9ab9db;
 +
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
 +
}
 +
.g_thema {
 +
  border-color: #e2e1e1;
 +
  background-color: #f9f9f9;  
 
}
 
}
 
.g_links_extern {
 
.g_links_extern {
Zeile 103: Zeile 172:
 
.g_links_bilder {
 
.g_links_bilder {
 
  font-size: .85em;
 
  font-size: .85em;
}
 
.g_links_artikel:empty,
 
.g_links_glossar:empty,
 
.g_links_bilder:empty {
 
display: none;
 
}
 
.g_links_artikel::before,
 
.g_links_glossar::before,
 
.g_links_bilder::before {
 
display: block;
 
font-family: calibri, sans;
 
font-size: 1.2em;
 
padding: 1.5em 0 .8em;
 
 
}
 
}
 
.g_links_artikel ul {
 
.g_links_artikel ul {
   column-count: 3;
+
   column-count: 2;
}
 
.g_links_artikel::before {
 
content: 'Folgende Artikel erwähnen „{{{styled_term_oD|{{{styled_term|}}}}}}“:';
 
}
 
.g_links_glossar::before {
 
content: 'Verwandte Fachbegriffe:';
 
 
}
 
}
.g_links_bilder::before {
+
.g_links_artikel ul,
content: 'Verwandte Bilder:';
+
.g_links_artikel li {
 +
  list-style:none;
 
}
 
}
 
}}</includeonly>
 
}}</includeonly>

Aktuelle Version vom 20. Februar 2019, 13:27 Uhr

Code

{{Glossar_eintrag
| code=  
| styled_term=  
| styled_term_oD=  
| original_script=  
| sprache=  
| geschlecht=  
| desc_of_term=  
| tags=  
| map=
| zoom=
| type=
| icon=
}}