Format: Difference between revisions

From Stefan Zweig Bibliography
Jump to navigation Jump to search
No edit summary
Line 76: Line 76:




====Parameters for the <nowiki><lst></nowiki> command====
====Parameters for the <nowiki><lst></nowiki> tag====


:<nowiki><lst start=7></nowiki> - specify numbering to begin at 7
:<nowiki><lst start=7></nowiki> - specify numbering to begin at 7
Line 84: Line 84:
::*ul (unordered [bullet])
::*ul (unordered [bullet])
::*bracket (special or Zweig Wiki, e.g.:  '''[1].''')
::*bracket (special or Zweig Wiki, e.g.:  '''[1].''')


====SubList within the <nowiki><lst></nowiki> code block====
====SubList within the <nowiki><lst></nowiki> code block====

Revision as of 17:45, 18 January 2014

See also: Mediwiki Formatting


Indenting

Indenting blocks of text

A block of text can be indented to line up with key positions of the Zweig Wiki text. The text needs to be enclosed in <div> tags as follows:

<div class="indent1">
This is a block of text that will be indented 3.4em from the left margin. It will line up with the text of an entry in a ordered list.
In the Sample below the CONTENTS section is indented using this code.
</div>

Sample

[5].
First line of ordered list
[6].
Second line of ordered list

Contents

1.
First line of sub-list
2.
Second line of sub-list
3.
Third line of sub-list
[7].
Third line of ordered list
[8].
Fourth line of ordered list


Pre-defined indents are:

  • indent1 - 3.4em
  • indent2 - 6.4em
  • indent3 - 9.4em
  • indent4 - 12.4em
  • indent5 - 15.4em


Lists

Creating ordered or unordered lists

Each new line is given the next sequential number (or letter), or in the case of an unordered list, a new bullet. All lines that are enclosed by the opening and closing tags ( <lst> and </lst> ) will be members of the list.

'''Contents''' <lst> First line of ordered list Second line of ordered list Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line. Fourth line of ordered list #first line of embedded numbered list #second line of embedded numbered list Fifth line of ordered list </lst>

The above code produces the following results:

Contents

1.
First line of ordered list
2.
Second line of ordered list
3.
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
4.
Fourth line of ordered list
4.1.
first line of embedded numbered list
4.2.
second line of embedded numbered list
5.
Fifth line of ordered list


Parameters for the <lst> tag

<lst start=7> - specify numbering to begin at 7
<lst type= > - specify the type of list to create
  • numeric (ordered [decimal roman]) - default
  • ol (ordered [roman / alpha])
  • ul (unordered [bullet])
  • bracket (special or Zweig Wiki, e.g.: [1].)

SubList within the <lst> code block

A second style of numbering withn the <lst> code block is achieved using the <sublist> code. Note the difference in numbering style compared to the embedded list in the sample above.

'''Contents'''
<lst>
First line of ordered list
Second line of ordered list
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
Fourth line of ordered list
<sublist>
first line of the numbered sublist
second line of numbered sublist
</sublist>
Fifth line of ordered list
</lst>

The above code produces the following results:

Contents

1.
First line of ordered list
2.
Second line of ordered list
3.
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
4.
Fourth line of ordered list
  1. first line of the numbered sublist
  2. second line of numbered sublist
5.
Fifth line of ordered list