Vorlage:Glossar: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 9: Zeile 9:
 
   |/ū/=uu
 
   |/ū/=uu
 
}} }} }}<!--
 
}} }} }}<!--
-->{{#vardefine:linkzahl
+
-->{{#if: {{#var:anker}}
|{{#dpl:
+
| {{#vardefine:linkzahl
|category = Artikel
+
| {{#dpl:
|uses = glossar:{{#var:anker}}
+
  |category = Artikel
|format  =,
+
  |uses = glossar:{{#var:anker}}
|resultsfooter=%PAGES%  
+
  |format  =,
|noresultsfooter = 0
+
  |resultsfooter=%PAGES%  
}}
+
  |noresultsfooter = 0
}}<!--
+
}} }}<!--
-->{{#vardefine:links |
+
-->{{#vardefine:links  
{{#ifeq: {{NAMESPACE}} | Vorlage | <!-- do nothing -->
 
 
| {{#dpl:
 
| {{#dpl:
 
   |category = Artikel
 
   |category = Artikel
Zeile 31: Zeile 30:
 
--><span class='glossar2' id='g_{{#var:anker}}'><!--
 
--><span class='glossar2' id='g_{{#var:anker}}'><!--
 
-->{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}<!--
 
-->{{#if: {{{stichwort|}}}|{{{stichwort}}}|{{{romaji|}}}}}<!--
--> {{#var:links}} {{#ifeq: {{NAMESPACE}} | Glossar | <!-- do nothing -->
+
--> {{#var:links}} <includeonly>{{#ifeq: {{NAMESPACE}} | Glossar |  
 
| {{#ifexpr: {{#var:linkzahl}} > 5
 
| {{#ifexpr: {{#var:linkzahl}} > 5
 
| → [[glossar:{{#var:anker}}| mehr]]
 
| → [[glossar:{{#var:anker}}| mehr]]
}} }}
+
}} }}</includeonly>
 
</span></onlyinclude>
 
</span></onlyinclude>
 
 
<noinclude>
 
<noinclude>
 
===Code ===
 
===Code ===

Version vom 12. Juli 2014, 17:04 Uhr

{{#dpl:

 |category = Artikel
 |uses = glossar:{{#multireplace: 
 |/['()]/=
 |/\s/=_
 |/Ō/=Ou
 |/ō/=ou
 |/Ū/=Uu
 |/ū/=uu

}}

 |ordermethod=size
 |order = descending
 |count = 5
 |format= , → [[%PAGE%#g_{{#multireplace: 
 |/['()]/=
 |/\s/=_
 |/Ō/=Ou
 |/ō/=ou
 |/Ū/=Uu
 |/ū/=uu

}}|%PAGE%]]

 |noresultsfooter=0

}}

Code

{{Glossar
| stichwort = {{{1|}}}
| code = <!-- für Sonderfälle -->
| romaji =
| kanji = 
| text =
| sprache = <!-- chin. kor. -->
| link = <!-- wichtigste Seite -->
| tags =
}}