|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US"> |
| 3 | + <info> |
| 4 | + <title>Wikipedia Templates</title> |
| 5 | + <title-short>Wikipedia Templates</title-short> |
| 6 | + <author> |
| 7 | + <name>Sally Baker</name> |
| 8 | + </author> |
| 9 | + <id>http://www.zotero.org/styles/wikipedia-templates</id> |
| 10 | + <link href="http://www.zotero.org/styles/wikipedia-templates" rel="self"/> |
| 11 | + <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> |
| 12 | + <link href="https://en.wikipedia.org/wiki/Template:Citation" rel="documentation"/> |
| 13 | + <link href="https://en.wikipedia.org/wiki/Template:Cite_book" rel="documentation"/> |
| 14 | + <link href="https://en.wikipedia.org/wiki/Template:Cite_journal" rel="documentation"/> |
| 15 | + <category field="generic-base"/> |
| 16 | + <category citation-format="numeric"/> |
| 17 | + <updated>2021-10-14T13:30:00+10:00</updated> |
| 18 | + </info> |
| 19 | + <!-- Top level macro which defines what bibliographical format will be returned --> |
| 20 | + <macro name="citations"> |
| 21 | + <choose> |
| 22 | + <if type="book chapter" match="any"> |
| 23 | + <text macro="book-citation"/> |
| 24 | + </if> |
| 25 | + <else-if type="article-journal"> |
| 26 | + <text macro="journal-citation"/> |
| 27 | + </else-if> |
| 28 | + <else> |
| 29 | + <text macro="generic-citation"/> |
| 30 | + </else> |
| 31 | + </choose> |
| 32 | + </macro> |
| 33 | + <!-- Inline citations are bibliographical entries wrapped in 'ref' tags --> |
| 34 | + <macro name="inline-citation"> |
| 35 | + <text macro="citations" prefix="<ref>" suffix="</ref>"/> |
| 36 | + </macro> |
| 37 | + <!-- Macros defining format types --> |
| 38 | +<!-- TO DO: edition, if not the first edition --> |
| 39 | + <macro name="book-citation"> |
| 40 | + <group prefix="{{cite book" suffix="}}"> |
| 41 | + <text macro="contributor-statements"/> |
| 42 | + <text macro="date"/> |
| 43 | + <text macro="title-statements"/> |
| 44 | + <text macro="publisher"/> |
| 45 | + <text macro="series"/> |
| 46 | + <text macro="volume"/> |
| 47 | + <text macro="edition"/> |
| 48 | + <text macro="place"/> |
| 49 | + <text macro="pagination"/> |
| 50 | + <text macro="url"/> |
| 51 | + <text macro="doi"/> |
| 52 | + <text macro="isbn"/> |
| 53 | + </group> |
| 54 | + </macro> |
| 55 | + <macro name="journal-citation"> |
| 56 | + <group prefix="{{cite journal" suffix="}}"> |
| 57 | + <text macro="contributor-statements"/> |
| 58 | + <text macro="title-statements"/> |
| 59 | + <text macro="volume"/> |
| 60 | + <text macro="issue"/> |
| 61 | + <text macro="pagination"/> |
| 62 | + <text macro="publisher"/> |
| 63 | + <text macro="place"/> |
| 64 | + <text macro="date"/> |
| 65 | + <text macro="url"/> |
| 66 | + <text macro="issn"/> |
| 67 | + <text macro="doi"/> |
| 68 | + <text macro="access-date"/> |
| 69 | + </group> |
| 70 | + </macro> |
| 71 | + <macro name="generic-citation"> |
| 72 | + <group prefix="{{Citation" suffix="}}"> |
| 73 | + <text macro="contributor-statements"/> |
| 74 | + <text macro="date"/> |
| 75 | + <text macro="title-statements"/> |
| 76 | + <text macro="publisher"/> |
| 77 | + <text macro="place"/> |
| 78 | + <text macro="pagination"/> |
| 79 | + <text macro="url"/> |
| 80 | + <text macro="access-date"/> |
| 81 | + </group> |
| 82 | + </macro> |
| 83 | +<!-- Macros defining required fields--> |
| 84 | + <macro name="contributor-statements"> |
| 85 | + <names variable="author" prefix=" | vauthors="> |
| 86 | + <name name-as-sort-order="all" initialize-with=". " delimiter=", " prefix="((" suffix="))"/> |
| 87 | + </names> |
| 88 | + <names variable="editor" prefix=" | veditors=" > |
| 89 | + <name name-as-sort-order="all" initialize-with=". " delimiter=", " prefix="((" suffix="))"/> |
| 90 | + </names> |
| 91 | + </macro> |
| 92 | + <macro name="date"> |
| 93 | + <choose> |
| 94 | + <if type="book article-journal chapter" match="any"> |
| 95 | + <date variable="issued" prefix=" | date="> |
| 96 | + <date-part name="day" form="numeric"/> |
| 97 | + <date-part name="month" form="long" prefix=" "/> |
| 98 | + <date-part name="year" form="long" prefix=" "/> |
| 99 | + </date> |
| 100 | + </if> |
| 101 | + <else> |
| 102 | + <date variable="issued" prefix=" | year="> |
| 103 | + <date-part name="year" form="long"/> |
| 104 | + </date> |
| 105 | + </else> |
| 106 | + </choose> |
| 107 | + </macro> |
| 108 | + <macro name="title-statements"> |
| 109 | + <choose> |
| 110 | + <if type="chapter"> |
| 111 | + <text variable="container-title" prefix=" | chapter="/> |
| 112 | + <text variable="title" prefix=" | title="/> |
| 113 | + </if> |
| 114 | + <else-if type="article-journal"> |
| 115 | + <text variable="container-title" prefix=" | journal ="/> |
| 116 | + <text variable="title" prefix=" | title="/> |
| 117 | + </else-if> |
| 118 | + <else> |
| 119 | + <text variable="title" prefix=" | title="/> |
| 120 | + </else> |
| 121 | + </choose> |
| 122 | + </macro> |
| 123 | + <macro name="publisher"> |
| 124 | + <text variable="publisher" prefix=" | publisher="/> |
| 125 | + </macro> |
| 126 | + <macro name="place"> |
| 127 | + <text variable="original-publisher-place" prefix=" | publication-place="/> |
| 128 | + </macro> |
| 129 | + <macro name="series"> |
| 130 | + <text variable="collection-title" prefix=" | series="/> |
| 131 | + </macro> |
| 132 | + <macro name="volume"> |
| 133 | + <number variable="volume" prefix=" | volume="/> |
| 134 | + </macro> |
| 135 | + <macro name="edition"> |
| 136 | + <number variable="edition" form="ordinal" prefix=" | edition="/> |
| 137 | + </macro> |
| 138 | + <macro name="doi"> |
| 139 | + <text variable="DOI" prefix=" | doi="/> |
| 140 | + </macro> |
| 141 | + <macro name="isbn"> |
| 142 | + <text variable="ISBN" prefix=" | isbn="/> |
| 143 | + </macro> |
| 144 | + <macro name="issn"> |
| 145 | + <text variable="ISSN" prefix=" | issn="/> |
| 146 | + </macro> |
| 147 | + <macro name="pagination"> |
| 148 | + <choose> |
| 149 | + <if type="article-journal chapter"> |
| 150 | + <text variable="page" prefix=" | pages="/> |
| 151 | + </if> |
| 152 | + </choose> |
| 153 | + </macro> |
| 154 | + <macro name="url"> |
| 155 | + <text variable="URL" prefix=" | url="/> |
| 156 | + </macro> |
| 157 | + <macro name="access-date"> |
| 158 | + <date variable="accessed" prefix=" | access-date="> |
| 159 | + <date-part name="day" form="numeric" suffix=" "/> |
| 160 | + <date-part name="month" form="long" suffix=" "/> |
| 161 | + <date-part name="year" form="long"/> |
| 162 | + </date> |
| 163 | + </macro> |
| 164 | + <macro name="issue"> |
| 165 | + <number variable="issue" prefix=" | issue="/> |
| 166 | + </macro> |
| 167 | +<!-- Inline citations --> |
| 168 | + <citation> |
| 169 | + <layout> |
| 170 | + <text macro="inline-citation"/> |
| 171 | + </layout> |
| 172 | + </citation> |
| 173 | + <!-- Bibliography --> |
| 174 | + <bibliography> |
| 175 | + <sort> |
| 176 | + <key macro="contributor-statements"/> |
| 177 | + <key macro="date"/> |
| 178 | + </sort> |
| 179 | + <layout> |
| 180 | + <text macro="citations"/> |
| 181 | + </layout> |
| 182 | + </bibliography> |
| 183 | +</style> |
0 commit comments