Vorlage:Navbox artefact and text: 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, let deine the seperator, sinc…“)
 
Keine Bearbeitungszusammenfassung
 
(2 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|&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, 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>}}<!--  


**** 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:label1|Artefakte}}{{#vardefine:label2|Texte}}{{#vardefine:data1|{{#ask: [[is_member_of_class::Artefakt]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}}}}}}{{#vardefine:data2|{{#ask: [[is_member_of_class::Text]] | sort=has display title | order=ascending | format=list | sep={{#var:sep}} |limit=500}}}}<!--  
-- >{{#vardefine:label1|Artefakte}}{{#vardefine:label2|Texte}}{{#vardefine:data1|{{#ask: [[is_member_of_class::Artefact]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}}}{{#vardefine:data2|{{#ask: [[is_member_of_class::Text]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>|limit=500}}}}<!--  


**** call template navbox with all the data ****
**** call template navbox with all the data ****
Zeile 12: Zeile 12:
| above      =
| above      =
| image      =
| image      =
| group1    = {{#var:label1}}
| group1    = Artefakte
| list1      = {{#var:data1}}
| list1      = {{#ask: [[is_member_of_class::Artefact]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>}}
| group2    = {{#var:label2}}
| group2    = Texte
| list2      = {{#var:data2}}
| list2      = {{#ask: [[is_member_of_class::Text]] | sort=has display title | order=ascending | format=list | sep=&nbsp;&nbsp;&bull;&nbsp;<nowiki> </nowiki>|limit=500}}
| group3    = {{#var:label3}}
| group3    =  
| list3      = {{#var:data3}}
| list3      =  
| group4    = {{#var:label4|}}
| group4    =  
| list4      = {{#var:data4|}}
| list4      =  
| below      =
| below      =
}}<!--Last line of your template code--><noinclude>
}}<!--Last line of your template code--><noinclude>

Aktuelle Version vom 11. August 2024, 15:43 Uhr

Documentation icon Template documentation

Description

Displays a navbox on text or artefact pages with a listing of all artefacts and texts in play.

Data collection is done via semantic inline query. So no needing to update this. :)

Parameters

None

Usage

{{navbox artefact and text}}

See also