forked from citation-style-language/styles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapa-numeric-superscript.csl
More file actions
2024 lines (2002 loc) · 71.4 KB
/
apa-numeric-superscript.csl
File metadata and controls
2024 lines (2002 loc) · 71.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" and="symbol" class="in-text" demote-non-dropping-particle="never" initialize-with=". " names-delimiter=", " page-range-format="expanded" version="1.0">
<info>
<title>American Psychological Association 7th edition (numeric, superscript)</title>
<title-short>APA Style (numeric, superscript)</title-short>
<id>http://www.zotero.org/styles/apa-numeric-superscript</id>
<link href="http://www.zotero.org/styles/apa-numeric-superscript" rel="self"/>
<link href="http://www.zotero.org/styles/apa" rel="template"/>
<link href="https://apastyle.apa.org/style-grammar-guidelines/references/examples" rel="documentation"/>
<author>
<name>Brenton M. Wiernik</name>
<email>zotero@wiernik.org</email>
<uri>https://orcid.org/0000-0001-9560-6336</uri>
</author>
<contributor>
<name>Andrew Dunning</name>
<uri>https://orcid.org/0000-0003-0464-5036</uri>
</contributor>
<category citation-format="numeric"/>
<category field="psychology"/>
<category field="generic-base"/>
<summary>APA style, with superscript numeric in-text citations</summary>
<updated>2025-04-14T00:00:00+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
<terms>
<term name="ad"> C.E.</term>
<term name="at">before the</term>
<term name="bc"> B.C.E.</term>
<term form="short" name="circa">ca.</term>
<term name="collection">archival collection</term>
<term form="short" name="collection-editor">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
<term form="short" name="editor-translator">
<single>ed. & trans.</single>
<multiple>eds. & trans.</multiple>
</term>
<term form="short" name="editortranslator">
<single>ed. & trans.</single>
<multiple>eds. & trans.</multiple>
</term>
<term form="verb" name="hearing">testimony of</term>
<term form="short" name="illustrator">
<single>illus.</single>
<multiple>illus.</multiple>
</term>
<term form="short" name="interviewer">
<single>interviewer</single>
<multiple>interviewers</multiple>
</term>
<term name="issue">
<single>issue</single>
<multiple>issues</multiple>
</term>
<term form="verb" name="performer">recorded by</term>
<term name="post">online post</term>
<term name="review-of">review of the</term>
<term form="short" name="review-of">review of</term>
<term name="software">computer software</term>
<term form="short" name="translator">trans.</term>
</terms>
</locale>
<locale xml:lang="da">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<locale xml:lang="de">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<locale xml:lang="es">
<terms>
<term name="from">de</term>
</terms>
</locale>
<locale xml:lang="fr">
<terms>
<term form="short" name="editor">
<single>éd.</single>
<multiple>éds.</multiple>
</term>
</terms>
</locale>
<locale xml:lang="nb">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<locale xml:lang="nl">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<locale xml:lang="nn">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<locale xml:lang="ro">
<terms>
<term name="et-al">et al.</term>
</terms>
</locale>
<!-- Contents:
APA uses four main reference elements:
1. Author (APA 9.7-12)
2. Date (APA 9.13-17)
3. Title and descriptions (APA 9.18-22)
3.1. Title (APA 9.18)
3.2. Identifier (in parentheses) (APA 9.19)
3.3. Description [in square brackets] (APA 9.21)
4. Source (APA 9.23-37)
4.1. Periodical sources (APA 9.25-27)
4.2. Book-like sources (APA 9.28)
4.3. Publisher sources (APA 9.29)
4.4. Database and archive sources (APA 9.30)
4.5. Works with specific locations (APA 9.31)
4.6. Social media and website sources (APA 9.32-33)
4.7. DOI or URL (APA 9.34-36)
A note on the source may follow the main reference elements:
5. Publication history (APA 9.39-41)
APA also provides parallel rules for legal references
following The Bluebook: A Uniform System of Citation (chap. 11):
6. Legal references
6.1. Legal author
6.2. Legal date
6.3. Legal title
6.4. Legal source
-->
<!-- APA categorizes all items as periodical sources (APA 9.25-27)
or following the form of book chapters and reference works (APA 9.28),
which this style labels 'book-like'.
The book-like category includes TV episodes, podcast episodes,
and songs from albums.
Periodical
: article-journal article-magazine article-newspaper periodical post-weblog review review-book
Periodical or Book-like
: paper-conference
Considered book-like with any of `collection-editor compiler editor editorial-director`
(and unpublished if it also lacks `issue page volume`).
Book-like
: article book broadcast chapter classic collection dataset document
entry entry-dictionary entry-encyclopedia event figure
graphic interview manuscript map motion_picture musical_score
pamphlet patent performance personal_communication post report
software song speech standard thesis webpage
Legal
: bill hearing legal_case legislation regulation treaty
-->
<!-- Equivalencies:
`classic` == `book`
`document` == `report` (but give full date)
`standard` == `report`
`performance` == `speech`
`event` == `speech`
`collection` == `book` (but give full date)
-->
<!-- Role equivalencies:
`compiler` == `editor`
`organizer`, `curator` == `chair`
`script-writer` == `director`
`producer` == `director` (but don't print both)
`guest`, `host` == `director`
`series-creator`, `executive-producer` == `editor`
-->
<!-- Reviews are detected if an item has type `review` or `review-book`
or if it has any of the variables
`reviewed-title`, `reviewed-author`, or `reviewed-genre`.
For the latter case, reviews are commonly stored as types
`article-journal`, `article-magazine`, `article-newspaper`,
`post-weblog`, or `webpage`.
-->
<!-- Indigeneous knowledge:
Assume the item is stored as `document` or `speech`
and that Nation/Community, treaty territory,
where the Elder lives, and topic are all stored in `title`.
Cf. <https://libguides.norquest.ca/c.php?g=314831&p=5188823>.
If the item is stored as `interview`,
assume that Nation/Community, treaty territory,
and topic are stored in `title`.
'Oral teaching' or similar is stored in `archive`,
and where the Elder lives is stored in `archive-place`.
-->
<!-- Variable labels -->
<macro name="label-chapter-number">
<group delimiter=" ">
<choose>
<if is-numeric="chapter-number">
<label form="short" variable="chapter-number"/>
</if>
</choose>
<text variable="chapter-number"/>
</group>
</macro>
<macro name="label-edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number form="ordinal" variable="edition"/>
<label form="short" variable="edition"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="label-issue-capitalized">
<group delimiter=" ">
<label text-case="capitalize-first" variable="issue"/>
<text variable="issue"/>
</group>
</macro>
<macro name="label-locator-capitalized">
<!-- Abbreviate page and paragraph; leave other locator labels in long form (APA 8.13) -->
<group delimiter=" ">
<choose>
<if locator="page paragraph" match="any">
<label form="short" variable="locator"/>
</if>
<else>
<label text-case="capitalize-first" variable="locator"/>
</else>
</choose>
<text variable="locator"/>
</group>
</macro>
<macro name="label-number-capitalized">
<group delimiter=" ">
<choose>
<if is-numeric="number">
<label form="short" text-case="capitalize-first" variable="number"/>
</if>
</choose>
<text text-case="capitalize-first" variable="number"/>
</group>
</macro>
<macro name="label-number-article-capitalized">
<!-- APA example 6: Journal article with article number or eLocator -->
<group delimiter=" ">
<text term="article-locator" text-case="capitalize-first"/>
<text variable="number"/>
</group>
</macro>
<macro name="label-number-of-volumes-capitalized">
<group delimiter=" ">
<choose>
<if is-numeric="number-of-volumes">
<label form="short" text-case="capitalize-first" variable="number-of-volumes"/>
<group>
<text prefix="1" term="page-range-delimiter"/>
<number variable="number-of-volumes"/>
</group>
</if>
<else>
<text variable="number-of-volumes"/>
</else>
</choose>
</group>
</macro>
<macro name="label-page">
<group delimiter=" ">
<label form="short" variable="page"/>
<text variable="page"/>
</group>
</macro>
<macro name="label-part-number-capitalized">
<group delimiter=" ">
<choose>
<if is-numeric="part-number">
<!-- TODO: Replace with `part-number` label when CSL provides one -->
<text form="short" term="part" text-case="capitalize-first"/>
</if>
</choose>
<text text-case="capitalize-first" variable="part-number"/>
</group>
</macro>
<macro name="label-section-symbol">
<group delimiter=" ">
<label form="symbol" variable="section"/>
<text variable="section"/>
</group>
</macro>
<macro name="label-supplement-number-capitalized">
<group delimiter=" ">
<choose>
<if is-numeric="supplement-number">
<!-- TODO: Replace with `supplement-number` label when CSL provides one -->
<text form="short" term="supplement" text-case="capitalize-first"/>
</if>
</choose>
<text text-case="capitalize-first" variable="supplement-number"/>
</group>
</macro>
<macro name="label-version-capitalized">
<group delimiter=" ">
<label text-case="capitalize-first" variable="version"/>
<text variable="version"/>
</group>
</macro>
<macro name="label-volume-capitalized">
<group delimiter=" ">
<label form="short" text-case="capitalize-first" variable="volume"/>
<text text-case="capitalize-first" variable="volume"/>
</group>
</macro>
<!-- 1. Author (APA 9.7-12) -->
<macro name="author">
<group delimiter=" ">
<text macro="author-substitute"/>
<choose>
<!-- Print "with" contributor for books only -->
<if match="any" type="book classic collection">
<names prefix="(" suffix=")" variable="contributor">
<label form="verb" suffix=" "/>
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
</names>
</if>
</choose>
</group>
</macro>
<!-- Author elements -->
<macro name="author-substitute">
<!-- Substitutes for missing authors: order prioritizes primary creators (e.g., composer, author) over secondary roles (e.g., editor, curator), with title as the final fallback. -->
<names variable="composer">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label form="short" prefix=" (" suffix=")" text-case="title"/>
<substitute>
<names variable="author"/>
<!-- `narrator` only cited in `identifier-contributors` -->
<names variable="illustrator"/>
<choose>
<if type="broadcast">
<names variable="script-writer director">
<!-- Actors/performers and producers [not executive] not cited in APA style. -->
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
</if>
</choose>
<names variable="director">
<!-- For non-broadcast items, APA only cites directors and not writers. -->
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="guest host">
<!-- TODO: Collapse variables when that becomes available. -->
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="producer">
<!-- Producers not cited if there is a writer/director, but use if they are the principal creator. -->
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<choose>
<if variable="container-title">
<choose>
<if match="any" type="book classic collection entry entry-dictionary entry-encyclopedia">
<!-- Items with a book-like `container-title` substitute
their title and identifier,
but leave description after `container-title`.
This mimics the `source-booklike` macro. -->
<text macro="author-title-substitute"/>
</if>
</choose>
</if>
</choose>
<names variable="executive-producer">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="series-creator">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="editor-translator"/>
<!-- `translator` is not cited as a primary creator (only as Ed. & Trans.). -->
<names variable="editor"/>
<names variable="editorial-director"/>
<names variable="compiler">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<choose>
<if match="any" type="event performance speech">
<names variable="chair">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="organizer">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
</if>
</choose>
<names variable="curator">
<name delimiter-precedes-last="always" name-as-sort-order="all"/>
<label prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="collection-editor"/>
<text macro="author-title-substitute"/>
</substitute>
</names>
</macro>
<macro name="author-title-substitute">
<choose>
<if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title">
<!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains
the title of the reviewed work; the description provides it. -->
<choose>
<if variable="reviewed-genre title">
<text macro="title"/>
</if>
<else-if variable="reviewed-title title">
<text macro="title"/>
</else-if>
<else>
<text macro="title-and-descriptions"/>
</else>
</choose>
</if>
<else-if variable="title">
<!-- If an item has a `title`, substitute missing author with title and identifier, but leave description after the date (in the title position). -->
<group delimiter=" ">
<text macro="title"/>
<text macro="identifier"/>
</group>
</else-if>
<else>
<!-- If an item has no `title`, substitute with descriptions. -->
<text macro="title-and-descriptions"/>
</else>
</choose>
</macro>
<!-- 2. Date (APA 9.13-17) -->
<macro name="date">
<!-- Full dates included for ephemeral sources (e.g. broadcasts, interviews) to provide maximum specificity, while books use year only. -->
<group prefix="(" suffix=")">
<choose>
<if variable="issued">
<group delimiter=", ">
<group>
<text macro="date-issued-year"/>
<text variable="year-suffix"/>
</group>
<choose>
<if match="any" type="article-magazine article-newspaper broadcast collection document event interview motion_picture pamphlet performance personal_communication post post-weblog song speech webpage">
<!-- Many video and audio examples in manual give full dates. Err on the side of too much information. -->
<text macro="date-issued-month-day"/>
</if>
<else-if type="paper-conference">
<!-- Capture `speech` stored as `paper-conference` -->
<choose>
<if match="none" variable="collection-editor compiler editor editorial-director issue page volume">
<text macro="date-issued-month-day"/>
</if>
</choose>
</else-if>
<!-- Only year: article article-journal book chapter classic
entry entry-dictionary entry-encyclopedia dataset figure graphic
manuscript map musical_score paper-conference[published] patent
periodical report review review-book software standard thesis -->
</choose>
</group>
</if>
<else-if variable="status">
<group>
<!-- Print the status variable rather than use generic CSL terms (`in press`, etc.) -->
<text text-case="lowercase" variable="status"/>
<text prefix="-" variable="year-suffix"/>
</group>
</else-if>
<else>
<text form="short" term="no date"/>
<text prefix="-" variable="year-suffix"/>
</else>
</choose>
</group>
</macro>
<!-- Date elements -->
<macro name="date-issued-full">
<group delimiter=" ">
<text macro="date-issued-uncertain"/>
<date form="text" variable="issued"/>
</group>
</macro>
<macro name="date-issued-month-day">
<date variable="issued">
<date-part name="month"/>
<date-part name="day" prefix=" "/>
</date>
</macro>
<macro name="date-issued-uncertain">
<choose>
<if is-uncertain-date="issued">
<text form="short" term="circa"/>
</if>
</choose>
</macro>
<macro name="date-issued-year">
<group delimiter=" ">
<text macro="date-issued-uncertain"/>
<date date-parts="year" form="text" variable="issued"/>
</group>
</macro>
<macro name="date-original-year">
<group delimiter=" ">
<choose>
<if is-uncertain-date="original-date">
<text form="short" term="circa"/>
</if>
</choose>
<date variable="original-date">
<date-part name="year"/>
</date>
</group>
</macro>
<!-- 3. Title and descriptions (APA 9.18-22) -->
<macro name="title-and-descriptions">
<group delimiter=" ">
<choose>
<if variable="title">
<text macro="title"/>
<text macro="identifier"/>
<text macro="description"/>
</if>
<else>
<choose>
<if match="any" type="bill report">
<!-- Bills, resolutions, and congressional reports substitute bill number if no title. -->
<!-- Congressional reports are indistinguishable from other reports -->
<text macro="identifier-number"/>
<text macro="description"/>
<text macro="identifier"/>
</if>
<else>
<text macro="description"/>
<text macro="identifier"/>
</else>
</choose>
</else>
</choose>
</group>
</macro>
<!-- 3.1. Title (APA 9.18) -->
<macro name="title">
<choose>
<if match="any" type="post webpage">
<!-- Handle `container-title` on `post` or `webpage` as `publisher` -->
<text font-style="italic" macro="title-plus-part-filter-review"/>
</if>
<!-- Other types are italicized based on presence of `container-title`.
Assume that review and review-book are published in periodicals/blogs,
not just on a webpage (APA example 69) -->
<else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book">
<text macro="title-periodical"/>
</else-if>
<else-if type="paper-conference">
<!-- Treat `paper-conference` as book-like if it has an editor, otherwise as periodical-like -->
<choose>
<if match="any" variable="collection-editor compiler editor editorial-director">
<text macro="title-booklike"/>
</if>
<else>
<text macro="title-periodical"/>
</else>
</choose>
</else-if>
<else>
<text macro="title-booklike"/>
</else>
</choose>
</macro>
<!-- Title elements -->
<macro name="title-booklike">
<!-- For book-like items, assume `part-number` and `part-title` refer to the book/volume. -->
<choose>
<if variable="container-title">
<text variable="title"/>
</if>
<else>
<!-- For book-like items without `container-title` and with `volume-title`, append `volume-title` to `title` (APA example 30) -->
<text font-style="italic" macro="title-plus-volume-title"/>
</else>
</choose>
</macro>
<macro name="title-part">
<group delimiter=". ">
<text macro="label-part-number-capitalized"/>
<text text-case="capitalize-first" variable="part-title"/>
</group>
</macro>
<macro name="title-periodical">
<!-- For periodicals, assume that `part-number` and `part-title` refer to the article and append to `title` -->
<choose>
<if variable="container-title">
<text macro="title-plus-part-filter-review"/>
</if>
<else>
<!-- for periodical items without `container-title`, don't append `volume-title` to `title` -->
<text font-style="italic" macro="title-plus-part-filter-review"/>
</else>
</choose>
</macro>
<macro name="title-plus-part-filter-review">
<choose>
<if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title">
<!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains
the title of the reviewed work; the description provides it. -->
<choose>
<if variable="reviewed-genre title">
<text macro="title-plus-part-title"/>
</if>
<else-if variable="reviewed-title title">
<text macro="title-plus-part-title"/>
</else-if>
</choose>
</if>
<else>
<text macro="title-plus-part-title"/>
</else>
</choose>
</macro>
<macro name="title-plus-part-title">
<group delimiter=": ">
<text variable="title"/>
<text macro="title-part"/>
</group>
</macro>
<macro name="title-plus-volume-title">
<group delimiter=": ">
<text variable="title"/>
<text macro="title-volume"/>
</group>
</macro>
<macro name="title-volume">
<group delimiter=": ">
<choose>
<if variable="volume-title">
<group delimiter=". ">
<text macro="label-volume-capitalized"/>
<text variable="volume-title"/>
</group>
</if>
<else-if is-numeric="volume" match="none">
<text macro="label-volume-capitalized"/>
</else-if>
</choose>
<!-- Assume that `part-number` and `part-title` of book-like items refer to the source book/volume -->
<text macro="title-part"/>
</group>
</macro>
<!-- 3.2. Identifier (in parentheses) (APA 9.19) -->
<macro name="identifier">
<!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) -->
<group delimiter="; " prefix="(" suffix=")">
<choose>
<if type="patent">
<text macro="identifier-patent"/>
</if>
<else-if type="report">
<choose>
<if match="none" variable="title">
<!-- If there is no `title`, then `genre` and `number` are already printed as the title. -->
<text macro="identifier-contributors"/>
<text macro="identifier-database"/>
<text macro="identifier-booklike"/>
</if>
<!-- If the report is a chapter in a larger report, then most identifying information is printed in the source. -->
<else-if variable="container-title">
<text macro="identifier-contributors"/>
</else-if>
<else>
<group delimiter="; ">
<text macro="identifier-contributors"/>
<text macro="identifier-database"/>
<text macro="identifier-number"/>
<text macro="identifier-booklike"/>
</group>
</else>
</choose>
</else-if>
<else-if match="any" type="post webpage">
<!-- Handle `container-title` on `post` or `webpage` as `publisher` -->
<group delimiter="; ">
<text macro="identifier-contributors"/>
<text macro="identifier-database"/>
<text macro="identifier-number"/>
<text macro="identifier-booklike"/>
</group>
</else-if>
<else-if variable="container-title">
<group delimiter="; ">
<text macro="identifier-contributors"/>
<choose>
<if match="any" type="broadcast graphic map motion_picture song">
<!-- For audiovisual media, `number` information comes after title, not `container-title` (APA example 94) -->
<text macro="identifier-number"/>
</if>
</choose>
</group>
</else-if>
<else>
<group delimiter="; ">
<text macro="identifier-contributors"/>
<text macro="identifier-database"/>
<text macro="identifier-number"/>
<text macro="identifier-booklike"/>
</group>
</else>
</choose>
</group>
</macro>
<!-- Identifier elements -->
<macro name="identifier-booklike">
<choose>
<if match="any" type="article-journal article-magazine article-newspaper broadcast event interview patent performance periodical post post-weblog review review-book speech webpage"/>
<else-if type="paper-conference">
<choose>
<if match="any" variable="collection-editor compiler editor editorial-director">
<group delimiter=", ">
<text macro="label-version-capitalized"/>
<text macro="label-edition"/>
<text macro="identifier-volume"/>
</group>
</if>
</choose>
</else-if>
<else>
<group delimiter=", ">
<text macro="label-version-capitalized"/>
<text macro="label-edition"/>
<text macro="identifier-volume"/>
</group>
</else>
</choose>
</macro>
<macro name="identifier-contributors">
<choose>
<if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book">
<text macro="identifier-contributors-periodical"/>
</if>
<else-if type="paper-conference">
<choose>
<if match="any" variable="collection-editor compiler editor editorial-director">
<text macro="identifier-contributors-booklike"/>
</if>
<else>
<text macro="identifier-contributors-periodical"/>
</else>
</choose>
</else-if>
<else>
<text macro="identifier-contributors-booklike"/>
</else>
</choose>
</macro>
<macro name="identifier-contributors-booklike">
<group delimiter="; ">
<choose>
<if variable="title">
<names variable="interviewer">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
</if>
</choose>
<choose>
<if match="none" type="post webpage">
<!-- Handle `container-title` on `post` or `webpage` as `publisher` -->
<group delimiter="; ">
<names delimiter="; " variable="illustrator narrator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
<choose>
<if match="none" variable="container-title">
<group delimiter="; ">
<names variable="container-author">
<label form="verb-short" suffix=" " text-case="title"/>
<name/>
</names>
<names delimiter="; " variable="editor translator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names delimiter="; " variable="compiler chair organizer curator series-creator executive-producer">
<name/>
<label prefix=", " text-case="title"/>
</names>
</group>
</if>
<else>
<choose>
<!-- TODO: Check logic once processors start to automatically populate `editor-translator` -->
<if match="none" variable="editor-translator">
<names delimiter="; " variable="translator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
</if>
</choose>
</else>
</choose>
</group>
</if>
<else>
<group delimiter="; ">
<names variable="container-author">
<label form="verb-short" suffix=" " text-case="title"/>
<name/>
</names>
<names delimiter="; " variable="editor translator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names delimiter="; " variable="illustrator narrator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names delimiter="; " variable="compiler chair organizer curator series-creator executive-producer">
<name/>
<label prefix=", " text-case="title"/>
</names>
</group>
</else>
</choose>
</group>
</macro>
<macro name="identifier-contributors-periodical">
<group delimiter="; ">
<choose>
<if variable="title">
<names delimiter="; " variable="interviewer">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
</if>
</choose>
<names delimiter="; " variable="translator narrator">
<name/>
<label form="short" prefix=", " text-case="title"/>
</names>
</group>
</macro>
<macro name="identifier-database">
<choose>
<if match="none" variable="archive_collection archive-place">
<!-- With `archive_collection` or `archive-place`: physical archives. Without: online archives. -->
<text variable="archive_location"/>
</if>
</choose>
</macro>
<macro name="identifier-locators">
<choose>
<if variable="page">
<text macro="label-page"/>
</if>
<else-if variable="chapter-number">
<text macro="label-chapter-number"/>
</else-if>
</choose>
</macro>
<macro name="identifier-number">
<choose>
<if variable="number">
<group delimiter=", ">
<group delimiter=" ">
<choose>
<if type="thesis" variable="genre">
<!-- `genre` provided with thesis description (APA example 65) -->
<text text-case="capitalize-first" value="publication"/>
</if>
<else>
<text text-case="title" variable="genre"/>
</else>
</choose>
<text macro="label-number-capitalized"/>
</group>
</group>
</if>
</choose>
</macro>
<macro name="identifier-patent">
<!-- `authority`: U.S. ; `genre`: patent ; `number`: 123,445 -->
<group delimiter=" ">
<text form="short" variable="authority"/>
<choose>
<if variable="genre">
<text text-case="capitalize-first" variable="genre"/>
</if>
<else>
<text term="patent" text-case="capitalize-first"/>
</else>
</choose>
<text macro="label-number-capitalized"/>
</group>
</macro>
<macro name="identifier-series">
<!-- Series given only for report-like types (APA example 52) -->
<choose>
<if match="any" type="document report standard">
<group delimiter=" ">
<text text-case="title" variable="collection-title"/>
<text variable="collection-number"/>
</group>
</if>
</choose>
</macro>
<macro name="identifier-volume">
<group delimiter=", ">
<text macro="identifier-series"/>
<text macro="label-supplement-number-capitalized"/>
<choose>
<if variable="volume">
<choose>
<!-- Non-numeric volumes are already printed as part of the book title -->
<if variable="volume-title"/>
<else-if is-numeric="volume">
<text macro="label-volume-capitalized"/>
</else-if>
</choose>
</if>
<else>
<text macro="label-number-of-volumes-capitalized"/>
</else>
</choose>
<text macro="label-issue-capitalized"/>
<text macro="identifier-locators"/>
</group>
</macro>
<!-- 3.3. Description [in square brackets] (APA 9.21) -->
<macro name="description">
<group prefix="[" suffix="]">
<choose>
<if match="any" type="interview" variable="interviewer">
<text macro="description-interview"/>
</if>
<else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title">
<text macro="description-review"/>
</else-if>
<else-if type="personal_communication">
<text macro="description-letter"/>
</else-if>
<else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book">
<text macro="description-periodical"/>
</else-if>
<else-if type="song" variable="composer">
<text macro="description-song"/>
</else-if>
<else-if type="thesis">
<text macro="description-thesis"/>
</else-if>
<else-if match="none" variable="container-title">
<!-- Other description -->
<text macro="description-format"/>
</else-if>
<else>
<text macro="description-generic"/>
</else>
</choose>
</group>
</macro>
<!-- Description elements -->
<macro name="description-format">
<choose>
<if match="any" variable="genre medium">
<group delimiter="; ">
<choose>
<if match="none" variable="number">
<text text-case="capitalize-first" variable="genre"/>
</if>
</choose>
<text text-case="capitalize-first" variable="medium"/>
</group>
</if>
<else>
<text macro="description-format-term-generic"/>