Parish Archive

Custom HTML

Colored boxes, columns, collapsible sections, figures with a caption and icons, written in HTML

When Markdown is not enough, write HTML directly in a Markdown page. The style attribute gives colors, borders and layout.

Note

For safety the wiki removes scripts and on... attributes from every page. A <style> block and <iframe> frames are kept only for editors with the "styles" and "scripts" permissions.

Colored box

Ordinary Time. The liturgical color is green: the color of hope and growth.
<div style="background:#F2ECE2; border-left:6px solid #5B6B3A; border-radius:8px; padding:12px 16px;">
<strong>Ordinary Time.</strong> The liturgical color is green: the color of hope and growth.
</div>
++++
<div style="background:#F2ECE2; border-left:6px solid #5B6B3A; border-radius:8px; padding:12px 16px;">
<strong>Ordinary Time.</strong> The liturgical color is green: the color of hope and growth.
</div>
++++

Two columns

On a phone the columns go one under the other.

Indoor version
Soft ball, chairs as goals, 4 teams.
Outdoor version
Real ball, cones as goals, 6 teams.
<div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px;">
<div style="border:1px solid #DDD4C5; border-radius:8px; padding:12px 16px;">
<strong>Indoor version</strong><br>Soft ball, chairs as goals, 4 teams.
</div>
<div style="border:1px solid #DDD4C5; border-radius:8px; padding:12px 16px;">
<strong>Outdoor version</strong><br>Real ball, cones as goals, 6 teams.
</div>
</div>
[cols="1,1", frame=none, grid=none]
|===
a| *Indoor version* +
Soft ball, chairs as goals, 4 teams.
a| *Outdoor version* +
Real ball, cones as goals, 6 teams.
|===

Collapsible section

The reader opens it with a click. Good for long details that not everybody needs.

Full list of materials
  • 2 balls
  • 8 cones
  • 30 cards with the questions
  • Whistle
<details>
<summary>Full list of materials</summary>

- 2 balls
- 8 cones
- 30 cards with the questions
- Whistle

</details>
.Full list of materials
[%collapsible]
====
* 2 balls
* 8 cones
* 30 cards with the questions
* Whistle
====
<details>
  <summary>Full list of materials</summary>
  <ul>
    <li>2 balls</li>
    <li>8 cones</li>
    <li>30 cards with the questions</li>
    <li>Whistle</li>
  </ul>
</details>

In Markdown, leave an empty line after <summary> and before </details>, so the list inside is still written in Markdown.

Figure with a caption

Climbing the mountain
The final climb of the summer camp.
<figure style="margin:0; text-align:center;">
<img src="/_assets/illustrations/undraw_going_up.svg" alt="Climbing the mountain" width="220">
<figcaption>The final climb of the summer camp.</figcaption>
</figure>
.The final climb of the summer camp.
image::/_assets/illustrations/undraw_going_up.svg[Climbing the mountain, 220, align=center]

Icons

Any icon of Material Design Icons, with mdi: and its name. The icons come from the wiki itself, not from another website.

Mass at 10:00
Games at 15:00
<iconify-icon icon="mdi:church" style="font-size:28px; color:#B5502D;"></iconify-icon> Mass at 10:00
<iconify-icon icon="mdi:soccer" style="font-size:28px; color:#5B6B3A;"></iconify-icon> Games at 15:00

Always close the icon with </iconify-icon>, even though it has nothing inside.