Vorlage:Sanskrit: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
− | + | <!-- | |
− | + | ################## | |
− | + | VARIABLEN | |
− | + | ################## | |
+ | ----- Anker ------- | ||
-->{{#vardefine:g | -->{{#vardefine:g | ||
− | | {{#ifeq: {{NAMESPACE}} | | + | | {{#ifeq: {{NAMESPACE}} | Glossar | G | g }} |
}}<!-- | }}<!-- | ||
-->{{#vardefine:anker | -->{{#vardefine:anker | ||
− | + | | {{#multireplace: {{{skt_oD|}}} | |
− | | {{#multireplace | + | |/'/= |
− | + | |/\s/=_ | |
− | -->{{# | + | }} |
− | + | }}<!-- | |
− | + | ----- Mehr dazu------- | |
− | + | -->{{#vardefine:mehrdazu | |
− | | | + | | {{#switch: {{#multireplace: {{{link|}}}|/:\s/=:|/\s/=_}} |
− | + | | {{#multireplace: {{FULLPAGENAME}}|/\s/=_}} | |
− | + | | {{#multireplace: {{PAGENAME}}|/\s/=_}} | |
− | + | | = | |
− | }} | + | | #default = [[{{{link|}}}#_{{#var:anker}}|…mehr ⇒]] |
− | + | }} | |
− | | {{# | + | }}<!-- |
− | | | ||
− | }} }}<!-- | ||
----- Skt ohne Diakritika------- | ----- Skt ohne Diakritika------- | ||
-->{{#vardefine:skt_oD | -->{{#vardefine:skt_oD | ||
Zeile 78: | Zeile 77: | ||
-->{{#vardefine:jap | -->{{#vardefine:jap | ||
| {{#if: {{#var:ue}} | | {{#if: {{#var:ue}} | ||
− | | {{#if: {{#var:romaji}}|<nowiki>;</nowiki> jap. {{#var:romaji}} }} | + | | {{#if: {{#var:romaji}}|<nowiki>;</nowiki> <br/>jap. {{#var:romaji}} }} |
| {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }} | | {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }} | ||
}} | }} | ||
− | }}<!-- | + | }}<!-- |
− | + | ################ | |
+ | POPUP | ||
+ | ################ | ||
+ | -->{{#vardefine:popup | ||
+ | |<span class='{{#var:g}}lossar' id='_{{#var:anker}}' style='cursor: help'><!-- | ||
+ | -->{{#if: {{{1|}}}|{{{1}}}|{{#var:skt_oD}} }}<!-- | ||
+ | --><small class={{#var:g}}_box><span class=dvn> {{{devanagari|}}}</span><!-- | ||
+ | --><big class=skt> {{#var:skt_mD}} ({{{sprache|skt.}}}{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}})</big><!-- | ||
+ | --><span class={{#var:g}}_text>{{#var:ue}} {{#var:mehrdazu}}</span><!-- | ||
+ | --> {{#ifsysop: | ||
+ | <span class=editlink>[{{fullurl:skt:{{lc:{{#multireplace:{{#var:anker}}|/_/=|/-/=}} }}|action=edit}} edit]</span>}}<!-- | ||
+ | --></small><!-- | ||
+ | --></span> | ||
+ | }}<!-- | ||
− | + | ##################### | |
− | + | Einzelseite | |
− | + | ##################### | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | -->{{#ifeq:{{NAMESPACE}}|Skt | |
+ | |{{styles}}<!-- | ||
+ | -->{{#css: | ||
+ | .skt { font-size:1.3em; margin-bottom:1em; } | ||
+ | .skt_link { margin-top:1em; padding: .6em 0 0 1em; border-top: 1px solid #ccc;} | ||
+ | }}<!-- | ||
+ | -->{{#vardefine:linkzahl|{{#dpl: | ||
+ | | category = Artikel | ||
+ | | uses = {{FULLPAGENAME}} | ||
+ | | format =, | ||
+ | | resultsfooter =%PAGES% | ||
+ | | noresultsfooter = 0 | ||
+ | }} | ||
+ | }} | ||
+ | {{titel|{{ucfirst: {{{skt_oD|{{PAGENAME}} }}} }}}}<!-- | ||
− | -->{{# | + | --><span class=skt>{{#var:skt_mD}} {{#if:{{{geschlecht|}}}|({{{geschlecht|}}}.)}} <!-- |
− | + | -->{{{devanagari|}}}</span><br /><!-- | |
− | + | }}<!-- | |
− | -- | + | -->{{#var:ue}}{{#var:jap}}. |
− | + | {{#ifeq:{{#var:linkzahl}}|0 | | | |
− | + | ---- | |
+ | : → '''[[{{{link|}}}#{{#var:anker}}|Hauptartikel]]''' zu „{{{skt_oD|{{FULLPAGENAME}} }}}“ | ||
+ | {{#ifeq:{{#var:linkzahl}}|1 | | | ||
+ | ===Alle Artikel=== | ||
{{#dpl: | {{#dpl: | ||
− | + | |category = Artikel | |
− | + | |uses = {{FULLPAGENAME}} | |
− | + | |ordermethod=title | |
− | + | |format= ,\n: → [[%PAGE%#{{#var:anker}}|%PAGE%]] | |
− | + | }} | |
− | + | }} | |
− | }} }} }}<!-- | + | }} |
− | + | <!-- | |
− | + | ########################### | |
− | + | FLIESSTEXT | |
− | + | ########################### | |
− | + | --> | |
− | + | |{{#var:popup}} | |
− | + | }}<noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | --> | ||
− | |||
− | |||
===Code === | ===Code === | ||
− | |||
<nowiki>{{Sanskrit | <nowiki>{{Sanskrit | ||
| stichwort = {{{1|}}} | | stichwort = {{{1|}}} | ||
− | |||
| sprache = | | sprache = | ||
− | | skt_oD = | + | | skt_oD = <!--ohne Diakritika--> |
− | | skt_mD = | + | | skt_mD = <!--mit Diakritika--> |
| devanagari = | | devanagari = | ||
− | | geschlecht = | + | | geschlecht = <!-- m, f, n --> |
− | | klasse = term | + | | klasse = term <!-- term, name, text--> |
− | | romaji= | + | | romaji= <!-- jap. Äquivalent in Romaji --> |
− | | kanji= | + | | kanji= <!-- jap. Äquivalent in Kanji --> |
− | | romaji2= | + | | romaji2= <!-- alternativer jap. Bff. in Romaji --> |
− | | kanji2= | + | | kanji2= <!-- alternativer jap. Bff. in Kanji --> |
− | | ue= | + | | ue= <!-- wtl. dt. Übersetzung --> |
− | | anm= | + | | anm= <!-- sonstige Bemerkungen --> |
− | | link= | + | | link= <!-- Seitentitel ohne [[ ]] --> |
− | | tags = | + | | tags= |
− | |||
}} | }} | ||
</nowiki> | </nowiki> |
Version vom 21. Juli 2014, 21:48 Uhr
(skt.) [[#_{{#multireplace:
|/'/= |/\s/=_ }}|…mehr ⇒]]
Code
{{Sanskrit | stichwort = {{{1|}}} | sprache = | skt_oD = <!--ohne Diakritika--> | skt_mD = <!--mit Diakritika--> | devanagari = | geschlecht = <!-- m, f, n --> | klasse = term <!-- term, name, text--> | romaji= <!-- jap. Äquivalent in Romaji --> | kanji= <!-- jap. Äquivalent in Kanji --> | romaji2= <!-- alternativer jap. Bff. in Romaji --> | kanji2= <!-- alternativer jap. Bff. in Kanji --> | ue= <!-- wtl. dt. Übersetzung --> | anm= <!-- sonstige Bemerkungen --> | link= <!-- Seitentitel ohne [[ ]] --> | tags= }}
Anleitung
- skt_oD = Version im Fließtext
- skt_mD = Version mit Diakritika (Sonderzeichen)
- devanagari = indische Schriftzeichen
- Kursivschreibung, etc. wird durch "klasse" festgelegt