Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(327 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><!--
+
<includeonly><!--
  
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine:anker
+
-->{{#vardefine:code
| {{#if: {{{code|}}}| {{{code|}}}
+
| {{#if: {{{code|}}}| {{lc:{{{code|}}}}}
| {{#multireplace: {{{romaji|}}}
+
  | {{#regex: {{#regex: {{#regex: {{lc:{{{romaji|}}}}}
  |/['()]/=
+
    |/ō/|ou
  |/\s/=_
+
    }} |/ū/|uu
  |/Ō/=Ou
+
    }} | /[\.\'\-\(\)\s]/|
  |/ō/=ou
+
    }}
  |/Ū/=Uu
+
  }}
  |/ū/=uu
+
}}<!--
}} }} }}<!--
+
-->{{#vardefine:spr
-->{{#if: {{#var:anker}}
+
| {{#if:{{{sprache|}}} | {{{sprache|}}} | jap.}}
| {{#vardefine:linkzahl
+
}}<!--
| {{#dpl:
+
-->{{#vardefine:kanji
  |category = Artikel
+
| {{#regex: {{{kanji|}}}|/\s/|}}
  |uses = glossar:{{#var:anker}}
+
}}<!--  
  |format  =,
 
  |resultsfooter=%PAGES%
 
  |noresultsfooter = 0
 
}} }}<!--
 
-->{{#vardefine:links
 
| {{#ifeq: {{NAMESPACE}} | Glossar | <div class=g_linksbox> |, siehe auch:}}
 
{{#dpl:
 
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |ordermethod=size
 
  |order = descending
 
  |count = 5
 
  |format = ,<span class=g_links> → [[%PAGE%#g_{{#var:anker}}|%TITLE%]]</span>
 
  |noresultsfooter = 0
 
}} {{#ifeq: {{NAMESPACE}} | Glossar | </div> }}
 
}} }}<!--
 
  
SCHREIBEN
+
SUB-TEMPLATES
  
--><span class='glossar' id='g_{{#var:anker}}'><!--
+
-->{{Glossar_eintrag
-->{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}<!--
+
| code= {{#var:code}}  
--> <small class=g_box><big><span class=g_term>{{{term| {{{romaji|}}} }}}</span> <span class=g_script>{{{script| {{{kanji|}}} }}}</span> 
+
| styled_term= {{{romaji|}}}  
{{#if: {{{sprache|}}} | ({{{sprache|}}}.) }}</big> <!--
+
| alphabetic_term= {{{romaji_g|{{{romaji|}}}}}}
--> <span class= g_text>{{{text|}}}</span> <!--
+
| original_script= {{#var:kanji}}
-->  {{#var:links}} <includeonly>{{#ifeq: {{NAMESPACE}} | Glossar |
+
| sprache= {{#var:spr}}
| {{#ifexpr: {{#var:linkzahl}} > 5
+
| desc_of_term= {{{text|}}}
| → [[glossar:{{#var:anker}}| mehr]]
+
| link= {{{link|}}}
}} }}</includeonly>
+
| tags= {{{tags|}}}
</small></span><!--
+
| thema= {{{thema|}}}
 
+
| map= {{{map|}}}
CSS
+
| zoom= {{{zoom|}}}
 
+
| type= {{{type|}}}
-->
+
| icon= {{{icon|}}}  
{{#css:
+
}}<!--
 
+
--></includeonly><noinclude>
.glossar {
+
Vorlage für Seiten im Namensraum „Glossar“. Die Daten werden von [[Vorlage:Glossar_eintrag]] verarbeitet.
color:#124374;
+
<pre>
font-family: "Trebuchet MS", Arial;
+
{{Glossar
font-weight:bold;
+
| code = <!-- PAGENAME -->
cursor: help;
 
position:relative;
 
}
 
.glossar:hover {
 
background:#f1f5ff;
 
}
 
.g_box  {
 
display: block;
 
font-size:1em;
 
z-index:1; 
 
width:150pt;
 
position:absolute;
 
top:1.1em; left:0;
 
text-align:center;
 
}
 
 
 
}}</onlyinclude><!--
 
 
 
CODEVORLAGE
 
 
 
-->  
 
<noinclude>
 
===Code ===
 
<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 =
+
| 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>
+
</pre></noinclude>
</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 -->
}}