Vorlage:Glossar: Unterschied zwischen den Versionen

Wechseln zu: Navigation, Suche
 
(29 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><!--
+
<noinclude><!--
 +
 
 +
CODEVORLAGE
 +
 
 +
--> <nowiki>{{Glossar
 +
| code = <!-- PAGENAME -->
 +
| romaji =
 +
| kanji =
 +
| text =
 +
| sprache = <!-- chin. kor. west.-->
 +
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,
 +
            Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
 +
| map= <!-- such-stichwort für google maps -->
 +
| zoom= <!-- 5–19, 9 = standard -->
 +
| type= <!-- satellite (maps) -->
 +
| icon= <!-- Schrein oder Tempel -->
 +
}}
 +
 
 +
</nowiki> 
 +
</noinclude><includeonly><!--
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:g
+
-->{{#vardefine:code
| {{#switch: {{NAMESPACE}}
 
| Glossar = G
 
| #default =  g
 
}}
 
}}<!--
 
-->{{#vardefine:anker
 
 
| {{#if: {{{code|}}}| {{{code|}}}
 
| {{#if: {{{code|}}}| {{{code|}}}
 
| {{#multireplace: {{lc:{{{romaji|}}} }}
 
| {{#multireplace: {{lc:{{{romaji|}}} }}
Zeile 19: Zeile 32:
 
   |/ū/=uu
 
   |/ū/=uu
 
}} }} }}<!--
 
}} }} }}<!--
-->{{#if: {{#var:anker}}
 
| {{#vardefine:linkzahl
 
| {{#dpl:
 
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |format  =,
 
  |resultsfooter=%PAGES%
 
  |noresultsfooter = 0
 
}} }}<!--
 
 
Sprache für Kategorien
 
 
-->{{#vardefine:sprache
 
| {{#switch: {{{sprache|}}}
 
| chin. = Chinesisch
 
| kor. = Koreanisch
 
| west. = Westlich
 
| #default = 
 
}} }}<!--
 
 
-->{{#vardefine:spr
 
-->{{#vardefine:spr
| {{#switch: {{{sprache|}}}
+
| {{#if:{{{sprache|}}} | {{{sprache|}}} | jap.}}
| west. =
+
}}<!--
| jap. =
 
| #default =  {{{sprache|}}}
 
}} }}<!--
 
-->{{#vardefine:mainlink
 
| {{#ifeq: {{FULLPAGENAME:{{{link|}}} }} | {{FULLPAGENAME}}  
 
| <!-- nothing --> | {{FULLPAGENAME:{{{link|}}} }}
 
}} }}<!--
 
 
-->{{#vardefine:kanji
 
-->{{#vardefine:kanji
 
| {{#regex: {{{kanji|}}}|/ /|}}
 
| {{#regex: {{{kanji|}}}|/ /|}}
}}<!--
+
}}<!--  
 
+
-->{{#vardefine:region
LINKLISTE Tooltip
+
| {{#switch: {{lc:{{#regex:{{#var:spr}}|/\w+/}}}}
 
+
| jap= Japan
-->{{#vardefine:links
+
| kor=  
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
+
| chin= China und Korea
  | {{#if: {{#var:mainlink}}
+
| #default= sonstige
    |<span class={{#var:g}}_links> → <strong>[[ {{{link|}}}#_{{#var:anker}} | {{SUBPAGENAME:{{{link|}}} }} ]]</strong>&emsp;</span> }}<!--
+
}}
-->{{#dpl:
+
}}<!--  
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |nottitlematch = {{PAGENAME:{{{link|}}} }}
 
  |ordermethod=none
 
  |order = descending
 
  |count = 5
 
  |format = ,<span class={{#var:g}}_links>→&thinsp;[[%PAGE%#_{{#var:anker}}|%TITLE%]]&emsp;</span>
 
  |suppresserrors=true
 
}} {{#ifeq: {{#expr: {{#var:linkzahl}} > 5 }} | 1
 
  | <span class={{#var:g}}_links> →&nbsp;[[glossar:{{#var:anker}}|mehr]]</span>
 
}} }} }} }}<!--
 
 
 
LINKLISTE Glossareintrag
 
 
 
-->{{#vardefine:links_all
 
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
 
  | '''Mehr zu „{{{romaji|}}}“:'''
 
{{#dpl:
 
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |nottitlematch = metalog:karte
 
  |ordermethod=title
 
  |order = ascending
 
  |format = ,<span class={{#var:g}}_links> →&nbsp;[[%PAGE%#_{{#var:anker}}|%PAGE%]]</span>
 
  |suppresserrors=true
 
}} }} }}<!--
 
 
 
Suchbegriff westlich
 
 
 
-->{{#vardefine:suchbegriff
 
| {{#regex:{{#regex: {{{romaji|}}}|/ /e|_}}|/'/e|}}
 
}}<!--
 
  
 
SCHREIBEN
 
SCHREIBEN
 
-->{{#ifeq:  {{#titleparts: {{PAGENAME}} | -1 }} | Glossar
 
 
<!-- Glossarlisten auf Metalog:Glossar/XY -->
 
 
|'''[[glossar:{{#var:anker}}|{{{romaji_g|{{{romaji|}}}}}}]]''' {{#if: {{#var:spr}} | ({{#var:spr}})  }} {{{kanji|}}} [[{{{link|}}}#_{{#var:anker}}|→]] <br/> {{{text|}}}
 
 
<!-- Sonstige Seiten --> 
 
 
|<!--
 
span GLOSSAR
 
--><span class={{#var:g}}lossar id=_{{#var:anker}}><!--
 
STICHWORT/
 
--><span lang=ja class={{#var:g}}_stichwort>{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}</span><!--
 
small G_BOX
 
--><small class={{#var:g}}_box><!--
 
--><big><!--
 
--><span class={{#var:g}}_term> [[glossar: {{#var:anker}}|{{{term| {{{romaji|}}} }}}]]<!-- ROMAJI
 
-->{{#if: {{#var:spr}} |<span class={{#var:g}}_lang> ({{#var:spr}})</span> }}<!-- (SPR.)
 
--></span><!-- /ROMAJI
 
--><span class={{#var:g}}_script> {{{script| {{{kanji|}}} }}}</span><!-- KANJI
 
--></big><!--
 
span G TEXT/
 
--><span lang=de class={{#var:g}}_text>{{{text|}}}</span><!--
 
if LINKS
 
-->{{#if: {{#var:links}}
 
| <span class={{#var:g}}_linkbox><!--
 
-->{{#ifeq: {{NAMESPACE}} | Glossar
 
<!-- Glossar-Seite: Titel wird nur angepasst, wenn Links vorhanden: -->
 
| {{DISPLAYTITLE: <span>Glossareintrag</span> {{{romaji|}}} }}{{#var:links_all}}
 
<!-- Glossar-Popup: -->
 
| <b>siehe auch</b>{{#var:links}} }} <!--
 
/if LINKS
 
--></span>}}<!--
 
/small  G_BOX
 
--></small><!--
 
/span GLOSSAR
 
--></span>
 
}}<!--
 
 
Kategorien und Tags
 
  
 
-->{{#ifeq: {{NAMESPACE}} | Glossar
 
-->{{#ifeq: {{NAMESPACE}} | Glossar
| <!--
+
| <!--  
 
 
Themen, externe Links
 
 
 
--><span class=g_thema>Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[Kategorie:$0]] [[Kategorie:Glossar]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
 
-->{{#if: {{#var:sprache}}
 
|[[Kategorie: {{#var:sprache}}]], [[Metalog:Glossar/{{#var:sprache}}|{{#var:sprache}}]]
 
|[[Kategorie: Japanisch]]<!--
 
--> }}<span class=g_extern style="
 
float: right;
 
font-size: .85em;
 
line-height: 2em;">{{#if: {{{kanji|}}}
 
| [[Bild:Wadoku logo.svg| x20px| link=http://www.wadoku.de/search/{{#var:kanji}}| Suche {{{kanji|}}} in Wadoku.de]] •
 
[[Bild:Wikipedia-icon.png| 20px| link=https://ja.wikipedia.org/w/index.php?search={{#var:kanji}}| Suche {{{kanji|}}} in Wikipedia(ja)]] •
 
[[Bild:Google-icon.png| 20px| link=https://www.google.co.jp/#q={{#var:kanji}}| Suche {{{kanji|}}} mit Google(ja)]] •
 
[[Bild:camera-icon.png| 20px| link=https://www.google.co.jp/#q={{#var:kanji}}&tbm=isch| Suche {{{kanji|}}} mit Google Images(ja)]]
 
|  <!--
 
westlich
 
-->[[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| link=https://www.google.com/#q={{#var:suchbegriff}}| Suche {{{romaji|}}} mit Google]] •
 
[[Bild:camera-icon.png| 20px| link=https://www.google.com/#q={{#var:suchbegriff}}&tbm=isch| Suche {{{romaji|}}} mit Google Images]]
 
}}
 
</span></span> <!--
 
  
Bilderliste
+
if Glossar: HAUPTEINTRAG
  
-->
+
-->{{Glossar_eintrag
{{#dpl:
+
| code= {{#var:code}}
| namespace=Bild
+
| styled_term= {{{romaji|}}}
| linksto = {{FULLPAGENAME}}
+
| original_script= {{#var:kanji}}
| include = {bild}:titel, {bild}:titel_d, {bild}:genre
+
| sprache= {{#var:spr}}
| format = <div class=b_liste>,\n*<div class=b_bild> [[Bild:%TITLE%|180x180px]]</div>, ,</div>
+
| desc_of_term= {{{text|}}}
| secseparators = <span class=b_genre> ,,,. , ,</span>
+
| tags= {{{tags|}}}
| ordermethod= size
+
| map= {{{map|}}}
| order= descending
+
| zoom= {{{zoom|}}}
| noresultsheader=&nbsp;
+
| type= {{{type|}}}
| resultsheader= <h3> Bilder mit Bezug zu {{{romaji|}}}</h3>
+
| icon= {{{icon|}}}  
}} <!--
+
}}<!--  
  
Google Maps
+
----KATEGORIEN-----
 +
-->[[category:glossar]][[defines_term::{{#var:code}}| ]]<!--
  
-->
+
----Attribute Map----
{{#if: {{{map|}}}  
+
-->{{#if:{{{map| }}}
|<div class=g_thema>{{#display_map: {{{map| }}}~s.a. [[Metalog:Karte]]~ ~ ~ ~{{{romaji|}}}
+
| [[has_coordinates::{{{map| }}}| ]][[located in::{{#var:region}}| ]]
| zoom= {{#if: {{{zoom|}}}| {{{zoom|}}} | 9 }}
 
| minzoom= 3
 
| type= {{#if: {{{style|{{{type| }}}}}}| {{{style|{{{type| }}}}}} | terrain }}
 
| resizable=no
 
| height=400px
 
| controls= zoom, type
 
| icon= {{ucfirst:{{#if:{{{icon|}}}|{{{icon|}}}|Star}} }}_icon.png
 
| service= leaflet
 
}} </div> <!--
 
-->{{#if: {{#regex: {{{map|}}}
 
<!-- Ausdruck aus Zahlen und Beistrich -->
 
|/^[\d\.]+,\s*[\d\.]+$/ }}
 
[[Kategorie:Map_{{ucfirst: {{#if:{{{sprache|}}}
 
  |{{#regex:{{{sprache|}}}
 
    |/\./|}}
 
  |Jap}} }}]]
 
}}
 
 
}}
 
}}
}}<!-- Ende Namespace:Glossar
+
| <!--  
--></onlyinclude><!--
 
 
 
CODEVORLAGE
 
  
--><noinclude>
+
else: INLINE
  
<nowiki>{{Glossar
+
-->{{Glossar_inline
| stichwort = {{{1|}}}
+
| {{#var:code}}
| code = <!-- für Sonderfälle -->
+
| {{{stichwort|}}}  
| romaji =
+
| sprache= {{#var:spr}}
| kanji =
+
}}[[uses_term::{{#var:code}}| ]]
| text =
+
}}<includeonly>
| sprache = <!-- chin. kor. west.-->
 
| link = <!-- wichtigste Seite -->
 
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,
 
            Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
 
| map= <!-- such-stichwort für google maps -->
 
| zoom= <!-- 5–19, 9 = standard -->
 
| type= <!-- satellite (maps) -->
 
| icon= <!-- Schrein oder Tempel -->
 
}}</nowiki>
 
</noinclude>
 

Aktuelle Version vom 10. Februar 2019, 16:53 Uhr

{{Glossar
| code = <!-- PAGENAME -->
| romaji =
| kanji = 
| text =
| sprache = <!-- chin. kor. west.-->
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender, 
            Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
| map= <!-- such-stichwort für google maps -->
| zoom= <!-- 5–19, 9 = standard -->
| type= <!-- satellite (maps) -->
| icon= <!-- Schrein oder Tempel -->
}}