Vorlage:Glossar: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Weiterleitung nach Vorlage:G erstellt) Markierung: Neue Weiterleitung |
(Weiterleitung auf Vorlage:G entfernt) Markierung: Entfernte Weiterleitung |
||
Zeile 1: | Zeile 1: | ||
− | # | + | <onlyinclude><!-- |
+ | |||
+ | VARIABLE | ||
+ | |||
+ | -->{{#vardefine:g | ||
+ | | {{#switch: {{NAMESPACE}} | ||
+ | | Glossar = G_g | ||
+ | | #default = g | ||
+ | }} | ||
+ | }}<!-- | ||
+ | -->{{#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 | ||
+ | }} }}<!-- | ||
+ | |||
+ | Sprache für Kategorien | ||
+ | |||
+ | -->{{#vardefine:sprache | ||
+ | | {{#switch: {{{sprache|}}} | ||
+ | | chin. = Chinesisch | ||
+ | | kor. = Koreanisch | ||
+ | | west. = Westlich | ||
+ | | #default = | ||
+ | }} }}<!-- | ||
+ | -->{{#vardefine:spr | ||
+ | | {{#switch: {{{sprache|}}} | ||
+ | | west. = | ||
+ | | jap. = | ||
+ | | #default = {{{sprache|}}} | ||
+ | }} }}<!-- | ||
+ | -->{{#vardefine:mainlink | ||
+ | | {{#ifeq: {{FULLPAGENAME:{{{link|}}} }} | {{FULLPAGENAME}} | ||
+ | | <!-- nothing --> | {{FULLPAGENAME:{{{link|}}} }} | ||
+ | }} }}<!-- | ||
+ | -->{{#vardefine:kanji | ||
+ | | {{#regex: {{{kanji|}}}|/ /|}} | ||
+ | }}<!-- | ||
+ | |||
+ | 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> </span> }}<!-- | ||
+ | -->{{#dpl: | ||
+ | |category = Artikel | ||
+ | |uses = glossar:{{#var:anker}} | ||
+ | |nottitlematch = {{PAGENAME:{{{link|}}} }} | ||
+ | |ordermethod=none | ||
+ | |order = descending | ||
+ | |count = 5 | ||
+ | |format = ,<span class={{#var:g}}_links>→ [[%PAGE%#_{{#var:anker}}|%TITLE%]] </span> | ||
+ | |suppresserrors=true | ||
+ | }} {{#ifeq: {{#expr: {{#var:linkzahl}} > 5 }} | 1 | ||
+ | | <span class={{#var:g}}_links> → [[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> → [[%PAGE%#_{{#var:anker}}|%PAGE%]]</span> | ||
+ | |suppresserrors=true | ||
+ | }} }} }}<!-- | ||
+ | |||
+ | Suchbegriff westlich | ||
+ | |||
+ | -->{{#vardefine:suchbegriff | ||
+ | | {{#regex:{{#regex: {{{romaji|}}}|/ /e|_}}|/'/e|}} | ||
+ | }}<!-- | ||
+ | |||
+ | 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 | ||
+ | | <!-- | ||
+ | |||
+ | 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 | ||
+ | |||
+ | --> | ||
+ | {{#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%|180x180px]]</div>, ,</div> | ||
+ | | secseparators = <span class=b_genre> ,,,. , ,</span> | ||
+ | | ordermethod= size | ||
+ | | order= descending | ||
+ | | noresultsheader= | ||
+ | | resultsheader= <h3> Bilder mit Bezug zu {{{romaji|}}}</h3> | ||
+ | }} <!-- | ||
+ | |||
+ | Maps (disabled) | ||
+ | |||
+ | --> | ||
+ | {{#if: {{{mapppppp|}}} | ||
+ | |<div class=g_thema>{{#display_map: {{{map| }}}~s.a. [[Metalog:Karte]]~ ~ ~ ~{{{romaji|}}} | ||
+ | | 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> | ||
+ | |||
+ | <nowiki>{{Glossar | ||
+ | | stichwort = {{{1|}}} | ||
+ | | code = <!-- für Sonderfälle --> | ||
+ | | romaji = | ||
+ | | kanji = | ||
+ | | text = | ||
+ | | 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> |
Version vom 20. Dezember 2018, 13:56 Uhr
[[glossar: {{#multireplace:
|/['()-]/= |/\s/= |/Ō/=ou |/ō/=ou |/Ū/=uu |/ū/=uu
}}| ]] siehe auch{{#dpl:
|category = Artikel |uses = glossar:{{#multireplace: |/['()-]/= |/\s/= |/Ō/=ou |/ō/=ou |/Ū/=uu |/ū/=uu
}}
|nottitlematch =
|ordermethod=none
|order = descending
|count = 5
|format = ,→ [[%PAGE%#_{{#multireplace:
|/['()-]/=
|/\s/=
|/Ō/=ou
|/ō/=ou
|/Ū/=uu
|/ū/=uu
}}|%TITLE%]]
|suppresserrors=true
}}
{{Glossar | stichwort = {{{1|}}} | code = <!-- für Sonderfälle --> | romaji = | kanji = | text = | 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 --> }}