Skip to content

Commit

Permalink
Add encyclopedia type to wikipedia-templates.csl (#5778)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallybaker authored Dec 14, 2021
1 parent 031afe1 commit 60bf7d5
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions wikipedia-templates.csl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<else-if type="article-journal">
<text macro="journal-citation"/>
</else-if>
<else-if type="entry-encyclopedia">
<text macro="encyclopedia"/>
</else-if>
<else>
<text macro="generic-citation"/>
</else>
Expand Down Expand Up @@ -68,6 +71,24 @@
<text macro="access-date"/>
</group>
</macro>
<macro name="encyclopedia">
<group prefix="{{cite encyclopedia" suffix="}}">
<text macro="contributor-statements"/>
<text macro="title-statements"/>
<text macro="date"/>
<text macro="publisher"/>
<text macro="place"/>
<text macro="url"/>
<text macro="access-date"/>
<text macro="edition"/>
<text macro="series"/>
<text macro="volume"/>
<text macro="isbn"/>
<text macro="issn"/>
<text macro="doi"/>
<text macro="pagination"/>
</group>
</macro>
<macro name="generic-citation">
<group prefix="{{Citation" suffix="}}">
<text macro="contributor-statements"/>
Expand Down Expand Up @@ -112,7 +133,11 @@
<text variable="title" prefix=" | title="/>
</if>
<else-if type="article-journal">
<text variable="container-title" prefix=" | journal ="/>
<text variable="container-title" prefix=" | journal="/>
<text variable="title" prefix=" | title="/>
</else-if>
<else-if type="entry-encyclopedia">
<text variable="container-title" prefix=" | encyclopedia="/>
<text variable="title" prefix=" | title="/>
</else-if>
<else>
Expand Down Expand Up @@ -146,7 +171,7 @@
</macro>
<macro name="pagination">
<choose>
<if type="article-journal chapter">
<if type="article-journal chapter entry-encyclopedia" match="any">
<text variable="page" prefix=" | pages="/>
</if>
</choose>
Expand Down

0 comments on commit 60bf7d5

Please sign in to comment.