Vorlage:Navbox location: Unterschied zwischen den Versionen

CamNet - das Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><!-- first, let deine the seperator, since it is used multiple time -->{{#vardefine:sep|&nbsp;&nbsp;&nbsp;&nbsp;&bull;&emsp;}}<!-- lets try a different one -->{{#vardefine:sep|&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}<!--  
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><!-- first, let deine the seperator, since it is used multiple time -- >{{#vardefine:sep|&nbsp;&nbsp;&nbsp;&nbsp;&bull;&emsp;}}<!-- lets try a different one -- >{{#vardefine:sep|&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}<!--  


**** my own chapter number should be stored in {{#var:number}}, cause I'm a chapter and therefore template:chapter is used, which sets the var 'number'. ****
**** my own chapter number should be stored in {{#var:number}}, cause I'm a chapter and therefore template:chapter is used, which sets the var 'number'. ****
Zeile 5: Zeile 5:


**** first set the second column to pcs and the third to npcs; both label and data ****
**** first set the second column to pcs and the third to npcs; both label and data ****
-->{{#vardefine:label2|Städte}}{{#vardefine:data2|{{#ask: [[is_member_of_class::City]] | order=ascending | format=list | sep={{#var:sep}}}}}}<!--
-- >{{#vardefine:label2|Städte}}{{#vardefine:data2|{{#ask: [[is_member_of_class::City]] | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}}}<!--


**** if there is a chapter number, lets check, whether we have subchapter. ****
**** if there is a chapter number, lets check, whether we have subchapter. ****
-->{{#if:{{#var:incity|}}|{{#vardefine:sublocations|{{#ask: [[is member of class::Location]] [[Is_located_in_city::{{#var:incity}}]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}} }}}}|}}<!--  
-- >{{#if:{{#var:incity|}}|{{#vardefine:sublocations|{{#ask: [[is member of class::Location]] [[Is_located_in_city::{{#var:incity}}]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki> }}}}|}}<!--  


**** if there is at least one subchapter, we push the afore defined groups (pcs and npcs) one column in the back and place the subchapter as new group2 ****
**** if there is at least one subchapter, we push the afore defined groups (pcs and npcs) one column in the back and place the subchapter as new group2 ****
-->{{#if:{{#var:sublocations|}}|{{#vardefine:label3|{{#var:label2}}}}{{#vardefine:label2|.. in {{#var:incity}}}}{{#vardefine:data3|{{#var:data2}}}}{{#vardefine:data2|{{#var:sublocations}}}}|}}<!--  
-- >{{#if:{{#var:sublocations|}}|{{#vardefine:label3|{{#var:label2}}}}{{#vardefine:label2|.. in {{#var:incity}}}}{{#vardefine:data3|{{#var:data2}}}}{{#vardefine:data2|{{#var:sublocations}}}}|}}<!--  


**** call template navbox with all the data ****
**** call template navbox with all the data ****
Zeile 19: Zeile 19:
| state      = expanded
| state      = expanded
| title      = Chronik
| title      = Chronik
| above      =
| above      =  
| image      =
| image      =
| group1    = Schauplätze
| group1    = Schauplätze
| list1      = {{#ask: [[is member of class::Location]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}} }}
| list1      = {{#ask: [[is member of class::Location]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki> }}
| group2    = {{#var:label2}}
| group2    = {{#ifeq: {{#show: {{BASEPAGENAME}} | ?is member of class}} | City | .. in {{BASEPAGENAME}} | }}
| list2      = {{#var:data2}}
| list2      = {{#ifeq: {{#show: {{BASEPAGENAME}} | ?is member of class}} | City | {{#ask: [[is member of class::Location]] [[Is_located_in_city::{{BASEPAGENAME}}]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki> }} | }}
| group3    = {{#var:label3}}
| group3    = Städte
| list3      = {{#var:data3}}
| list3      = {{#ask: [[is_member_of_class::City]] | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}
| below      =
| below      =
}}<!--Last line of your template code--><noinclude>
}}<!--Last line of your template code--><noinclude>

Version vom 23. Dezember 2024, 21:11 Uhr

Documentation icon Template documentation

Description

Zeigt eine Navbox für eine Schauplatzseite: Alle bekannten Schauplätze, alle Schauplätze aus der gleichen Stadt wie der aktuelle Schauplatz und alle bekannten Städte.

Parameters

keine

Usage

{{Navbox location}}

See also