[Wikia-l] Indented, multi-line pre box

Daniel Friesen dan_the_man at telus.net
Tue Oct 14 16:31:37 UTC 2008


Block level elements are known to break out of the list syntax. If 
you're nesting that kind of stuff it might be best to use the html list 
format.

~Daniel Friesen (Dantman, Nadir-Seen-Fire)
~Profile/Portfolio: http://nadir-seen-fire.com
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)

John Beckett wrote:
> Our wiki has examples of computer commands, so we use <pre>...</pre> boxes.
>
> Can reasonably simple wikitext generate something like the following list?
>
> Example list
> * First bullet point is just normal text.
> * Second point is followed by example keyboard input.
>    First line in an indented "pre" box.
>    Second line in same indented "pre" box.
>   Some more normal text is sometimes wanted.
> * Third point like second.
>    First "pre" line.
>    Second "pre" line.
>
> Here is an experiment:
>
> ==Example list==
> *First bullet point.
> *N1 Example<pre>N1 first</pre><pre>N1 second</pre>N1 More text.
> *N2 Example<pre>N2 first
> N2 second</pre>N2 More text.
> *N3 Example<pre>N3 first<br />N3 second</pre>N3 More text.
>
> Each of the N1, N2 and N3 lines makes an indented pre box, but each has a problem:
> - N1 gives two boxes.
> - N2 has only a single line in the box.
> - N3 shows "<br />" (< > are replaced by &lt; &gt; and using <nowiki> didn't help).
>
> Here is an example where I would like to use this:
> http://vim.wikia.com/wiki/Working_with_CSV_files#Features
>
> BTW Is this a suitable question for this list?
>
> John
>
>   




More information about the Wikia-l mailing list