Move basically the entire label content inside the item function

Move basically the entire label content, except for the footer, inside
the item function.
This results in a more simplified workflow for generating labels for
different items, since there's just one function call left where the
arguments need to be modified.
This commit is contained in:
June 2024-03-06 22:03:57 +01:00 committed by jtbx
parent 70ebc8fe9c
commit 5cdecb7d8d

View file

@ -55,16 +55,18 @@
#import "@preview/cades:0.3.0": qr-code
#let item(itemslug) = [
#let item(itemname, itemslug, usage) = [
== #itemname
#qr-code("https://wiki.hamburg.ccc.de/item:" + itemslug)
#text(8pt)[wiki.hamburg.ccc.de/item:#itemslug]
=== Usage
#usage
]
== Prusa i3 MK3S
#item("prusa-i3")
=== Usage
//Introduction required
See instructions (in the wiki)
//Freely
#item(
"Prusa i3 MK3s",
"prusa-i3",
// "Introduction required"
"See instructions (in the wiki)"
// "Freely"
)