Vorlage:Sanskrit: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
<!--  
+
<onlyinclude><!--
##################
+
 
        VARIABLEN
+
VARIABLE
##################
+
 
----- Anker -------
 
 
-->{{#vardefine:g
 
-->{{#vardefine:g
| {{#ifeq: {{NAMESPACE}} | Glossar | G | g }}
+
| {{#ifeq: {{NAMESPACE}} | Skt | G | g }}
 
}}<!--
 
}}<!--
 
-->{{#vardefine:anker
 
-->{{#vardefine:anker
| {{#multireplace: {{{skt_oD|}}}
+
| {{#if: {{{code|}}}| {{{code|}}}
  |/'/=
+
| {{#multireplace: {{lc:{{{skt_oD|}}} }} |/['()-\s]/= }}
  |/\s/=_
+
}} }}<!--
  }}
+
-->{{#if: {{#var:anker}}
}}<!--
+
| {{#vardefine:linkzahl
----- Mehr dazu-------
+
| {{#dpl:
-->{{#vardefine:mehrdazu
+
  |category = Artikel
| {{#switch: {{#multireplace: {{{link|}}}|/:\s/=:|/\s/=_}}
+
   |uses = skt:{{#var:anker}}
   | {{#multireplace: {{FULLPAGENAME}}|/\s/=_}}  
+
  |format  =,
  | {{#multireplace: {{PAGENAME}}|/\s/=_}}
+
  |resultsfooter=%PAGES%
  | =
+
  |noresultsfooter = 0
  | #default =  [[{{{link|}}}#_{{#var:anker}}|…mehr&nbsp;&rArr;]]
+
}} }}<!--
  }}
+
-->{{#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> <br/>jap. {{#var:romaji}} }}
+
   | {{#if: {{#var:romaji}}|<nowiki>;</nowiki> jap. {{#var:romaji}} }}
 
   | {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }}
 
   | {{#if: {{#var:romaji}}|Jap. {{#var:romaji}} }}
 
   }}
 
   }}
}}<!--
+
}}<!--  
  
################
+
LINKLISTE Tooltip
        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>
 
}}<!--
 
  
#####################
+
-->{{#vardefine:links
              Einzelseite
+
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
#####################
+
  | {{#if: {{#var:mainlink}}
 +
    |<span class={{#var:g}}_links> →&thinsp;<strong>[[ {{{link|}}}#_{{#var:anker}} | {{SUBPAGENAME:{{{link|}}} }} ]]</strong>&emsp;</span> }}<!--
 +
-->{{#dpl:
 +
  |category = Artikel
 +
  |uses = skt:{{#var:anker}}
 +
  |nottitlematch = {{PAGENAME:{{{link|}}} }}
 +
  |ordermethod=none
 +
  |order = descending
 +
  |count = 5
 +
  |format = ,<span class={{#var:g}}_links>→&thinsp;[[%PAGE%#_{{#var:anker}}|%TITLE%]]&emsp;</span>
 +
  |suppresserrors=true
 +
}} {{#ifeq: {{#expr: {{#var:linkzahl}} > 5 }} | 1
 +
  | <span class={{#var:g}}_links> →&thinsp;[[skt:{{#var:anker}}|mehr…]]</span>
 +
}} }} }} }}<!--
  
-->{{#ifeq:{{NAMESPACE}}|Skt
+
LINKLISTE Glossareintrag
|{{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|}}}.)}} <!--
+
-->{{#vardefine:links_all
-->{{{devanagari|}}}</span><br /><!--
+
| {{#if: {{#var:mainlink}}  
  }}<!--
+
  |<span class={{#var:g}}_links> → Mehr Information zu {{#var:skt_oD}} im Artikel <!--
-->{{#var:ue}}{{#var:jap}}.
+
-->„[[ {{{link|}}}#_{{#var:anker}} |{{SUBPAGENAME: {{{link|}}} }}]]</span> }}<!--
{{#ifeq:{{#var:linkzahl}}|0 | |
+
-->{{#ifeq: {{#expr: {{#var:linkzahl}} > 1 }} | 1  
----
+
  | '''Alle Artikel'''
: → '''[[{{{link|}}}#{{#var:anker}}|Hauptartikel]]''' zu {{{skt_oD|{{FULLPAGENAME}} }}}“  
 
{{#ifeq:{{#var:linkzahl}}|1 | |
 
===Alle Artikel===
 
 
{{#dpl:
 
{{#dpl:
|category = Artikel
+
  |category = Artikel
|uses = {{FULLPAGENAME}}
+
  |uses = skt:{{#var:anker}}
|ordermethod=title
+
  |ordermethod=title
|format= ,\n: → [[%PAGE%#{{#var:anker}}|%PAGE%]]
+
  |order = ascending
}}
+
  |format = ,<span class={{#var:g}}_links> &nbsp;[[%PAGE%#_{{#var:anker}}|%PAGE%]]</span>
}}
+
  |suppresserrors=true
}}
+
}} }} }}<!--
<!--  
+
 
###########################
+
SCHREIBEN
            FLIESSTEXT
+
 
###########################
+
--><span class={{#var:g}}lossar id=_{{#var:anker}}><!--
-->
+
--><span class={{#var:g}}_stichwort>{{#var:skt_oD}}</span><!-- Stichwort
|{{#var:popup}}
+
--><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