Vorlage:Navbox discipline: Unterschied zwischen den Versionen

CamNet - das Wiki
(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…“)
 
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|&nbsp;&nbsp;&nbsp;&nbsp;&bull;&emsp;}}<!--  
<!-- 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|&nbsp;&nbsp;&nbsp;&nbsp;&bull;&emsp;}}<!-- lets try a different one -->{{#vardefine:sep|&nbsp;&nbsp;&bull;&nbsp;<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::Disciplin]] [[is_path_of::Thaumaturgie]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}}}}}}
  | 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::Disciplin]] [[is_path_of::Nekromantie]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}}}}}}
  | 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: [[is member of class::Disciplin]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}} }}
| 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|  •  }}

Documentation icon Template documentation

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