Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(301 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: {{#var:linkzahl}} |0 | <!--do nothing -->
 
| {{#dpl:
 
  |category = Artikel
 
  |uses = glossar:{{#var:anker}}
 
  |ordermethod=size
 
  |order = descending
 
  |count = 5
 
  |format = ,<span class=g_links> → [[%PAGE%#g_{{#var:anker}}|%TITLE%]]</span>
 
  |suppresserrors=true
 
}} }} }} }}<!--
 
  
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><!--
+
| styled_term= {{{romaji|}}}  
--><span class=g_script> {{{script| {{{kanji|}}} }}}</span>{{#if: {{{sprache|}}}  
+
| alphabetic_term= {{{romaji_g|{{{romaji|}}}}}}
|<span class=g_lang> ({{{sprache|}}}.)</span> }}</big><!--
+
| original_script= {{#var:kanji}}
--><span class=g_text>{{{text|}}}<!--
+
| sprache= {{#var:spr}}
-->{{#ifsysop: <span class=editlink> [{{fullurl:glossar:{{#var:anker}}|action=edit}} →]</span>}}</span><!--
+
| desc_of_term= {{{text|}}}
-->{{#if: {{#var:links}} | <span class=g_linkbox><i>siehe auch</i>{{#var:links}}</span>}}</small></span><!--
+
| link= {{{link|}}}
 
+
| tags= {{{tags|}}}
CSS
+
| thema= {{{thema|}}}
 
+
| map= {{{map|}}}
-->{{#css:
+
| zoom= {{{zoom|}}}
 
+
| type= {{{type|}}}
.glossar {
+
| icon= {{{icon|}}}  
color:#124374;
+
}}<!--
font-family: "Trebuchet MS", Arial;
+
--></includeonly><noinclude>
font-weight:bold;
+
Vorlage für Seiten im Namensraum „Glossar“. Die Daten werden von [[Vorlage:Glossar_eintrag]] verarbeitet.
cursor: help;
+
<pre>
position:relative;
+
{{Glossar
}
+
| code = <!-- PAGENAME -->
.glossar:hover {
 
background:#f1f5ff;
 
}
 
.g_box  {
 
display: block;
 
position:absolute;
 
z-index:1; 
 
top:1.1em;
 
left:0;
 
text-align:center;
 
font-weight:normal;
 
font-size:0.85em;
 
width:150pt;
 
padding: 5pt;
 
border: #26a solid 1px;
 
border-radius: 3px;
 
background-color: #f3f5ff; 
 
-webkit-box-shadow: 1px 1px 3px #667;
 
-moz-box-shadow: 1px 1px 3px #667;
 
box-shadow: 1px 1px 3px #667;
 
}
 
.g_box big {
 
font-size: 1.2em;
 
padding: .3em 0;
 
}
 
.g_text {
 
display:block;
 
text-align:left;
 
padding: 0 1em;
 
}
 
.g_linkbox {
 
display: block;
 
text-align: left;
 
margin: .6em .2em 0;
 
padding: .2em;
 
border-top: 1px solid #9FAFD8;
 
font-size: .85em;
 
}
 
.g_linkbox i {
 
display: block;
 
font-size:9px;
 
line-height: 9px;
 
}
 
}}</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 -->
}}