More special cases
This commit is contained in:
parent
08ab18e16f
commit
02a28b2272
1 changed files with 13 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
#let dummy(truc) = [truc]
|
||||
|
||||
// Builds a card from arguments
|
||||
#let card(name: none, protection_items: (), forbidden_items: (), referent: "Pas de referent",
|
||||
#let card(name: none, protection_items: (), forbidden_items: (), referent:
|
||||
none,
|
||||
instructions: none, note: none, min_help: 0) = {
|
||||
(
|
||||
name: name,
|
||||
|
@ -33,13 +34,21 @@ instructions: none, note: none, min_help: 0) = {
|
|||
#text(size: 40pt, weight: "bold")[#card.name]
|
||||
]
|
||||
[
|
||||
#if card.referent != none [
|
||||
#text(size: 20pt)[Référent·es: #card.referent]
|
||||
] else [
|
||||
#text(size: 20pt)[Référent·es: #text(style: "italic")[Demander à un·e respo]]
|
||||
]
|
||||
]
|
||||
linebreak()
|
||||
[
|
||||
#let plural = if card.min_help > 0 [s] else []
|
||||
#if card.min_help > 0 [
|
||||
#text(size: 20pt)[Utilisation: au moins
|
||||
#text(weight: "bold")[#str(card.min_help + 1)] personne#plural]
|
||||
] else [
|
||||
#text(size: 20pt)[Utilisation: peut s'utiliser seul·e]
|
||||
]
|
||||
]
|
||||
linebreak()
|
||||
linebreak()
|
||||
|
|
Loading…
Reference in a new issue