Vorlage:Gather information: Unterschied zwischen den Versionen

CamNet - das Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 8: Zeile 8:
OLD: Here we segragated by "is about"; currently, not workin properly. So we forgo the into types and list all of them at one
OLD: Here we segragated by "is about"; currently, not workin properly. So we forgo the into types and list all of them at one
now get all the types of infos:
now get all the types of infos:
-->{{#arraydefine:types|{{#var:types|}}{{#ask: [[Attribut:Is about]] | ?allows value= | format = list | mainlabel=-|headers=none}}|,}}<!--  
-- >{{#arraydefine:types|{{#var:types|}}{{#ask: [[Attribut:Is about]] | ?allows value= | format = list | mainlabel=-|headers=none}}|,}}<!--  


and with all the types at hand, get all the differnt info types, one at a time:
and with all the types at hand, get all the differnt info types, one at a time:
-->{{#vardefine:infos|}}{{#vardefine:infos|{{#var:infos|}}{{#arrayprint:types||@@@@|{{#ask:[[Is_member_of_class::Info]] [[concerns::{{FULLPAGENAME}}]] [[is about::@@@@]] | ?holds information= | ?has source=Quelle: | ?Is_associated_to_page=siehe auch: | mainlabel=- | headers=plain | format=ul | intro=<h3>@@@@</h3>}}}}}} <!--  
-- >{{#vardefine:infos|}}{{#vardefine:infos|{{#var:infos|}}{{#arrayprint:types||@@@@|{{#ask:[[Is_member_of_class::Info]] [[concerns::{{FULLPAGENAME}}]] [[is about::@@@@]] | ?holds information= | ?has source=Quelle: | ?Is_associated_to_page=siehe auch: | mainlabel=- | headers=plain | format=ul | intro=<h3>@@@@</h3>}}}}}} <!--  


here we gather all the mentions, no caring about "is about"
here we gather all the mentions, no caring about "is about"
-->{{#ask:[[Is_member_of_class::Info]] [[concerns::{{FULLPAGENAME}}]] | ?holds information= | ?has source=Quelle: | ?is about=Typ | ?Is_associated_to_page=siehe auch: | mainlabel=- | headers=plain | format=ul<!--
-->{{#ask:[[Is_member_of_class::Info]] [[concerns::{{FULLPAGENAME}}]] | ?holds information= | ?has source=Quelle: | ?is about=Typ | ?Is_associated_to_page=siehe auch: | mainlabel=- | headers=plain | format=ul}}<!--


add a headline to infos, if not empty
add a headline to infos, if not empty

Version vom 15. Mai 2022, 21:24 Uhr

{{#vardefine:mentions|}}{{#vardefine:infos|

Vorhandene Informationen

{{#var:infos|}}}}{{#var:mentions|}}{{#var:infos|}}

Documentation icon Template documentation

Description

This gathers all information about {{PAGENAME}}, mentions in {{text}}s and {{info}}s added in {{chapter}}s. It only displays something, if any query was successful. Returns empty string, if nothing was found.

Parameters

none

Usage

{{Gather information}}

See also