[Wikia-l] Indented, multi-line pre box
Catherine Munro
catherine at wikia.com
Tue Oct 14 17:41:30 UTC 2008
As Daniel said, you can use HTML elements such as <ol> or <ul>. Note that
you can also use the start attribute, such as <ol start=5>, to continue an
ordered list after a break. See
http://www.w3.org/TR/html401/struct/lists.html for more details.
You can also use <code> or <tt> to format small snippets of text into a
monospace font, without putting it into a block-level <pre> element.
Another option for preserving spacing is the <poem> extension -- used raw it
provides normally formatted text but preserves newlines, multiple spaces,
and other white space. You can use CSS to make it look more like a <pre>
box (or any other distinctive formatting) if desired. See
http://help.wikia.com/wiki/Help:Poem for examples.
Good luck!
Catherine
Wikia Community Team
On Tue, Oct 14, 2008 at 9:30 AM, Daniel Friesen <dan_the_man at telus.net>wrote:
> 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 < > 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
> >
> >
>
> _______________________________________________
> Wikia-l mailing list
> Wikia-l at wikia.com
> http://lists.wikia.com/mailman/listinfo/wikia-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikia.com/pipermail/wikia-l/attachments/20081014/d227e38d/attachment-0002.html
More information about the Wikia-l
mailing list