DokuWiki
Pages in DokuWiki markup, headings, tables and note boxes included, shown as a tidy wiki page.
What it shows
Rebuild DokuWiki's markup as rules, with a slot mark of your own.
What you learn
Choosing $ as the slot mark, headings by the number of = signs, marks inside a sentence, links with and without a label, table rows split into cells, a code block and a note box.
Try this
- Change
notein the palette to #3d8bfd, and the note box turns blue.
Laser cutter
The 60 W laser cutter in the back room cuts and engraves wood, acrylic, card and leather up to 6 mm thick. You need an induction before you use it on your own, and you book it on the calendar.
Settings that work
| Material | Thickness | Power | Speed | Passes |
|---|---|---|---|---|
| Birch plywood | 3 mm | 85 % | 18 mm/s | 1 |
| Birch plywood | 6 mm | 100 % | 8 mm/s | 2 |
| Cast acrylic | 3 mm | 90 % | 12 mm/s | 1 |
| Greyboard | 2 mm | 45 % | 40 mm/s | 1 |
| Veg-tan leather | 2 mm | 60 % | 25 mm/s | 1 |
These are for cutting. For engraving, halve the power and double the speed, then run a test square.
Before you start
- Switch on the extractor, then the chiller, then the cutter
- Focus the lens on the material with the brass gauge
- Run a 10 mm test square in a corner of the sheet
Never cut these
- PVC or vinyl: it gives off chlorine gas
- Polycarbonate: it melts and catches fire
- Anything you are not sure about. Ask in the chat first.
Use the orange hose for the extractor. The new hose clips onto the back of the cutter.
Watch the first pass, every time.
Sending a job
From the laptop by the cutter, print to the laser like any printer:
File > Print > Laser cutter Job name: yourname-project Material: pick it from the list, then check the table above
How it's made
- Each mark here is a rule in the rules block. The number of = signs around a line picks the heading size.
- A line's first character makes a list item or a table row.
^cuts a row into header cells and|into ordinary cells. - The rules use $ for the words in between, because DokuWiki needs _ for underlining. That is the
set slot $line. - The note box and its round mark come from the rule for
<note>and its class.
Try it yourself
- Change
===== Settings that work =====to six = signs on each side. It becomes as big as the title. - Add a row
| Cork | 3 mm | 50 % | 30 mm/s | 1 |to the table. A new row appears. - Change
notein the palette to#3d8bfd. The note box turns blue. - Write
[[extractor]]in a sentence. It becomes a link that shows the page name.
Next: the MediaWiki rulebook writes a wiki page with different marks for the same things.
~~~ selfscribe
# DokuWiki: the markup of the DokuWiki engine, where more = signs mean a bigger heading. Use it with: use dokuwiki
# Lesson: Rebuild DokuWiki's markup as rules, with a slot mark of your own.
# You learn: choosing $ as the slot mark, headings by the number of = signs, marks inside a sentence, links with and without a label, table rows split into cells, a code block and a note box.
# Try this: change `note` in the palette to #3d8bfd, and the note box turns blue.
# summary: Pages in DokuWiki markup, headings, tables and note boxes included, shown as a tidy wiki page.
# category: syntax
set title DokuWiki
# ---- The slot mark: DokuWiki uses _ for underlining, so this rulebook writes $ instead --
set slot $
# ---- Colours, each with its shade for dark pages -------------------------------------
palette
note #e67700 dark #ffc078
rule color-mix(in srgb, currentColor 16%, transparent)
# ---- ====== Title ======: six = signs is the biggest heading, three the smallest ---------
line ====== $ ====== -> h1 fold 1
line ===== $ ===== -> h2 fold 2 { padding-bottom: 0.2em; border-bottom: 1px solid var(--rule) } as dw-h2
line ==== $ ==== -> h3 fold 3
line === $ === -> h4 fold 4
# ---- Marks inside a sentence: **bold** //italic// __underline__ ''code'' <del>gone</del> --
inline **$** -> strong
inline //$// -> em
inline __$__ -> u
inline ''$'' -> code verbatim
inline <del>$</del> -> del
# ---- [[page|label]] links with words of your own; [[page]] shows the page name ----------
inline [[$|$]] -> a href=$1 $2
inline [[$]] -> a href=$1 $1
# ---- Lists: "* " for a point, "- " for a numbered step ---------------------------------
# List items are indented two spaces; rules match the line after its indentation.
line * $ -> li group ul
line - $ -> li group ol
# ---- Tables: ^ between header cells, | between cells; each line is a row --------------
class dw-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
line ^ $ ^ -> tr group table.dw-table split "^" th
line | $ | -> tr group table.dw-table split "|" td
# ---- "> " quotes, ---- across the page, <code> and <note> blocks ----------------------
line > $ -> p group blockquote
line ---- -> hr
block <code> ... </code> -> pre verbatim
block <note> ... </note> -> aside.dw-note { position: relative; margin: 1.1em 0; padding: 0.8em 1.1em 0.8em 3.4em; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--note) 40%, transparent); background: color-mix(in srgb, var(--note) 10%, transparent) } as dw-note
class dw-note::before { content: "!"; position: absolute; left: 1em; top: 0.85em; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--note); color: var(--on-note); font: 800 0.9em/1 var(--doc-font-ui) }
class dw-note > p:last-child { margin-bottom: 0 }
~~~
====== Laser cutter ======
The 60 W laser cutter in the back room cuts and engraves wood, acrylic, card and leather up to 6 mm thick. You need [[induction|an induction]] before you use it on your own, and you book it on the [[calendar]].
<note>
**Stay with it for the whole job.** Plywood and acrylic can catch fire in seconds. The fire blanket hangs to the left of the door.
</note>
===== Settings that work =====
^ Material ^ Thickness ^ Power ^ Speed ^ Passes ^
| Birch plywood | 3 mm | 85 % | 18 mm/s | 1 |
| Birch plywood | 6 mm | 100 % | 8 mm/s | 2 |
| Cast acrylic | 3 mm | 90 % | 12 mm/s | 1 |
| Greyboard | 2 mm | 45 % | 40 mm/s | 1 |
| Veg-tan leather | 2 mm | 60 % | 25 mm/s | 1 |
These are for cutting. For engraving, halve the power and double the speed, then run a test square.
===== Before you start =====
- Switch on the extractor, then the chiller, then the cutter
- Focus the lens on the material with the brass gauge
- Run a 10 mm test square in a corner of the sheet
==== Never cut these ====
* PVC or vinyl: it gives off chlorine gas
* Polycarbonate: it melts and catches fire
* Anything you are __not sure__ about. Ask in the chat first.
<del>Use the orange hose for the extractor.</del> The new hose clips onto the back of the cutter.
> Watch the first pass, every time.
=== Sending a job ===
From the laptop by the cutter, print to the laser like any printer:
<code>
File > Print > Laser cutter
Job name: yourname-project
Material: pick it from the list, then check the table above
</code>
----
===== How it's made =====
* Each mark here is a rule in the rules block. The number of = signs around a line picks the heading size.
* A line's first character makes a list item or a table row. ''^'' cuts a row into header cells and ''|'' into ordinary cells.
* The rules use $ for the words in between, because DokuWiki needs _ for __underlining__. That is the ''set slot $'' line.
* The note box and its round mark come from the rule for ''<note>'' and its class.
===== Try it yourself =====
- Change ''===== Settings that work ====='' to six = signs on each side. It becomes as big as the title.
- Add a row ''| Cork | 3 mm | 50 % | 30 mm/s | 1 |'' to the table. A new row appears.
- Change ''note'' in the palette to ''#3d8bfd''. The note box turns blue.
- Write ''[[extractor]]'' in a sentence. It becomes a link that shows the page name.
**Next:** the //MediaWiki// rulebook writes a wiki page with different marks for the same things.