|
|
Line 9: |
Line 9: |
| }} | | }} |
|
| |
|
| Mermaid SMW Query Variations
| | == Test SMW Query == |
| Below are ten variations of the SMW query to replace the {{#ask}} block in the Sandbox page’s {{#mermaid}} code, each designed to bypass [[SMW::off]] annotations and produce valid Mermaid syntax (per https://mermaid.js.org/syntax/flowchart.html).
| | {#ask: |
| Variation 1: Plainlist with Minimal Parameters
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Uses plainlist to output raw text, avoiding annotations.
| |
| Variation 2: Explicit Property Naming
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of=Target
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Names the property (=Target) for correct parameter passing.
| |
| Variation 3: List Format
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=list
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Tests list format for simpler output.
| |
| Variation 4: Suppress All Annotations
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |showannotations=0
| |
| |searchlabel=
| |
| |intro=
| |
| |outro=
| |
| }}
| |
| | |
| Purpose: Combines all suppression parameters.
| |
| Variation 5: Suppress Property Metadata
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |propsep=
| |
| }}
| |
| | |
| Purpose: Sets propsep= to suppress metadata.
| |
| Variation 6: Template Format with Intro/Outro
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=template
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |intro=
| |
| |outro=
| |
| }}
| |
| | |
| Purpose: Tests template format with minimal metadata.
| |
| Variation 7: Explicit Page and Property
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]] | | [[Category:Musica]] [[Musica Is component of::+]] |
| |mainlabel=Source | | |mainlabel=Source |
Line 111: |
Line 18: |
| |link=none | | |link=none |
| |limit=100 | | |limit=100 |
| |sep=%0A | | |sep=, |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Names page (Source) and property (Target).
| |
| Variation 8: Debug Format
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=debug
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Outputs raw SMW data for debugging.
| |
| Variation 9: Simplified Query
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| | |
| Purpose: Removes mainlabel=- to test default behavior.
| |
| Variation 10: Template Format without Separator
| |
| {{#ask:
| |
| [[Category:Musica]] [[Musica Is component of::+]]
| |
| |?Musica Is component of
| |
| |mainlabel=-
| |
| |format=template
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |default="No Data" --> "None"
| |
| }} | | }} |
|
| |
| Purpose: Omits sep=%0A for default concatenation.
| |