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]
|
#let dummy(truc) = [truc]
|
||||||
|
|
||||||
// Builds a card from arguments
|
// 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) = {
|
instructions: none, note: none, min_help: 0) = {
|
||||||
(
|
(
|
||||||
name: name,
|
name: name,
|
||||||
|
@ -33,13 +34,21 @@ instructions: none, note: none, min_help: 0) = {
|
||||||
#text(size: 40pt, weight: "bold")[#card.name]
|
#text(size: 40pt, weight: "bold")[#card.name]
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
#text(size: 20pt)[Référent·es: #card.referent]
|
#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()
|
linebreak()
|
||||||
[
|
[
|
||||||
#let plural = if card.min_help > 0 [s] else []
|
#let plural = if card.min_help > 0 [s] else []
|
||||||
#text(size: 20pt)[Utilisation: au moins
|
#if card.min_help > 0 [
|
||||||
#text(weight: "bold")[#str(card.min_help + 1)] personne#plural]
|
#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()
|
||||||
linebreak()
|
linebreak()
|
||||||
|
|
Loading…
Reference in a new issue