Vorlage:Sanskrit: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
<onlyinclude><!--
+
<!--  
 
+
##################
VARIABLE
+
        VARIABLEN
 
+
##################
 +
----- Anker -------
 
-->{{#vardefine:g
 
-->{{#vardefine:g
| {{#ifeq: {{NAMESPACE}} | Skt | G | g }}
+
| {{#ifeq: {{NAMESPACE}} | Glossar | G | g }}
 
}}<!--
 
}}<!--
 
-->{{#vardefine:anker
 
-->{{#vardefine:anker
| {{#if: {{{code|}}}| {{{code|}}}
+
| {{#multireplace: {{{skt_oD|}}}
| {{#multireplace: {{lc:{{{skt_oD|}}} }} |/['()-\s]/= }}  
+
  |/'/=
}} }}<!--
+
  |/\s/=_
-->{{#if: {{#var:anker}}
+
  }}
| {{#vardefine:linkzahl
+
}}<!--
| {{#dpl:
+
----- Mehr dazu-------
  |category = Artikel
+
-->{{#vardefine:mehrdazu
   |uses = skt:{{#var:anker}}
+
| {{#switch: {{#multireplace: {{{link|}}}|/:\s/=:|/\s/=_}}
  |format  =,
+
   | {{#multireplace: {{FULLPAGENAME}}|/\s/=_}}  
  |resultsfooter=%PAGES%
+
  | {{#multireplace: {{PAGENAME}}|/\s/=_}}
  |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 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}} }}
 
   }}
 
   }}
}}<!--  
+
}}<!--
  
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
+
#####################
| {{#ifeq: {{#var:linkzahl}} |0 | <!--do nothing -->
+
              Einzelseite
  | {{#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>
 
}} }} }} }}<!--
 
  
LINKLISTE Glossareintrag
+
-->{{#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}} }}} }}}}<!--
  
-->{{#vardefine:links_all
+
--><span class=skt>{{#var:skt_mD}}  {{#if:{{{geschlecht|}}}|({{{geschlecht|}}}.)}} <!--
| {{#if: {{#var:mainlink}}  
+
-->{{{devanagari|}}}</span><br /><!--
  |<span class={{#var:g}}_links> → Mehr Information zu {{#var:skt_oD}} im Artikel <!--
+
  }}<!--
-->„[[ {{{link|}}}#_{{#var:anker}} |{{SUBPAGENAME:  {{{link|}}} }}]]</span> }}<!--
+
-->{{#var:ue}}{{#var:jap}}.
-->{{#ifeq: {{#expr: {{#var:linkzahl}} > 1 }} | 1
+
{{#ifeq:{{#var:linkzahl}}|0 | |
  | '''Alle Artikel'''
+
----
 +
: → '''[[{{{link|}}}#{{#var:anker}}|Hauptartikel]]''' zu  „{{{skt_oD|{{FULLPAGENAME}} }}}“  
 +
{{#ifeq:{{#var:linkzahl}}|1 | |
 +
===Alle Artikel===
 
{{#dpl:
 
{{#dpl:
  |category = Artikel
+
|category = Artikel
  |uses = skt:{{#var:anker}}
+
|uses = {{FULLPAGENAME}}
  |ordermethod=title
+
|ordermethod=title
  |order = ascending
+
|format= ,\n: → [[%PAGE%#{{#var:anker}}|%PAGE%]]
  |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
+
-->
--><small class={{#var:g}}_box>{{#ifeq: {{#var:g}} | g |<span class=dvn> {{{devanagari|}}}</span> }}<!--  Devanagari
+
|{{#var:popup}}
--><big><!--
+
}}<noinclude>
--><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:skt:{{#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 =   <!-- gottheit, person, wesen, objekt, bauwerk,
+
| tags=
            land, zeit, text, bild, konzept, eigenschaft, tätigkeit -->
 
 
}}
 
}}
 
</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