Application "mermaid"

From SMW CindyKate by dataspects
Component 331455
Jump to navigation Jump to search
[edit]
Keywords/Contexts

Graph · mermaid

Annotations
{{#compound_query:Component 331455Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCaseMotivation;?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Application "mermaid";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Application "mermaid";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
name=MotivationsDeclaredOnThisPageResultItem|link=none}}
Motivations
Lua error in Module:Motivations at line 23: attempt to concatenate field 'hasReasoning' (a nil value).
[edit]

Content


About

mermaid offers generation of diagrams and flowcharts from text in a similar manner as markdown.

Use Case "Add HTML tag attributes when using 'htmlLabels:true'"

$mermaidHTMLLabel = '"
<mermaid>
  <table>
    <tr><td>&lt;span class=\'merPredicateTitle\'&gt;&lt;a href=\''.$propertyLink.'\'&gt;'.$triple->predicate.'&lt;/a&gt;</span></td></tr>
  </table>
</mermaid>"';

Using HTML entities allows you to add attributes to HTML tags within mermaid markup. However, it doesn't seem to work with table tags. That's why I enclose the table tag within a <mermaid> tag. That allows me to style the table from MediaWiki:Common.css:

mermaid table tr { line-height: 8px; }
mermaid table { background-color:#eeeeee; border-radius:5px; }