Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(201 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:mainlink
 
| {{#ifeq: {{FULLPAGENAME:{{{link|}}} }} | {{FULLPAGENAME}}
 
| <!-- nothing --> | {{FULLPAGENAME:{{{link|}}} }}
 
}} }}<!--  
 
  
LINKLISTE Tooltip
+
SUB-TEMPLATES
  
-->{{#vardefine:links
+
-->{{Glossar_eintrag
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
+
| code= {{#var:code}}  
  | {{#if: {{#var:mainlink}}  
+
| styled_term= {{{romaji|}}}  
    |<span class={{#var:g}}_links> → <strong>[[ {{{link|}}}#_{{#var:anker}} | {{SUBPAGENAME:{{{link|}}} }} ]]</strong>&emsp;</span> }}<!--
+
| alphabetic_term= {{{romaji_g|{{{romaji|}}}}}}
-->{{#dpl:
+
| original_script= {{#var:kanji}}
  |category = Artikel
+
| sprache= {{#var:spr}}
  |uses = glossar:{{#var:anker}}
+
| desc_of_term= {{{text|}}}
  |nottitlematch = {{PAGENAME:{{{link|}}} }}
+
| link= {{{link|}}}
  |ordermethod=none
+
| tags= {{{tags|}}}
  |order = descending
+
| thema= {{{thema|}}}
  |count = 5
+
| map= {{{map|}}}
  |format = ,<span class={{#var:g}}_links>→&thinsp;[[%PAGE%#_{{#var:anker}}|%TITLE%]]&emsp;</span>
+
| zoom= {{{zoom|}}}
  |suppresserrors=true
+
| type= {{{type|}}}
}} {{#ifeq: {{#expr: {{#var:linkzahl}} > 5 }} | 1
+
| icon= {{{icon|}}}  
  | <span class={{#var:g}}_links> →&nbsp;[[glossar:{{#var:anker}}|mehr…]]</span>
+
}}<!--
}} }} }} }}<!--
+
--></includeonly><noinclude>
 
+
Vorlage für Seiten im Namensraum „Glossar“. Die Daten werden von [[Vorlage:Glossar_eintrag]] verarbeitet.
LINKLISTE Glossareintrag
+
<pre>
 
+
{{Glossar
-->{{#vardefine:links_all
+
| code = <!-- PAGENAME -->
| {{#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
 
 
 
--><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> {{{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
 
 
 
-->{{#multireplace:{{{tags|}}}
 
|/([\wäüößÄÜÖ]+)/=[[Kategorie:$1]]
 
|,=
 
}}</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, objekt, bauwerk,  
+
| tags = <!-- Bauwerk, Bild, Fabelwesen, Geschichte, Gottheit, Kalender,  
             land, zeit, text, bild, konzept, eigenschaft, tätigkeit -->
+
             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 -->
}}