Vorlage:Glossar: Unterschied zwischen den Versionen

Wechseln zu: Navigation, Suche
 
(95 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
| {{#ifeq: {{NAMESPACE}} | Glossar | G | g }}
 
}}<!--
 
-->{{#vardefine:anker
 
 
| {{#if: {{{code|}}}| {{{code|}}}
 
| {{#if: {{{code|}}}| {{{code|}}}
 
| {{#multireplace: {{lc:{{{romaji|}}} }}
 
| {{#multireplace: {{lc:{{{romaji|}}} }}
Zeile 16: Zeile 32:
 
   |/ū/=uu
 
   |/ū/=uu
 
}} }} }}<!--
 
}} }} }}<!--
-->{{#if: {{#var:anker}}
+
-->{{#vardefine:spr
| {{#vardefine:linkzahl
+
| {{#if:{{{sprache|}}} | {{{sprache|}}} | jap.}}
| {{#dpl:
+
}}<!--
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |format  =,
 
  |resultsfooter=%PAGES%
 
  |noresultsfooter = 0
 
}} }}<!--
 
-->{{#vardefine:sprache
 
| {{#switch: {{{sprache|}}}
 
| chin. = Chinesisch
 
| kor. = Koreanisch
 
| #default = {{{sprache|}}}
 
}} }}<!--
 
-->{{#vardefine:mainlink
 
| {{#ifeq: {{FULLPAGENAME:{{{link|}}} }} | {{FULLPAGENAME}}
 
| <!-- nothing --> | {{FULLPAGENAME:{{{link|}}} }}
 
}} }}<!--
 
 
-->{{#vardefine:kanji
 
-->{{#vardefine:kanji
 
| {{#regex: {{{kanji|}}}|/ /|}}
 
| {{#regex: {{{kanji|}}}|/ /|}}
 +
}}<!--
 +
-->{{#vardefine:region
 +
| {{#switch: {{lc:{{#regex:{{#var:spr}}|/\w+/}}}}
 +
| jap= Japan
 +
| kor=
 +
| chin= China und Korea
 +
| #default= sonstige
 
}}
 
}}
{{#vardefine: maps
+
}}<!--  
|{{#if: {{{map|}}} | qq
 
|  {{#regex: {{#regex: {{#regex: {{{tags|}}} | /(\W*)/ | }} | /([Oo]rt)/ | q}} |/[Bb]auwerk/ | q}}
 
}}
 
}} <!--
 
 
 
LINKLISTE Tooltip
 
 
 
-->{{#vardefine:links
 
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
 
  | {{#if: {{#var:mainlink}}
 
    |<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
 
| {{#if: {{#var:mainlink}}
 
  |<span class={{#var:g}}_links> → Mehr Information zu {{{romaji|}}} im Artikel <!--
 
-->„[[ {{{link|}}}#_{{#var:anker}} |{{SUBPAGENAME:  {{{link|}}} }}]]“</span> }}<!--
 
-->{{#ifeq: {{#expr: {{#var:linkzahl}} > 1 }} | 1
 
  | '''Alle Artikel'''
 
{{#dpl:
 
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |ordermethod=title
 
  |order = ascending
 
  |format = ,<span class={{#var:g}}_links> →&nbsp;[[%PAGE%#_{{#var:anker}}|%PAGE%]]</span>
 
  |suppresserrors=true
 
}} }} }}<!--
 
  
 
SCHREIBEN
 
SCHREIBEN
 
-->{{#ifeq:  {{#titleparts: {{PAGENAME}} | -1 }} | Glossar <!--
 
 
Glossarlisten auf Metalog:Glossar/XY
 
 
-->
 
|'''[[glossar:{{#var:anker}}|{{{romaji|}}}]]''' {{#if: {{{sprache|}}} | ({{{sprache|}}})  }} {{{kanji|}}} [[{{{link|}}}#_{{#var:anker}}|→]] <br/> {{{text|}}} <!--
 
 
Sonstige Seiten
 
--> 
 
|<span class={{#var:g}}lossar id=_{{#var:anker}}><!--
 
--><span class={{#var:g}}_stichwort>{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}</span><!-- STICHWORT
 
--><small class={{#var:g}}_box><!-- BOX
 
--><big><!--
 
--><span class={{#var:g}}_term> [[glossar: {{#var:anker}}|{{{term| {{{romaji|}}} }}}]]<!-- ROMAJI
 
-->{{#if: {{{sprache|}}} |<span class={{#var:g}}_lang> ({{{sprache|}}})</span> }}<!-- (SPR.)
 
--></span><!-- /ROMAJI
 
--><span class={{#var:g}}_script> {{{script| {{{kanji|}}} }}}</span><!-- KANJI
 
--></big><!--
 
-->{{#ifsysop: <span class=mw-editsection> [{{fullurl:glossar:{{#var:anker}}|action=edit}} …]</span>}}<!--  EDIT
 
--><span class={{#var:g}}_text>{{{text|}}}</span><!-- TEXT
 
-->{{#if: {{#var:links}} | <span class={{#var:g}}_linkbox><!-- LINKBOX
 
-->{{#ifeq: {{NAMESPACE}} | Glossar | {{DISPLAYTITLE: <span>Glossareintrag</span> {{{romaji|}}} }}{{#var:links_all}} | <!-- GLOSSAR
 
--><b>siehe auch</b>{{#var:links}} }} </span>}}<!-- TOOLTIP
 
--></small></span>
 
}}<!--
 
 
Kategorien und Tags
 
  
 
-->{{#ifeq: {{NAMESPACE}} | Glossar
 
-->{{#ifeq: {{NAMESPACE}} | Glossar
|<!--
+
| <!--  
 
 
Bilderliste
 
  
-->{{#dpl:
+
if Glossar: HAUPTEINTRAG
| namespace=Bild
 
| linksto = {{FULLPAGENAME}}
 
| include = {bild}:titel, {bild}:titel_d, {bild}:genre
 
| format = <div class=b_liste>,\n*<div class=b_bild> [[Bild:%TITLE%|150x150px]]</div><span class=b_small>[[%PAGE%|%TITLE%]]</span>, ,</div>
 
| secseparators =  <span class=b_genre> <i class=b_titel>,,,</i>. , ,</span>
 
}}<!--
 
  
Themen, externe Links
+
-->{{Glossar_eintrag
 +
| code= {{#var:code}}
 +
| styled_term= {{{romaji|}}}
 +
| original_script= {{#var:kanji}}
 +
| sprache= {{#var:spr}}
 +
| desc_of_term= {{{text|}}}
 +
| tags= {{{tags|}}}
 +
| map= {{{map|}}}
 +
| zoom= {{{zoom|}}}
 +
| type= {{{type|}}}
 +
| icon= {{{icon|}}}
 +
}}<!--
  
--><span class=g_thema>Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[Kategorie:$0]] [[Kategorie:Glossar]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}<!--
+
----KATEGORIEN-----
-->{{#if: {{#var:sprache}}
+
-->[[category:glossar]][[defines_term::{{#var:code}}| ]]<!--
|[[Kategorie: {{#var:sprache}}]], [[Metalog:Glossar/{{#var:sprache}}|{{#var:sprache}}]]<!--
 
--> }}{{#if: {{{kanji|}}}
 
|<span class=g_extern style="
 
float: right;
 
font-size: .85em;
 
line-height: 2em;">
 
[[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)]]</span></span>
 
}} <!--
 
  
Google Maps
+
----Attribute Map----
 
+
-->{{#if:{{{map| }}}
-->
+
| [[has_coordinates::{{{map| }}}| ]][[located in::{{#var:region}}| ]]
{{#ifeq: {{#var:maps}} | qq |
 
<div class=g_thema>{{#display_map: {{{map|{{{kanji|}}} }}}~ ~ ~ ~ ~{{{romaji|}}}
 
| zoom= 9
 
| resizable=no
 
| height=400px
 
| type= 
 
}} </div>
 
 
}}
 
}}
}}<!-- 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}}| ]]  
| map= <!-- such-stichwort für google maps -->
+
}}<includeonly>
| text =
 
| sprache = <!-- chin. kor. -->
 
| link = <!-- wichtigste Seite -->
 
| tags = <!-- gottheit, person, wesen, bauwerk, text, bild, objekt,
 
          ort, zeit, tätigkeit, konzept, sonstiges -->
 
}}</nowiki>
 
s.a. [[{{FULLPAGENAME}}/Code]]  
 
</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 -->
}}