Hi all,
I'm still new to MediaWiki and the wiki language in general. I've been trying to add preambles into numbered lists (for, say, source code), but the lists gets renumbered. So, for example:
# Item A <pre> Some stuff </pre> # Item B
In this case, Item B gets the number 1, instead of 2 (which is what I want). I know whitespace is suppose to start a new list...so, I thought that meant this would make Item B #1:
# Item A <pre> Some stuff </pre>
# Item B
Perhaps I don't quite understand what is meant by whitespace? Is there some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
Hi Ray, Use following wiki text to get sequence number.
# Item A<pre>Some stuff</pre> # Item B
Best Regards! KIRTI M PATEL
Hi all,
I'm still new to MediaWiki and the wiki language in general. I've been trying to add preambles into numbered lists (for, say, source code), but the lists gets renumbered. So, for example:
# Item A
<pre> Some stuff </pre>
# Item B
In this case, Item B gets the number 1, instead of 2 (which is what I want). I know whitespace is suppose to start a new list...so, I thought that meant this would make Item B #1:
# Item A
<pre> Some stuff </pre>
# Item B
Perhaps I don't quite understand what is meant by whitespace? Is there some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Kirti,
Thanks for your reply! I see what you mean...so the only way it works is if "Some stuff" is a single line? And then, I place the <pre> right after the item. It doesn't work if it is several lines long?
Ray
kirti.patel@dolcera.com wrote:
Hi Ray, Use following wiki text to get sequence number.
# Item A<pre>Some stuff</pre> # Item B
Best Regards! KIRTI M PATEL
Hi all,
I'm still new to MediaWiki and the wiki language in general. I've been trying to add preambles into numbered lists (for, say, source code), but the lists gets renumbered. So, for example:
# Item A
<pre> Some stuff </pre>
# Item B
In this case, Item B gets the number 1, instead of 2 (which is what I want). I know whitespace is suppose to start a new list...so, I thought that meant this would make Item B #1:
# Item A
<pre> Some stuff </pre>
# Item B
Perhaps I don't quite understand what is meant by whitespace? Is there some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Ray, If sentance is several lines long just write it in the wiki editor as a single sentance (don't use "ENTER" key in between the sentance to move to next line. Editor will go to new line automatically when one line is completed). Hope you get what I am trying to say.
Regards! Kirti
Hi Kirti,
Thanks for your reply! I see what you mean...so the only way it works is if "Some stuff" is a single line? And then, I place the <pre> right after the item. It doesn't work if it is several lines long?
Ray
kirti.patel@dolcera.com wrote:
Hi Ray, Use following wiki text to get sequence number.
# Item A<pre>Some stuff</pre> # Item B
Best Regards! KIRTI M PATEL
Hi all,
I'm still new to MediaWiki and the wiki language in general. I've been trying to add preambles into numbered lists (for, say, source code), but the lists gets renumbered. So, for example:
# Item A
<pre> Some stuff </pre>
# Item B
In this case, Item B gets the number 1, instead of 2 (which is what I want). I know whitespace is suppose to start a new list...so, I thought that meant this would make Item B #1:
# Item A
<pre> Some stuff </pre>
# Item B
Perhaps I don't quite understand what is meant by whitespace? Is there some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Kirti,
Ah, yes, I know what you mean and sorry that I wasn't more clear. But the "stuff" that I hope to put in the <pre> tags is [programming] source code. And source code generally doesn't look very nice when it's all in one line.
Is there a way to add newlines inside <pre> blocks without the numbered list knowing? (I'm making this term up, but say, a "soft newline"? :-) ) Or, is there a better way to include source code in a wiki?
Thanks!
Ray
kirti.patel@dolcera.com wrote:
Hi Ray, If sentance is several lines long just write it in the wiki editor as a single sentance (don't use "ENTER" key in between the sentance to move to next line. Editor will go to new line automatically when one line is completed). Hope you get what I am trying to say.
Regards! Kirti
Hi Kirti,
Thanks for your reply! I see what you mean...so the only way it works is if "Some stuff" is a single line? And then, I place the <pre> right after the item. It doesn't work if it is several lines long?
Ray
kirti.patel@dolcera.com wrote:
Hi Ray, Use following wiki text to get sequence number.
# Item A<pre>Some stuff</pre> # Item B
Best Regards! KIRTI M PATEL
Hi all,
I'm still new to MediaWiki and the wiki language in general. I've been trying to add preambles into numbered lists (for, say, source code), but the lists gets renumbered. So, for example:
# Item A
<pre> Some stuff </pre>
# Item B
In this case, Item B gets the number 1, instead of 2 (which is what I want). I know whitespace is suppose to start a new list...so, I thought that meant this would make Item B #1:
# Item A
<pre> Some stuff </pre>
# Item B
Perhaps I don't quite understand what is meant by whitespace? Is there some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Perhaps I don't quite understand what is meant by whitespace? Is
there
some way I can do <pre> while having the numbering continue? Am I doing something else wrong?
Thank you!
Ray
Hi Ray,
You can find more than you ever wanted to know about mediawiki list syntax at: http://en.wikipedia.org/wiki/Help:List I think the best thing for you to use might be the "continuing" syntax. Or maybe a definition list?
Good luck! -Courtney
Numbered list syntax is one of the biggest weak points in this otherwise fantastic piece of software (Mediawiki). Any reasonably interesting or realistic list will break the numbering scheme. Don't spend time wrestling with it: just use HTML for numbered lists.
<ol> <li>...</li> </ol>
For source code listings, use the GeSHi extension which is FANTASTIC.
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
DanB
-----Original Message----- Is there a way to add newlines inside <pre> blocks without the numbered list knowing? (I'm making this term up, but say, a "soft newline"? :-)
) Or, is there a better way to include source code in a wiki?
Hi Daniel,
Daniel Barrett wrote:
Numbered list syntax is one of the biggest weak points in this otherwise fantastic piece of software (Mediawiki). Any reasonably interesting or realistic list will break the numbering scheme. Don't spend time wrestling with it: just use HTML for numbered lists.
<ol> <li>...</li> </ol>
Thanks for that! I'm new to Mediawiki and thought it was "bad practice" to use HTML syntax, so other than <pre>, I've been staying away from it and using Mediawiki syntax. But you're right...a simple <ol start="3"> solves my problem... Thanks!
For source code listings, use the GeSHi extension which is FANTASTIC.
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Oh, cool! Thanks for that! I am so new, I actually don't know what an extension is...but reading that page is simple enough; thank you!
Ray
mediawiki-l@lists.wikimedia.org