Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(61 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><!--
+
<includeonly><!--
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:g
+
-->{{#vardefine:code
| {{#switch: {{NAMESPACE}}
+
| {{#if: {{{code|}}}| {{lc:{{{code|}}}}}
| Glossar = G
+
  | {{#regex: {{#regex: {{#regex: {{lc:{{{romaji|}}}}}
| #default =  g
+
    |/ō/|ou
}}
+
    }} |/ū/|uu
 +
    }} | /[\.\'\-\(\)\s]/|
 +
    }}
 +
  }}
 
}}<!--
 
}}<!--
-->{{#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
 
-->{{#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|}}}|/\s/|}}
}}<!--
+
}}<!--  
 
 
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
 
| {{#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
 
 
 
-->{{#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|}}}
+
SUB-TEMPLATES
  
<!-- Sonstige Seiten -->
+
-->{{Glossar_eintrag
 
+
| code= {{#var:code}}  
|<!--
+
| styled_term= {{{romaji|}}}  
span GLOSSAR
+
| alphabetic_term= {{{romaji_g|{{{romaji|}}}}}}
--><span class={{#var:g}}lossar id=_{{#var:anker}}><!--
+
| original_script= {{#var:kanji}}
STICHWORT/
+
| sprache= {{#var:spr}}
--><span lang=ja class={{#var:g}}_stichwort>{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}</span><!--
+
| desc_of_term= {{{text|}}}
small G_BOX
+
| link= {{{link|}}}
--><small class={{#var:g}}_box><!--
+
| tags= {{{tags|}}}
--><big><!--
+
| thema= {{{thema|}}}
--><span class={{#var:g}}_term> [[glossar: {{#var:anker}}|{{{term| {{{romaji|}}} }}}]]<!-- ROMAJI
+
| map= {{{map|}}}
-->{{#if: {{#var:spr}} |<span class={{#var:g}}_lang> ({{#var:spr}})</span> }}<!-- (SPR.)
+
| zoom= {{{zoom|}}}
--></span><!-- /ROMAJI
+
| type= {{{type|}}}
--><span class={{#var:g}}_script> {{{script| {{{kanji|}}} }}}</span><!-- KANJI
+
| icon= {{{icon|}}}  
--></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>
 
 
}}<!--
 
}}<!--
 
+
--></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}}]]
 
|[[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=&nbsp;
 
| resultsheader= <h3> Bilder mit Bezug zu {{{romaji|}}}</h3>
 
}}
 
--><!--
 
 
 
Google Maps
 
 
 
-->{{#if: {{{mapppppppp|}}}
 
|<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 =
 
| romaji =
 +
| romaji_g =
 
| kanji =  
 
| kanji =  
 
| text =
 
| text =
 
| sprache = <!-- chin. kor. west.-->
 
| sprache = <!-- chin. kor. west.-->
| link = <!-- wichtigste Seite -->
+
| link =
 
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,  
 
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,  
 
             Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
 
             Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
Zeile 219: Zeile 53:
 
| type= <!-- satellite (maps) -->
 
| type= <!-- satellite (maps) -->
 
| icon= <!-- Schrein oder Tempel -->
 
| icon= <!-- Schrein oder Tempel -->
}}</nowiki>
+
}}
</noinclude>
+
</pre></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 -->
}}