|
|
Line 13: |
Line 13: |
| }} |, |x| "{{#explode:x| ( |0}}" --> "{{#explode: {{#explode:x| ( |1}} | ) |0}}" |%0A}} | | }} |, |x| "{{#explode:x| ( |0}}" --> "{{#explode: {{#explode:x| ( |1}} | ) |0}}" |%0A}} |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px,font-size:12px; | | classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px,font-size:12px; |
| }}
| |
|
| |
| == TestGrok Mermaid Variations ==
| |
| Below are twelve variations of the SMW query to render a Mermaid flowchart using data from Category:Analysis.
| |
|
| |
| === Variation 1: Plainlist with Source and Target ===
| |
| {{#mermaid:
| |
| graph TD
| |
| {{#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |mainlabel=Source
| |
| |?Is related to=Target
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 2: Plainlist Minimal ===
| |
| {{#mermaid:
| |
| graph TD
| |
| {{#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 3: List Format ===
| |
| {{#mermaid:
| |
| graph TD
| |
| {{#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=list
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 4: Template Format ===
| |
| {{#mermaid:
| |
| graph TD
| |
| {{#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=template
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 5: Suppress Annotations ===
| |
| {{#mermaid:
| |
| graph TD
| |
| {{#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |showannotations=0
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 6: Property Separator ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |propsep=
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 7: Explicit Parameters with Suppression ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |mainlabel=Source
| |
| |?Is related to=Target
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |showannotations=0
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 8: Debug Output ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=debug
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 9: No Mainlabel ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 10: Template with Intro/Outro ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=template
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |intro=
| |
| |outro=
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 11: Strict Property Filter ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::!+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }}
| |
|
| |
| === Variation 12: Combined Suppression ===
| |
| {#mermaid:
| |
| graph TD
| |
| {#ask:
| |
| [[Category:Analysis]] [[Is related to::+]]
| |
| |?Is related to
| |
| |mainlabel=-
| |
| |format=plainlist
| |
| |template=MermaidRelationship
| |
| |link=none
| |
| |limit=100
| |
| |sep=%0A
| |
| |default="No Data" --> "None"
| |
| |showannotations=0
| |
| |searchlabel=
| |
| |intro=
| |
| |outro=
| |
| |propsep=
| |
| }}
| |
| classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
| |
| }} | | }} |