Need way to have two similar pages without repitition
If two instructions are mostly the same for two versions of a design with a minor difference you should not need to rewrite the whole page.
I am not keen on introducing if
else
blocks into the text, it will end up horrible.
My working idea is that a variable is somehow introduced to a page when called as a step link. Perhaps passing something beginning with var_
?
Defining variables
Calling page:
---
Variables:
type: big
---
You need to:
* [.](page.md){step}
Image wildcards
I think then the low hanging fruit is to allow different images using wildcards of some type:
page.md:
# Make a thing
Make it like this
![](images/%type%-thing.png)
This would then display images/big-thing.png
. Another page could use type:small
to display images/small-thing.png
Logic for page steps
This could later be extended to allow optional sections: page.md:
# Make a thing
## Creating a big thing {pagestep, only: thing==big}
Create a big thing from [wood]{qty: 800kg}
## Creating a small thing {pagestep, only: thing==small}
Create a small thing from [wood]{qty: 8 mg}
This would require deeper changes to the code as we would need to calculate the BOM multiple times within the same page