Vorlage:Sanskrit: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
− | <!-- | + | <onlyinclude><!-- |
− | + | ||
− | + | VARIABLE | |
− | + | ||
− | |||
-->{{#vardefine:g | -->{{#vardefine:g | ||
− | | {{#ifeq: {{NAMESPACE}} | | + | | {{#ifeq: {{NAMESPACE}} | Skt | G | g }} |
}}<!-- | }}<!-- | ||
-->{{#vardefine:anker | -->{{#vardefine:anker | ||
− | | {{#multireplace: {{{skt_oD|}}} | + | | {{#if: {{{code|}}}| {{{code|}}} |
− | + | | {{#multireplace: {{lc:{{{skt_oD|}}} }} |/['()-\s]/= }} | |
− | + | }} }}<!-- | |
− | + | -->{{#if: {{#var:anker}} | |
− | }}<! | + | | {{#vardefine:linkzahl |
− | + | | {{#dpl: | |
− | -->{{# | + | |category = Artikel |
− | + | |uses = skt:{{#var:anker}} | |
− | | {{# | + | |format =, |
− | + | |resultsfooter=%PAGES% | |
− | + | |noresultsfooter = 0 | |
− | + | }} }}<!-- | |
− | + | -->{{#vardefine:mainlink | |
− | }}<!-- | + | | {{#ifeq: {{FULLPAGENAME:{{{link|}}} }} | {{FULLPAGENAME}} |
+ | | <!-- nothing --> | {{FULLPAGENAME:{{{link|}}} }} | ||
+ | }} }}<!-- | ||
----- Skt ohne Diakritika------- | ----- Skt ohne Diakritika------- | ||
-->{{#vardefine:skt_oD | -->{{#vardefine:skt_oD | ||
Zeile 77: | Zeile 78: | ||
-->{{#vardefine:jap | -->{{#vardefine:jap | ||
| {{#if: {{#var:ue}} | | {{#if: {{#var:ue}} | ||
− | | {{#if: {{#var:romaji}}|<nowiki>;</nowiki | + | | {{#if: {{#var:romaji}}|<nowiki>;</nowiki> jap. {{#var:romaji}} }} |
| {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }} | | {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }} | ||
}} | }} | ||
− | }}<!-- | + | }}<!-- |
− | + | LINKLISTE Tooltip | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ############# | + | -->{{#vardefine:links |
− | + | | {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing --> | |
− | ##### | + | | {{#if: {{#var:mainlink}} |
+ | |<span class={{#var:g}}_links> → <strong>[[ {{{link|}}}#_{{#var:anker}} | {{SUBPAGENAME:{{{link|}}} }} ]]</strong> </span> }}<!-- | ||
+ | -->{{#dpl: | ||
+ | |category = Artikel | ||
+ | |uses = skt:{{#var:anker}} | ||
+ | |nottitlematch = {{PAGENAME:{{{link|}}} }} | ||
+ | |ordermethod=none | ||
+ | |order = descending | ||
+ | |count = 5 | ||
+ | |format = ,<span class={{#var:g}}_links>→ [[%PAGE%#_{{#var:anker}}|%TITLE%]] </span> | ||
+ | |suppresserrors=true | ||
+ | }} {{#ifeq: {{#expr: {{#var:linkzahl}} > 5 }} | 1 | ||
+ | | <span class={{#var:g}}_links> → [[skt:{{#var:anker}}|mehr…]]</span> | ||
+ | }} }} }} }}<!-- | ||
− | + | LINKLISTE Glossareintrag | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | -- | + | -->{{#vardefine:links_all |
− | + | | {{#if: {{#var:mainlink}} | |
− | + | |<span class={{#var:g}}_links> → Mehr Information zu {{#var:skt_oD}} im Artikel <!-- | |
− | + | -->„[[ {{{link|}}}#_{{#var:anker}} |{{SUBPAGENAME: {{{link|}}} }}]]“</span> }}<!-- | |
− | + | -->{{#ifeq: {{#expr: {{#var:linkzahl}} > 1 }} | 1 | |
− | ---- | + | | '''Alle Artikel''' |
− | |||
− | {{#ifeq:{{#var:linkzahl}}|1 | | ||
− | |||
{{#dpl: | {{#dpl: | ||
− | + | |category = Artikel | |
− | + | |uses = skt:{{#var:anker}} | |
− | + | |ordermethod=title | |
− | + | |order = ascending | |
− | }} | + | |format = ,<span class={{#var:g}}_links> → [[%PAGE%#_{{#var:anker}}|%PAGE%]]</span> |
− | }} | + | |suppresserrors=true |
− | }} | + | }} }} }}<!-- |
− | <!-- | + | |
− | ############ | + | SCHREIBEN |
− | + | ||
− | ########### | + | --><span class={{#var:g}}lossar id=_{{#var:anker}}><!-- |
− | --> | + | --><span class={{#var:g}}_stichwort>{{#var:skt_oD}}</span><!-- Stichwort |
− | + | --><small class={{#var:g}}_box>{{#ifeq: {{#var:g}} | g |<span class=dvn> {{{devanagari|}}}</span> }}<!-- Devanagari | |
− | }}<noinclude> | + | --><big><!-- |
+ | --><span class={{#var:g}}_term> {{#var:skt_mD}} <!--UMSCHRIFT | ||
+ | -->({{{sprache|skt.}}}{{#if:{{{geschlecht|}}}|, {{{geschlecht|}}}.}}) <!-- SPR. | ||
+ | -->{{#ifeq: {{#var:g}} | G | {{{devanagari|}}} }}</span><!-- Devanagari SKT | ||
+ | --></big><!-- | ||
+ | -->{{#ifsysop: <span class=mw-editsection> [{{fullurl:glossar:{{#var:anker}}|action=edit}} …]</span>}}<!-- EDIT | ||
+ | --><span class={{#var:g}}_text>{{#var:ue}}{{#var: jap}}</span><!-- TEXT | ||
+ | -->{{#if: {{#var:links}} | <span class={{#var:g}}_linkbox><!-- LINKBOX | ||
+ | -->{{#ifeq: {{NAMESPACE}} | Skt | {{DISPLAYTITLE: <span>Glossareintrag</span>{{#var:skt_oD}} }}{{#var:links_all}} | <!-- SKT | ||
+ | --><b>siehe auch</b>{{#var:links}} }} </span>}}<!-- TOOLTIP | ||
+ | --></small></span></onlyinclude><noinclude> | ||
+ | |||
===Code === | ===Code === | ||
+ | |||
<nowiki>{{Sanskrit | <nowiki>{{Sanskrit | ||
| stichwort = {{{1|}}} | | stichwort = {{{1|}}} | ||
+ | | code = <!-- für Spezialfälle, Code = Pagename --> | ||
| sprache = | | sprache = | ||
− | | skt_oD = <!--ohne Diakritika--> | + | | skt_oD = <!--ohne Diakritika--> |
− | | skt_mD = <!--mit Diakritika--> | + | | skt_mD = <!--mit Diakritika--> |
| devanagari = | | devanagari = | ||
− | | geschlecht = <!-- m, f, n --> | + | | geschlecht = <!-- m, f, n --> |
− | | klasse = term <!-- term, name, text--> | + | | klasse = term <!-- term, name, text--> |
− | | romaji= <!-- jap. Äquivalent in Romaji --> | + | | romaji= <!-- jap. Äquivalent in Romaji --> |
− | | kanji= <!-- jap. Äquivalent in Kanji --> | + | | kanji= <!-- jap. Äquivalent in Kanji --> |
− | | romaji2= <!-- alternativer jap. Bff. in Romaji --> | + | | romaji2= <!-- alternativer jap. Bff. in Romaji --> |
− | | kanji2= <!-- alternativer jap. Bff. in Kanji --> | + | | kanji2= <!-- alternativer jap. Bff. in Kanji --> |
− | | ue= <!-- wtl. dt. Übersetzung --> | + | | ue= <!-- wtl. dt. Übersetzung --> |
− | | anm= <!-- sonstige Bemerkungen --> | + | | anm= <!-- sonstige Bemerkungen --> |
− | | link= <!-- Seitentitel ohne [[ ]] --> | + | | link= <!-- Seitentitel ohne [[ ]] --> |
− | | tags= | + | | tags = <!-- gottheit, person, wesen, objekt, bauwerk, |
+ | land, zeit, text, bild, konzept, eigenschaft, tätigkeit --> | ||
}} | }} | ||
</nowiki> | </nowiki> |
Version vom 16. Juli 2014, 20:53 Uhr
(skt.) siehe auch{{#dpl:
|category = Artikel
|uses = skt:{{#multireplace: |/['()-\s]/= }}
|nottitlematch =
|ordermethod=none
|order = descending
|count = 5
|format = ,→ [[%PAGE%#_{{#multireplace: |/['()-\s]/= }}|%TITLE%]]
|suppresserrors=true
}}
Code
{{Sanskrit | stichwort = {{{1|}}} | code = <!-- für Spezialfälle, Code = Pagename --> | 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 = <!-- gottheit, person, wesen, objekt, bauwerk, land, zeit, text, bild, konzept, eigenschaft, tätigkeit --> }}
Anleitung
- skt_oD = Version im Fließtext
- skt_mD = Version mit Diakritika (Sonderzeichen)
- devanagari = indische Schriftzeichen
- Kursivschreibung, etc. wird durch "klasse" festgelegt