User talk:Djonni
Use of code tags
Hi!
Sorry, I've been busy.
Yes as far as I'm concerned and others seem to agree we're migrating towards the use of <code> tags for commands, but for logs on multiple lines <pre> tags or {{prebox}} (the latter to add other tags like colours) are preferred.
- For a complicated example of colours and background colors in {{prebox}} see https://dwwiki.mooo.com/w/index.php?title=SS_Unsinkable&action=edit§ion=4
The quotation marks should be old edits or stuff I didn't notice when checking changes, changing those to use <code> tags is encouraged and preferred.
--Frazyl (talk) 19:28, 2 May 2022 (EDT)
- Okay great, that's good! Thanks for taking the time to reply!
- Do you have any objection to me creating a convenience template to make it easier for folks to use <code> as required? Perhaps something like
Template:c
orTemplate:co
, such that writing<code>Type this</code>
becomesTemplate:C
.
- Cheers --Djonni (talk) 01:20, 3 May 2022 (EDT)
Using templates has issues that can be hard to find and fix. For example you can't include some characters like | =
and possibly others that will mess the output.
Fail:
{{{1}}}
alias .reference Sailing bonuses: sailing 332
Using {{Escape template list}} templates:
options cols = 1000 ; {alias .reference Sailing bonuses: sailing 332 | perception 411 | direction 402
It's more robust and simple to use <code></code> tags and more readable as well.
--Frazyl (talk) 15:15, 3 May 2022 (EDT)
- Ah I gotcha, yeah, I see how that's different for this wiki than others I've contributed to. 👍
- Thanks for your time and advice! --Djonni (talk) 00:54, 4 May 2022 (EDT)