<?xml version="1.0" encoding="UTF-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="en-US" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="expanded"> <info> <title>GitHub Wiki</title> <id>github_wiki</id> <author> <name>Yurkin Maxim</name> <email>yurkin@gmail.com</email> <uri>http://sites.google.com/site/yurkin/</uri> </author> <category citation-format="numeric"/> <category field="physics"/> <updated>2018-07-05T20:22:16+00:00</updated> <summary>Designed to create bibiliographic entries for wiki pages on GitHub. Based on my style for personal website, but with numbers in bibliography replaced by 1. (without increments), typeface formatting replaced with wiki symbols, and more elaborate DOI linking. The latter is the following: for journal papers the "J.Name 34, 13-45" is linked, for others only page range is linked or (if page range is not present) the title is linked.</summary> <rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/</rights> </info> <!-- Terms --> <locale xml:lang="en"> <terms> <term name="presented at">presented at</term> </terms> </locale> <!-- Macros --> <macro name="type-number"> <!-- document type and number (thesis, patent, report, manuscript) --> <group delimiter=" "> <choose> <if type="patent"> <!-- Currently only US patents are supported, due to Zotero limitations --> <text value="U.S. Patent No."/> </if> <else> <!-- this is used for entries like 'Report', 'PhD thesis', 'submitted to ...' (for manuscripts) --> <text variable="genre"/> </else> </choose> <text variable="number"/> </group> </macro> <macro name="edition"> <choose> <if is-numeric="edition"> <group prefix=", " delimiter=" "> <number variable="edition" form="ordinal"/> <text term="edition" form="short"/> </group> </if> <else> <text variable="edition" prefix=", "/> </else> </choose> </macro> <macro name="editor"> <names variable="editor"> <label form="short" suffix=" "/> <name sort-separator=" " initialize-with="." name-as-sort-order="all" delimiter=", " and="text"/> </names> </macro> <macro name="author"> <names variable="author"> <name sort-separator=" " initialize-with="." name-as-sort-order="all" delimiter=", " and="text"/> <label form="short" prefix=", " text-case="title"/> <substitute> <names variable="editor"/> <names variable="translator"/> </substitute> </names> </macro> <macro name="title-link"> <!-- Includes edition number for books; adds link if page range is not available --> <choose> <if variable="page"> <text variable="title"/> </if> <else> <text macro="access-start"/> <choose> <if variable="container-title event" match="any"> <text variable="title"/> </if> <else> <!-- here the title is italic --> <text variable="title" prefix="_" suffix="_"/> </else> </choose> <text macro="access-end"/> </else> </choose> <choose> <if type="book"> <text macro="edition"/> </if> </choose> </macro> <macro name="publisher"> <!-- Includes publisher place except for thesis --> <choose> <if type="thesis"> <text variable="publisher"/> </if> <else> <group delimiter=", "> <text variable="publisher"/> <text variable="publisher-place"/> </group> </else> </choose> </macro> <macro name="access-start"> <!-- starting anchor for the link --> <choose> <if variable="DOI URL" match="any"> <text value="["/> </if> </choose> </macro> <macro name="access-end"> <!-- ending anchors and the link itself (DOI link or URL) --> <choose> <if variable="DOI"> <text variable="DOI" prefix="](http://doi.org/" suffix=")"/> </if> <else> <text variable="URL" prefix="](" suffix=")"/> </else> </choose> </macro> <macro name="issued"> <!-- full date --> <date variable="issued"> <date-part name="day" suffix=" "/> <date-part name="month" form="long" suffix=" "/> <date-part name="year"/> </date> </macro> <macro name="issued-year"> <!-- year in brackets --> <date variable="issued" prefix=" (" suffix=")"> <date-part name="year"/> </date> </macro> <macro name="page-link"> <!-- not used for journal articles --> <choose> <if variable="page"> <text macro="access-start"/> <group delimiter=" "> <label variable="page" form="short"/> <text variable="page"/> </group> <text macro="access-end"/> </if> </choose> </macro> <macro name="locators"> <!-- issue is not used, volume is always added (including book chapters) --> <text variable="volume" prefix=" **" suffix="**"/> </macro> <macro name="container"> <!-- Includes volume and edition (if container-title exist); also adds link for some types --> <choose> <if variable="container-title"> <text variable="container-title" prefix="_" suffix="_"/> <text macro="locators"/> <text macro="edition"/> </if> </choose> </macro> <!-- Citation --> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout prefix="[" suffix="]" delimiter=","> <text variable="citation-number"/> </layout> </citation> <!-- Bibliography --> <bibliography entry-spacing="0"> <sort> <key macro="author"/> <key variable="issued" sort="descending"/> </sort> <layout suffix="."> <text macro="author" prefix="1. " suffix=". "/> <choose> <if type="paper-conference"> <group delimiter=", "> <text macro="title-link"/> <text variable="event" prefix="_" suffix="_"/> <text macro="issued"/> <!-- Currently Zotero/CSL do not support date ranges, which are common for conferences --> <text variable="event-place"/> <text macro="container"/> <!-- may require manual editing (in some cases is redundant) --> <text macro="page-link"/> </group> </if> <else-if type="article-journal"> <!-- uses a lot of raw variables, so that macros are specialized for other types --> <text variable="title" suffix=", "/> <text macro="access-start"/> <text variable="container-title" form="short" prefix="_" suffix="_"/> <text macro="locators"/> <text variable="page" prefix=", "/> <text macro="access-end"/> <text macro="issued-year"/> </else-if> <else> <!--- general sequence, supposed to work for everything that is not considered above --> <group delimiter=", "> <text macro="title-link"/> <text macro="type-number"/> <text macro="container"/> <text macro="editor"/> <text macro="publisher"/> <text macro="page-link"/> </group> <text macro="issued-year"/> </else> </choose> </layout> </bibliography> </style>