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
parent 66f31a822c
commit 5ad624cd48
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

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"
)