Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(218 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></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=size
+
| 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> → Hauptartikel zu „{{{romaji|}}}“: <!--
 
-->[[ {{{link|}}}#_{{#var:anker}} |{{SUBPAGENAME:  {{{link|}}} }} ]]</span> }}<!--
 
-->{{#ifeq: {{#expr: {{#var:linkzahl}} > 1 }} | 1
 
  | '''Alle Seiten'''
 
{{#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}}><!--
 
-->{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}<!--
 
--><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><!--
 
 
 
CSS
 
 
 
-->{{#css:
 
 
 
.glossar {
 
color:#124374;
 
font-family: "Trebuchet MS", Arial;
 
font-weight:bold;
 
/* cursor: help; */
 
position:relative;
 
}
 
.glossar:hover {
 
background:#f1f5ff;
 
}
 
.g_box  {
 
display: none;
 
position:absolute;
 
z-index:1; 
 
top:1.1em;
 
left:-30pt;
 
font-size:1em;
 
text-align:center;
 
font-family: Arial;
 
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;
 
cursor: default;
 
}
 
.glossar:hover .g_box,
 
.glossar#show_Tooltip .g_box {
 
display: block;
 
}
 
.g_box big {
 
font-size: 1.6em;
 
padding: .3em 0;
 
}
 
.g_term {
 
display: block;
 
font-size: .66em;
 
}
 
span.g_script {
 
font-family: ms gothic, ms mincho;
 
}
 
.g_text,
 
.g_linkbox {
 
display: block;
 
text-align: left;
 
margin: .2em .2em 0;
 
padding: .7em .2em .5em;
 
border-top: 1px solid #9FAFD8;
 
}
 
.g_linkbox {
 
margin: 5px .2em 0;
 
padding: .2em;
 
font-size: .85em;
 
}
 
.g_linkbox b {
 
display: block;
 
font-size: 8px;
 
line-height: 9px;
 
text-align: center;
 
margin: -7px auto 4px;
 
width: 60px;
 
background: #f3f5ff;
 
text-transform: uppercase;
 
font-style: normal;
 
font-family: sans-serif;
 
color: #8395C2;
 
letter-spacing: 1px;
 
}
 
.G_box big {
 
font-size: 1.6em;
 
padding: .3em 0;
 
}
 
.G_term {
 
display: none;
 
}
 
.G_text {
 
display: block;
 
padding: 1em 2em;
 
}
 
.G_box b {
 
padding: 1.3em 0 .5em;
 
display: block;
 
border-top: 1px solid #ccc;
 
margin-top: 1em;
 
}
 
.G_links {
 
display: block;
 
padding: 0 2em;
 
}
 
div#content .glossar .mw-editsection {
 
position: absolute;
 
right: 5px;
 
top: 5em;
 
}
 
}}</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 -->
}}