Vorlage:Sanskrit: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
 
(174 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<!--  
+
<includeonly><!--
##################
 
        VARIABLEN
 
##################
 
  
----- Anker -------
+
VARIABLE
-->{{#vardefine:anker
+
| skt_{{{skt_oD|}}}  
+
-->{{#vardefine:code
}}<!--
+
| {{#if: {{{code|}}}| {{lcfirst:{{{code|}}}}}
----- Mehr dazu-------
+
| {{lc:{{#regex: {{{skt_oD|}}} |/[\s_()'\-]/ |  }} }}
-->{{#vardefine:mehrdazu
+
}} }}<!--
| [[{{{link|}}}#{{#var:anker}}|mehr dazu]]  
 
}}<!--
 
 
----- Skt ohne Diakritika-------
 
----- Skt ohne Diakritika-------
 
-->{{#vardefine:skt_oD
 
-->{{#vardefine:skt_oD
| {{#switch: {{{klasse|}}}
+
| {{#if: {{{skt_oD|}}}
  |term = ''{{{skt_oD|}}}''
+
  | {{#switch: {{{klasse|}}}
  |name = {{ucfirst: {{{skt_oD|}}} }}
+
    |term = ''{{lcfirst: {{{skt_oD|}}} }}''
  |text = ''{{ucfirst: {{{skt_oD|}}} }}''
+
    |name = {{ucfirst: {{{skt_oD|}}} }}
  |#default = {{{skt_oD|}}}
+
    |text = ''{{ucfirst: {{{skt_oD|}}} }}''
 +
    |#default = {{{skt_oD|}}}
 +
    }}
 
   }}
 
   }}
 
}}<!--
 
}}<!--
Zeile 24: Zeile 21:
 
-->{{#vardefine:skt_mD
 
-->{{#vardefine:skt_mD
 
| {{#switch: {{{klasse|}}}
 
| {{#switch: {{{klasse|}}}
   |term = ''{{{skt_mD|}}}''
+
   |term = ''{{lcfirst: {{{skt_mD|}}} }}''
 
   |name = {{ucfirst: {{{skt_mD|}}} }}
 
   |name = {{ucfirst: {{{skt_mD|}}} }}
 
   |text = ''{{ucfirst: {{{skt_mD|}}} }}''
 
   |text = ''{{ucfirst: {{{skt_mD|}}} }}''
 
   |#default = {{{skt_mD|}}}
 
   |#default = {{{skt_mD|}}}
   }} {{{devanagari|}}} {{#if:{{{geschlecht|}}}| ({{{geschlecht|}}}.) }}
+
   }}  
 
}}<!--
 
}}<!--
 
----- Romaji-------
 
----- Romaji-------
 
-->{{#vardefine:romaji
 
-->{{#vardefine:romaji
| {{#switch: {{{klasse|}}}
+
| {{#if:{{{romaji|}}}
  |term = ''{{{romaji|}}}''
+
  | {{#switch: {{{klasse|}}}
  |name = {{ucfirst: {{{romaji|}}} }}
+
    |term = ''{{lcfirst: {{{romaji|}}} }}''
  |text = ''{{ucfirst: {{{romaji|}}} }}''
+
    |name = {{ucfirst: {{{romaji|}}} }}
  |#default = {{{romaji|}}}
+
    |text = ''{{ucfirst: {{{romaji|}}} }}''
 +
    |#default = {{{romaji|}}}
 
   }} {{{kanji|}}}
 
   }} {{{kanji|}}}
 +
  }}
 
}}<!--
 
}}<!--
 
----- Romaji 2-------
 
----- Romaji 2-------
-->{{#vardefine:romaji2
+
-->{{#vardefine:romaji
| {{#if:{{{romaji2|}}}  
+
| {{#if:{{#var:romaji}}
  | oder {{#switch: {{{klasse|}}}
+
  | {{#var:romaji}} {{#if:{{{romaji2|}}}  
    |term = ''{{{romaji2|}}}''
+
    | oder {{#switch: {{{klasse|}}}
    |name = {{ucfirst: {{{romaji2|}}} }}
+
      |term = ''{{lcfirst: {{{romaji2|}}} }}''
    |text = ''{{ucfirst: {{{romaji2|}}} }}''
+
      |name = {{ucfirst: {{{romaji2|}}} }}
    |#default = {{{romaji2|}}}
+
      |text = ''{{ucfirst: {{{romaji2|}}} }}''
 +
      |#default = {{{romaji2|}}}
 
     }} {{{kanji2|}}} }}
 
     }} {{{kanji2|}}} }}
 +
  }}
 
}}<!--
 
}}<!--
 +
----- Übersetzung -------
 +
-->{{#vardefine:text
 +
| {{#if:{{{ue|}}}
 +
  |„{{ucfirst: {{{ue|}}} }}“{{#if: {{{anm|}}}|, {{{anm|}}}}}
 +
  |{{{anm|}}}
 +
  }} {{#if: {{#var:romaji}}|(jap. {{#var:romaji}}) }}
 +
}}<!--
  
#### POPUP ########
+
DATEN SCHREIBEN
-->{{#vardefine:popup
+
 
|<span class='glossar2' id='{{#var:anker}}'><!--
+
-->{{Glossar_eintrag
-->{{#if: {{{1|}}}|{{{1}}}|{{#var:skt_oD}} }}<!--
+
| code= {{#var:code}}
--><small><small> (<span class=Kanji>{{#var:skt_mD}} </span> <span>{{#var:romaji}} {{#var:romaji2}}</span>, <span>{{{anm|}}}</span>, <span>{{#var:mehrdazu}}</span>)<!--
+
| styled_term= {{#var:skt_mD}}
--></small></small><!--
+
| styled_term_oD= {{#var:skt_oD}}
--></span>
+
| original_script= {{{devanagari|}}}
}}<!--
+
| geschlecht= {{{geschlecht|}}}
 +
| desc_of_term= {{#var:text}}
 +
| tags= {{{tags|}}}
 +
| thema= {{{thema|}}}
 +
| sprache={{{sprache|skt.}}}
 +
| map= {{{map|}}}
 +
| zoom= {{{zoom|}}}
 +
| type= {{{type|}}}
 +
| icon= {{{icon|}}}  
 +
}}</includeonly><!--  
 +
 
 +
DOKUMENTATION
  
#####################
+
--><noinclude>
SANSKRIT EINTRAG, Einzelseite
 
#####################
 
  
-->{{#ifeq:{{NAMESPACE}}|Skt
 
|{{styles}}{{#css:
 
  .skt_mD {
 
    display:block;
 
    font-family:'Lucida Sans Unicode', tahoma, 'Arial Unicode MS';
 
    font-size:1.2em;
 
    margin-bottom: .5em;
 
  }
 
  .skt_link {  display:block; margin-top: .6em; }
 
  }}
 
={{{skt_oD|{{PAGENAME}} }}}=
 
<span class=skt_mD>{{#var:skt_mD}}</span><!--
 
---->{{#vardefine:anm
 
  |{{#if:{{{ue|}}}|„{{ucfirst:{{{ue|}}} }}“ }}
 
  }}<!--
 
---->{{#vardefine:anm
 
  | {{#if:{{#var:anm}}|{{#var:anm}}<!--
 
  -->{{#if:{{{romaji|}}}|, jap.  {{#var:romaji}}  {{#var:romaji2}} }}
 
    |{{#if:{{{romaji|}}}|Jap.  {{#var:romaji}}  {{#var:romaji2}} }}
 
    }} }}<!--
 
---->{{#vardefine:anm
 
  | {{#if:{{#var:anm}}
 
    |{{#var:anm}}{{#if:{{{anm|}}}|<nowiki>;</nowiki> {{{anm|}}}. }}
 
    |{{#if:{{{anm|}}}|{{ucfirst:{{{anm|}}} }}.}}
 
    }}
 
  }}<!--
 
-->{{#var:anm}}<!--
 
-->{{#if:{{{link|}}}|<span class=skt_link>Siehe [[{{{link|}}}]]</span> }}
 
<!--
 
###########################
 
            FLIESSTEXT
 
###########################
 
-->
 
| {{#ifeq: {{PAGENAME}}|Sandkiste
 
  |{{#var:popup}}
 
  |<span class=sanskrit id={{#var:anker}}>{{#if:{{{1|}}} |{{{1|}}}|{{#var:skt_oD}} }}</span>
 
  }}
 
}}<noinclude>
 
 
===Code ===
 
===Code ===
 +
 
  <nowiki>{{Sanskrit
 
  <nowiki>{{Sanskrit
| skt_oD= <!--ohne Diakritika-->
+
| code =    <!-- für Spezialfälle, Code = Pagename -->
| skt_mD= <!--mit Diakritika-->
+
| sprache= 
 +
| skt_oD =   <!--ohne Diakritika-->
 +
| skt_mD =   <!--mit Diakritika-->
 
| devanagari =
 
| devanagari =
| geschlecht = m <!-- 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=   
| 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, 6 = standard -->
 +
| type= <!-- satellite, terrain -->
 +
| icon= <!-- Schrein oder Tempel -->
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 +
===Anleitung===
 +
*skt_oD = Version ohne Diakritika (wie im Titel)
 +
*skt_mD = Version mit Diakritika (Sonderzeichen)
 +
*devanagari = indische Schriftzeichen
 +
*Kursivschreibung, etc. wird durch "klasse" festgelegt
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 26. Juli 2022, 13:03 Uhr


Code

{{Sanskrit
| 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=    
| 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, 6 = standard -->
| type= <!-- satellite, terrain -->
| icon= <!-- Schrein oder Tempel -->
}}

Anleitung

  • skt_oD = Version ohne Diakritika (wie im Titel)
  • skt_mD = Version mit Diakritika (Sonderzeichen)
  • devanagari = indische Schriftzeichen
  • Kursivschreibung, etc. wird durch "klasse" festgelegt