Vorlage:Navbox discipline: Unterschied zwischen den Versionen
Noémi (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><!-- first, lets define the seperator, si…“) |
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><!-- first, lets define the seperator, since it is used multiple times -->{{#vardefine:sep| • }}<!-- | <!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><!-- first, lets define the seperator, since it is used multiple times -->{{#vardefine:sep| • }}<!-- lets try a different one -->{{#vardefine:sep| • <nowiki> </nowiki>}}<!-- | ||
**** set the second column to a path, if we are on page "Thaumaturgie" or "Nekromantie" or if variable "onpath" is set to any of these **** | **** set the second column to a path, if we are on page "Thaumaturgie" or "Nekromantie" or if variable "onpath" is set to any of these **** | ||
| Zeile 5: | Zeile 5: | ||
-->{{#ifeq:{{PAGENAME}}|Thaumaturgie|{{#vardefine:onpath|Thaumaturgie}}}}{{#ifeq:{{PAGENAME}}|Nekromantie|{{#vardefine:onpath|Nekromantie}}}}}}<!-- do the query it onpath matches | -->{{#ifeq:{{PAGENAME}}|Thaumaturgie|{{#vardefine:onpath|Thaumaturgie}}}}{{#ifeq:{{PAGENAME}}|Nekromantie|{{#vardefine:onpath|Nekromantie}}}}}}<!-- do the query it onpath matches | ||
-->{{#switch: {{#var:onpath}} | -->{{#switch: {{#var:onpath}} | ||
| Thaumaturgie = {{#vardefine:label2|Thaumaturgische Wege}}{{#vardefine:data2|{{#ask: [[is member of class:: | | Thaumaturgie = {{#vardefine:label2|Thaumaturgische Wege}}{{#vardefine:data2|{{#ask: [[is member of class::Discipline]] [[is_path_of::Thaumaturgie]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}}}}}} | ||
| Nekromantie = {{#vardefine:label2|Nekromantische Wege}}{{#vardefine:data2|{{#ask: [[is member of class:: | | Nekromantie = {{#vardefine:label2|Nekromantische Wege}}{{#vardefine:data2|{{#ask: [[is member of class::Discipline]] [[is_path_of::Nekromantie]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}}}}}} | ||
}}<!-- | }}<!-- | ||
| Zeile 18: | Zeile 18: | ||
| image = | | image = | ||
| group1 = Disziplin | | group1 = Disziplin | ||
| list1 = {{#ask: [[ | | list1 = {{#ask: [[Category:Disziplinen]] [[Is_path_of::Nein]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}} }} | ||
| group2 = {{#var:label2|}} | | group2 = {{#var:label2|}} | ||
| list2 = {{#var:data2|}} | | list2 = {{#var:data2|}} | ||
Aktuelle Version vom 21. Juni 2017, 13:26 Uhr
{{#vardefine:sep| • }}{{#vardefine:sep| • }}
Description
Zeigt eine Navbox für eine Disziplinseite: Alle bekannten Disziplinen und - sofern Thaumaturgie, Nekromantie oder ein Weg ausgewählt sind - alle bekannten Wege der entsprechenden Disziplin.
Parameters
keine
Usage
{{Navbox discipline}}
See also
- {{Navbox artefact and text}}
- {{Navbox chapter}}
- {{Navbox clan}}
- {{Navbox location}}