Difference between revisions of "User talk:Joda"

From Armagetron
(more accurate reply)
 
Line 2: Line 2:
 
[[User:P4|P4:]]: do you know how can i add some [code] formatting to pages and why when i press just single [ENTER] it doesn't work? ;)
 
[[User:P4|P4:]]: do you know how can i add some [code] formatting to pages and why when i press just single [ENTER] it doesn't work? ;)
 
: The simplest way to learn how to format pages is to look at existing ones ;). &lt;code&gt;&lt;pre&gt;CODE&lt;/pre&gt;&lt;/code&gt; should work - according to [[http://wiki.armagetronad.net/index.php?title=Code_hacks&action=edit&section=4]] Simple Returns are ignored you might use <br> oder a double return (new paragraph?). See [[http://meta.wikimedia.org/wiki/Help:Editing_tips_and_tricks#Basic_text_formatting]]  --[[User:Joda|Joda]] 09:39, 19 March 2007 (CDT)
 
: The simplest way to learn how to format pages is to look at existing ones ;). &lt;code&gt;&lt;pre&gt;CODE&lt;/pre&gt;&lt;/code&gt; should work - according to [[http://wiki.armagetronad.net/index.php?title=Code_hacks&action=edit&section=4]] Simple Returns are ignored you might use <br> oder a double return (new paragraph?). See [[http://meta.wikimedia.org/wiki/Help:Editing_tips_and_tricks#Basic_text_formatting]]  --[[User:Joda|Joda]] 09:39, 19 March 2007 (CDT)
**There are different ways. <code>Just code ''looks '''like''''' '''this'''.</code> <pre>pre puts things in a box and prevents wiki markup from having '''too ''much''''' ''effect''.</pre> I used pre in addition to code in the example Joda mentioned because the indentation was interpreted as wiki markup, but just pre alone tends to give the same rendering. Adding a space in front of each line should have worked as well. <code>&lt;br&gt;</code> should be avoided. If it's absolutely necessary (do you really need arbitrary line breaks when you have paragraphs?), use <code>&lt;br /&gt;</code>. Or, if appropriate, <code>&lt;pre&gt;&lt;/pre&gt;</code> or a space in front of each line. —[[User:Jonathan|Jonathan]] 10:57, 19 March 2007 (CDT)
+
::Generally you use <code><nowiki><code><insert code here</code></nowiki></code> for “inline” codes, such as console commands, variable names and such (less than one line in general). If you need multiple lines of code simply put a space in front of each line (this is probably taken from common practice in e-mails and such).—[[User:Wrtlprnft|Wrtlprnft]] 15:33, 19 March 2007 (CDT)

Latest revision as of 16:33, 19 March 2007

Helping out

P4:: do you know how can i add some [code] formatting to pages and why when i press just single [ENTER] it doesn't work? ;)

The simplest way to learn how to format pages is to look at existing ones ;). <code><pre>CODE</pre></code> should work - according to [[1]] Simple Returns are ignored you might use
oder a double return (new paragraph?). See [[2]] --Joda 09:39, 19 March 2007 (CDT)
Generally you use <code><insert code here</code> for “inline” codes, such as console commands, variable names and such (less than one line in general). If you need multiple lines of code simply put a space in front of each line (this is probably taken from common practice in e-mails and such).—Wrtlprnft 15:33, 19 March 2007 (CDT)