Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(160 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:anker
+
-->{{#vardefine:spr
| {{#if: {{{code|}}}| {{{code|}}}
+
| {{#if:{{{sprache|}}} | {{{sprache|}}} | jap.}}
| {{#multireplace: {{lc:{{{romaji|}}} }}
+
}}<!--
  |/['()-]/=
+
-->{{#vardefine:kanji
  |/\s/=
+
| {{#regex: {{{kanji|}}}|/\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|}}} }}
 
}} }}<!--
 
 
 
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> {{{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
|<span class=g_thema>Thema: {{#regex: {{{tags|}}} |/[\wäüößÄÜÖ]+/e | [[Kategorie:$0]] [[Kategorie:Glossar]] [[Metalog:Glossar/{{ucfirst:$0}}|{{ucfirst:$0}}]] }}{{#if: {{#var:sprache}}
+
| code = <!-- PAGENAME -->
|[[Kategorie: {{#var:sprache}}]], [[Metalog:Glossar/{{#var:sprache}}|{{#var:sprache}}]] }}
 
</span>}}<!--
 
-->{{#if: {{{kanji|}}}
 
|<span class=g_thema>{{{kanji|}}} suchen in [http://www.wadoku.de/search/{{{kanji|}}} Wadoku.de] · [http://ja.wikipedia.org/wiki/{{{kanji|}}} Wikipedia(ja)] </span>
 
}}</onlyinclude><!--
 
 
 
CODEVORLAGE
 
 
 
--><noinclude>
 
 
 
<nowiki>{{Glossar
 
| stichwort = {{{1|}}}
 
| code = <!-- für Sonderfälle -->
 
 
| romaji =
 
| romaji =
 +
| romaji_g =
 
| kanji =  
 
| kanji =  
 
| text =
 
| text =
| sprache = <!-- chin. kor. -->
+
| sprache = <!-- chin. kor. west.-->
| link = <!-- wichtigste Seite -->
+
| link =
| tags = <!-- gottheit, person, wesen, bauwerk, text, bild, objekt,  
+
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,  
          ort, zeit, tätigkeit, konzept, sonstiges -->
+
            Konzept, Objekt, Ort, Person, Praxis, Schule, Text, Tier -->
}}</nowiki>
+
| map= <!-- such-stichwort für google maps -->
s.a. [[{{FULLPAGENAME}}/Code]]
+
| zoom= <!-- 5–19, 9 = standard -->
</noinclude>
+
| type= <!-- satellite (maps) -->
 +
| icon= <!-- Schrein oder Tempel -->
 +
}}
 +
</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 -->
}}