Vorlage:Navbox location: 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, let deine the seperator, sinc…“) |
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (4 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, let deine the seperator, since it is used multiple time -->{{#vardefine:sep| • }}<!-- | <!-- 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| • }}<!-- lets try a different one -- >{{#vardefine:sep| • <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= | -- >{{#vardefine:label2|Städte}}{{#vardefine:data2|{{#ask: [[is_member_of_class::City]] | order=ascending | format=list | sep= • <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= | -- >{{#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= • <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={{# | | list1 = {{#ask: [[is member of class::Location]] | sort=has display title | order=ascending | format=list | sep= • <nowiki> </nowiki> }} | ||
| | | group2 = {{#ifeq: {{#show: {{BASEPAGENAME}} | ?is member of class}} | Location | .. in {{#show: {{BASEPAGENAME}} | ?Is located in city}} | }} | ||
| list2 = {{# | | list2 = {{#ifeq: {{#show: {{BASEPAGENAME}} | ?is member of class}} | Location | {{#ask: [[is member of class::Location]] [[Is_located_in_city::{{#show: {{BASEPAGENAME}} | ?Is located in city#}} ]] | sort=has display title | order=ascending | format=list | sep= • <nowiki> </nowiki> }} | }} | ||
| | | group3 = Städte | ||
| list3 = {{# | | list3 = {{#ask: [[is_member_of_class::City]] | order=ascending | format=list | sep= • <nowiki> </nowiki>}} | ||
| below = | | below = | ||
}}<!--Last line of your template code--><noinclude> | }}<!--Last line of your template code--><noinclude> | ||
Aktuelle Version vom 23. Dezember 2024, 21:48 Uhr
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
- {{Navbox artefact and text}}
- {{Navbox chapter}}
- {{Navbox clan}}
- {{Navbox discipline}}