====== People Data ======
This page is used to export characters to a Python module for character card creation.
Recipe to produce new character cards:
- Add and update characters on the wiki
- Create a new batch below
- Notify Brend that there's a new batch ready to go
===== Data language templates =====
people['@@person[text]@@'] = {
'name': <*if addressed_as>'@@addressed_as@unique@@'<*if !addressed_as>None,
'image': <*if image>'@@image@unique[text]@@'<*if !image>None,
'type': <*if type>'@@type@unique[text]@@'<*if !type>None,
'clan': <*if clan>'@@clan@unique[text]@@'<*if !clan>None,
'gender': <*if gender>'@@gender@unique[text]@@'<*if !gender>None,
'rank': <*if rank>'@@rank@unique[text]@@'<*if !rank>None,
'proper_name': <*if proper_name>'@@proper_name@unique@@'<*if !proper_name>None,
'style': <*if style>'@@style@unique@@'<*if !style>None,
'tags': { '{{list> ?tag[text] "', '" | ?person is a: person; ?person[text] = @@person@@; ?person Tags[ref]: ?tag }}'},
'nest': <*if nest>'@@nest@unique[text]@@'<*if !nest>None,
'batch': {{list> ?b@max[text] | ?d is a: character_card_tracking; ?d Characters[ref]: ?p; ?p[text] = @@person@@; ?d Batch: ?b; group {} }} }
===== Tracking Data =====
This data tracks the already collected and printed data. The **New Tracker Block** will fill up with newly added characters, and can be copied to the **Batches** section to get the characters into the data export below. Updated characters neccessitate the creation of a new batch by copying an empty batch and manually adding the involved characters.
The data at the bottom of the page can be copy-pasted into a Python module, and will only include characters referenced in a batch. The highest batch number is embedded in the exported data as well, so that it is easy to produce new sheets of character cards by simply selecting all characters that match the highest number.
Once we have actually printed the cards, the status of the batches printed will be updated to 'Printed'. That way we can keep track of the version we have in use.
=== New Tracker Block ===
%% ?d@count[text] | ?d is a: character_card_tracking; group{} }} %%>%%\\
Batch: {{list> ?d@count[text] | ?d is a: character_card_tracking; group{} }}\\
Status: Not printed\\
Reason[wiki]: \\
Characters[ref]*: {{list> ?p[text] | ?p is a: person; minus { ?d is a: character_card_tracking; ?d Characters[ref]: ?p } }}\\
%%%%
=== Batches ===
Batch: 0
Status: Printed
Reason[wiki]: Initial import of all characters on the wiki
Characters[ref]*: ic:adam_smith, ic:agatha_cressingham, ic:alice_holmwood, ic:alma_rest, ic:amanda_phillips, ic:andrew_baker, ic:andrew_munter, ic:anna_bingley, ic:argyle_handerson, ic:bernard_lloyds, ic:betty_barnes, ic:charity_grey, ic:christina_wilton, ic:daniel_crosswick, ic:daphne_lantry, ic:dorian_price, ic:doris_coleman, ic:edith_granger, ic:edmund_creslow, ic:eleanor_de_beauvoir, ic:ellwood_tobin, ic:emily_baker, ic:esthella_van_halen, ic:fred_potter, ic:gladys_canterbury, ic:griselda_billington, ic:harry_barnes, ic:hester_purden, ic:horatio_brickdale, ic:ibrahim_ibn_yazid, ic:irene_miggins, ic:isaac_ashdown, ic:jack_bryant, ic:james_hogshaw, ic:jane_pembershire, ic:jean_de_beauvoir, ic:jeannette_iredale, ic:jesse_wheeler, ic:john_bingley, ic:john_reed, ic:julia_ashburn, ic:konrad_budai, ic:lilly_callington, ic:livia_gladstone, ic:margaret_longley, ic:mary_young, ic:matilda_elkins, ic:michael_parisy, ic:mildred_cooper, ic:muriella_hogshaw, ic:nat_purden, ic:nathan_dawson, ic:orpha_wheeler, ic:peter_shellton, ic:philip_von_geldern, ic:quincey_dickenson, ic:rachel_green, ic:romano_di_grimani, ic:roy_morgan, ic:rupert_billington, ic:samuel_berkeley, ic:samuel_coleman, ic:sarah_ashdown, ic:stuart_bingley, ic:sue_farley, ic:teresa_lewis, ic:thaddaeus_pembershire, ic:tobin_wade, ic:victor_iredale, ic:virginia_longley, ic:wayne_darrington, ic:william_calhoun, ic:william_von_dunheim, ic:yolanda_peggotty
Batch: 1
Status: Printed
Reason[wiki]: New NPCs and update of Prince's information
Characters[ref]*: ic:clarisa_este-guelph, ic:gillian_vernell, ic:jessamine_scarborough, ic:marcellus_vernell, ic:morgan_tresay, ic:solomon_este-guelph, ic:edmund_creslow
Batch: 2
Status: Not printed
Reason[wiki]: Adds several NPCs and updates image of Sir Berekely
Characters[ref]*: ic:amy_keeble, ic:angus_mcflite, ic:constance_chelmsford,ic:evelyn_minnett, ic:genevieve_saragy, ic:katherine_lavery, ic:sophia_comberton, ic:susan_simmons, ic:samuel_berkeley, ic:alex_chandler, ic:andrew_johnson, ic:engelbird_gardener, ic:james_cullen, ic:john_linden, ic:julia_dosett
===== Output =====
people = OrderedDict()
head_batch = {{list> ?b@max[text] | ?d is a: character_card_tracking; ?d Batch: ?b; group {} }}
template {
#python
}
?person is a: person
?d is a: character_card_tracking
?d Characters[ref]: ?p
?person entry title: ?addressed_as
optional {
?person Image[image]: ?image
}
optional {
?person Type [ref]: ?type
}
optional {
?person Clan [ref]: ?clan
}
optional {
?person Gender [ref]: ?gender
}
optional {
?person Rank [ref]: ?rank
}
optional {
?person Proper Name: ?proper_name
}
optional {
?person Style: ?style
}
optional {
?person Nest[ref]: ?nest
}