partially implement webpage

This commit is contained in:
2025-11-04 22:14:24 +01:00
parent 34ac2e0b7d
commit b7062eabd7
2 changed files with 23 additions and 41 deletions

View File

@@ -54,18 +54,8 @@
</choose> </choose>
</macro> </macro>
<macro name="published-in"> <macro name="published-in">
<choose> <!-- TODO: FIX: Doesn't work for webpage -->
<if type="article-journal article-magazine" match="any"> <text variable="container-title"/>
<choose>
<if variable="container-title">
<text variable="container-title"/>
</if>
<else-if variable="container-title-short">
<text variable="container-title-short"/>
</else-if>
</choose>
</if>
</choose>
</macro> </macro>
<macro name="publisher"> <macro name="publisher">
<choose> <choose>
@@ -164,23 +154,11 @@
<bibliography> <bibliography>
<layout> <layout>
<text variable="citation-number" display="left-margin" prefix="[" suffix="]"/> <text variable="citation-number" display="left-margin" prefix="[" suffix="]"/>
<choose> <group>
<if type="article-journal article-magazine" match="any"> <text macro="author" suffix=". "/>
<group> <text macro="title" suffix=". " font-style="italic"/>
<text macro="author" suffix=". "/> <choose>
<text macro="title" suffix=". " font-style="italic"/> <if type="book">
<text macro="format" suffix=". "/>
<text macro="published-in" suffix=". "/>
<text macro="published" suffix=". "/>
<text macro="id" suffix=". "/>
<text macro="url" suffix=". "/>
<text macro="accessed"/>
</group>
</if>
<else-if type="book">
<group>
<text macro="author" suffix=". "/>
<text macro="title" suffix=". " font-style="italic"/>
<text macro="numbering-paging" suffix=". "/> <text macro="numbering-paging" suffix=". "/>
<text macro="publisher"/> <text macro="publisher"/>
<choose> <choose>
@@ -191,16 +169,20 @@
<text value=". "/> <text value=". "/>
</else> </else>
</choose> </choose>
<text macro="published" suffix=". "/> </if>
<text macro="id" suffix=". "/> <else-if type="article-journal article-magazine article-newspaper post-weblog webpage" match="any">
<text macro="url" suffix=". "/> <text macro="format" suffix=". "/>
<text macro="accessed"/> <text macro="published-in" suffix=". "/>
</group> <text macro="publisher" suffix=". "/>
</else-if> </else-if>
<else> <else>
<text value="TODO"/> <text value=" TODO "/>
</else> </else>
</choose> </choose>
<text macro="published" suffix=". "/>
<text macro="id" suffix=". "/>
<text macro="accessed"/>
</group>
</layout> </layout>
</bibliography> </bibliography>
</style> </style>

View File

@@ -9,14 +9,14 @@
issn = {0092-8674} issn = {0092-8674}
} }
@misc{csl, @online{csl,
title = {Citation Style Language}, title = {Citation Style Language},
year = {2025}, year = {2025},
urldate = {2025-06-10}, urldate = {2025-06-10},
URL = {https://citationstyles.org/}, URL = {https://citationstyles.org/},
} }
@misc{linux, @online{linux,
journal = {Blog | Linux Foundation}, journal = {Blog | Linux Foundation},
title = {Classic SysAdmin: Vim 101: A Beginners Guide to Vim}, title = {Classic SysAdmin: Vim 101: A Beginners Guide to Vim},
year = {2025}, year = {2025},