Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(121 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><!--
+
<includeonly><!--
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:g
+
-->{{#vardefine:code
| {{#ifeq: {{NAMESPACE}} | Glossar | G | g }}
+
| {{#if: {{{code|}}}| {{lc:{{{code|}}}}}
 +
  | {{#regex: {{#regex: {{#regex: {{lc:{{{romaji|}}}}}
 +
    |/ō/|ou
 +
    }} |/ū/|uu
 +
    }} | /[\.\'\-\(\)\s]/|
 +
    }}
 +
  }}
 +
}}<!--
 +
-->{{#vardefine:spr
 +
| {{#if:{{{sprache|}}} | {{{sprache|}}} | jap.}}
 
}}<!--
 
}}<!--
-->{{#vardefine:anker
 
| {{#if: {{{code|}}}| {{{code|}}}
 
| {{#multireplace: {{lc:{{{romaji|}}} }}
 
  |/['()-]/=
 
  |/\s/=
 
  |/Ō/=ou
 
  |/ō/=ou
 
  |/Ū/=uu
 
  |/ū/=uu
 
}} }} }}<!--
 
-->{{#if: {{#var:anker}}
 
| {{#vardefine:linkzahl
 
| {{#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|}}}|/\s/|}}
}}
+
}}<!--  
{{#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
 
 
 
-->{{#ifeq:  {{#titleparts: {{PAGENAME}} | -1 }} | Glossar <!--
 
  
Glossarlisten auf Metalog:Glossar/XY
+
SUB-TEMPLATES
 
-->
 
|'''[[glossar:{{#var:anker}}|{{{romaji|}}}]]''' {{#if: {{{sprache|}}} | ({{{sprache|}}})  }} {{{kanji|}}} [[{{{link|}}}#_{{#var:anker}}|→]] <br/> {{{text|}}} <!--
 
  
Sonstige Seiten
+
-->{{Glossar_eintrag
-->
+
| code= {{#var:code}}  
|<span class={{#var:g}}lossar id=_{{#var:anker}}><!--
+
| styled_term= {{{romaji|}}}  
--><span class={{#var:g}}_stichwort>{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}</span><!-- STICHWORT
+
| alphabetic_term= {{{romaji_g|{{{romaji|}}}}}}
--><small class={{#var:g}}_box><!-- BOX
+
| original_script= {{#var:kanji}}
--><big><!--
+
| sprache= {{#var:spr}}
--><span class={{#var:g}}_term> [[glossar: {{#var:anker}}|{{{term| {{{romaji|}}} }}}]]<!-- ROMAJI
+
| desc_of_term= {{{text|}}}
-->{{#if: {{{sprache|}}} |<span class={{#var:g}}_lang> ({{{sprache|}}})</span> }}<!-- (SPR.)
+
| link= {{{link|}}}
--></span><!-- /ROMAJI
+
| tags= {{{tags|}}}
--><span class={{#var:g}}_script> {{{script| {{{kanji|}}} }}}</span><!-- KANJI
+
| thema= {{{thema|}}}
--></big><!--
+
| map= {{{map|}}}
-->{{#ifsysop: <span class=mw-editsection> [{{fullurl:glossar:{{#var:anker}}|action=edit}} …]</span>}}<!--  EDIT
+
| zoom= {{{zoom|}}}
--><span class={{#var:g}}_text>{{{text|}}}</span><!-- TEXT
+
| type= {{{type|}}}
-->{{#if: {{#var:links}} | <span class={{#var:g}}_linkbox><!-- LINKBOX
+
| icon= {{{icon|}}}  
-->{{#ifeq: {{NAMESPACE}} | Glossar | {{DISPLAYTITLE: <span>Glossareintrag</span> {{{romaji|}}} }}{{#var:links_all}} | <!-- GLOSSAR
 
--><b>siehe auch</b>{{#var:links}} }} </span>}}<!-- TOOLTIP
 
--></small></span>
 
 
}}<!--
 
}}<!--
 
+
--></includeonly><noinclude>
Kategorien und Tags
+
Vorlage für Seiten im Namensraum „Glossar“. Die Daten werden von [[Vorlage:Glossar_eintrag]] verarbeitet.  
 
+
<pre>
-->{{#ifeq: {{NAMESPACE}} | Glossar
+
{{Glossar
| <!--
+
| code = <!-- PAGENAME -->
 
 
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}}]]<!--
 
--> }}{{#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>
 
}} <!--
 
 
 
Bilderliste
 
 
 
-->
 
{{#dpl: 
 
| 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>
 
| noresultsheader=&nbsp;
 
| resultsheader= <h3> Verwandte Bilder </h3>
 
}} <!--
 
 
 
Google Maps
 
 
 
-->
 
{{#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>
 
 
 
<nowiki>{{Glossar
 
| stichwort = {{{1|}}}
 
| code = <!-- für Sonderfälle -->
 
 
| romaji =
 
| romaji =
 +
| romaji_g =
 
| kanji =  
 
| kanji =  
 +
| text =
 +
| sprache = <!-- chin. kor. west.-->
 +
| link = 
 +
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,
 +
            Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
 
| map= <!-- such-stichwort für google maps -->
 
| map= <!-- such-stichwort für google maps -->
| text =
+
| zoom= <!-- 5–19, 9 = standard -->
| sprache = <!-- chin. kor. -->
+
| type= <!-- satellite (maps) -->
| link = <!-- wichtigste Seite -->
+
| icon= <!-- Schrein oder Tempel -->
| tags = <!-- gottheit, person, wesen, bauwerk, text, bild, objekt,
+
}}
          ort, zeit, tätigkeit, konzept, sonstiges -->
+
</pre></noinclude>
}}</nowiki>
 
s.a. [[{{FULLPAGENAME}}/Code]]
 
</noinclude>
 

Aktuelle Version vom 14. Juli 2022, 10:48 Uhr

Vorlage für Seiten im Namensraum „Glossar“. Die Daten werden von Vorlage:Glossar_eintrag verarbeitet.

{{Glossar
| code = <!-- PAGENAME -->
| romaji =
| romaji_g =
| kanji = 
| text =
| sprache = <!-- chin. kor. west.-->
| link =  
| 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 -->
}}