Caves of Qud Wiki:Style Guide: Difference between revisions

→‎Formatting: add code section
(→‎Article Layout: add headings heading)
(→‎Formatting: add code section)
Line 108: Line 108:
===Dice===
===Dice===
Format any string representing a dice roll with [[Template:Dice tooltip]].
Format any string representing a dice roll with [[Template:Dice tooltip]].
=== C# Code ===
C# code (which will generally only be found in the <code>Modding</code> namespace) should ideally be formatted the same way that [https://code.visualstudio.com/ Visual Studio Code] with Microsoft's C# extension would format it when using the Format command from the command palette. If you need to add code to the wiki but don't have access to VS Code, do your best to follow the style of existing code on the wiki and another editor can put it into the correct format.


==References==
==References==