TestMermaid
Test Mermaid
Mermaid SMW Query Variations Below are ten variations of the SMW query to replace the {{#ask}} block in the Sandbox page’s {{#mermaid}} code, each designed to bypass annotations and produce valid Mermaid syntax (per https://mermaid.js.org/syntax/flowchart.html). Variation 1: Plainlist with Minimal Parameters %0A%0A
Purpose: Uses plainlist to output raw text, avoiding annotations. Variation 2: Explicit Property Naming %0A%0A
Purpose: Names the property (=Target) for correct parameter passing. Variation 3: List Format %0A%0A
Purpose: Tests list format for simpler output. Variation 4: Suppress All Annotations %0A%0A
Purpose: Combines all suppression parameters. Variation 5: Suppress Property Metadata %0A%0A
Purpose: Sets propsep= to suppress metadata. Variation 6: Template Format with Intro/Outro %0A%0A
Purpose: Tests template format with minimal metadata. Variation 7: Explicit Page and Property Test_Annotations["Test Annotations"] --> Musica_Maneuverability_Score["Musica Maneuverability Score"];%0ATest_Annotations["Test Annotations"] --> Musica-Maneuverability-Score["Musica-Maneuverability-Score"];%0ATotal_Note_Load["Total Note Load"] --> Musica_Maneuverability_Score["Musica Maneuverability Score"];
Purpose: Names page (Source) and property (Target). Variation 8: Debug Format
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
`ooda_smw_object_ids` AS t0
INNER JOIN
(`ooda_smw_fpt_inst` AS t2
INNER JOIN
`ooda_smw_di_wikipage` AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.o_id=1045
AND (t4.p_id=1122)
)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
105
OFFSET
0
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t4 | ref | s_id, p_id, s_id_2, s_id_3 | p_id | 4 | const | 3 | 100.00 | Using index; Using temporary; Using filesort |
1 | SIMPLE | t2 | ref | s_id, o_id, s_id_2, o_id_2 | s_id_2 | 9 | mediawiki.t4.s_id, const | 1 | 100.00 | Using index |
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | mediawiki.t4.s_id | 1 | 95.60 | Using where |
Query-Depth:1
Purpose: Outputs raw SMW data for debugging. Variation 9: Simplified Query Test_Annotations["Test Annotations"] --> Musica_Maneuverability_Score["Musica Maneuverability Score"];%0ATest_Annotations["Test Annotations"] --> Musica-Maneuverability-Score["Musica-Maneuverability-Score"];%0ATotal_Note_Load["Total Note Load"] --> Musica_Maneuverability_Score["Musica Maneuverability Score"];
Purpose: Removes mainlabel=- to test default behavior. Variation 10: Template Format without Separator
Purpose: Omits sep=%0A for default concatenation.