Testing: Difference between revisions
No edit summary |
|||
Line 27: | Line 27: | ||
== List Test == | == List Test == | ||
# Item | |||
# Item | |||
## Sub-item | |||
### Sub-sub-item | |||
### Sub-sub-item | |||
### Sub-sub-item | |||
## Sub-item | |||
## Sub-item | |||
# Item | |||
{{ordered list|type=lower-roman | |||
| About the author | |||
| Foreword to the first edition | |||
| Foreword to the second edition | |||
}} | |||
{{Ordered list |entry1 |entry2| ... }} | |||
== [[Sample Top Content Stuff]] == | == [[Sample Top Content Stuff]] == |
Revision as of 09:38, 28 October 2020
This sample acts like a tutorial. It guides you through the creation of a set of hierarchical pages to try out the Hierarchy Extension.
Instructions:
- Create a page for each title below. Fill the page with the text that appears after the title.
- The first page to be created will be the index page. It can be used as a shortcut to create the other pages, because it will link to them.
- In the end, it will be necessary to edit the index page and save it again, so it can process all pages after they are created.
Sample index
This is a sample index of a page hierarchy. <index> [[Sample Top page]] = Sample Chapter one = == Sample Topic one == == Sample Topic two == = Sample Chapter two = == Sample Topic three == === Sample Subtopic A === === Sample Subtopic B === == Sample Topic four == == What the Hell == </index>
List Test
- Item
- Item
- Sub-item
- Sub-sub-item
- Sub-sub-item
- Sub-sub-item
- Sub-item
- Sub-item
- Sub-item
- Item
Usage
This template creates an ordered list, which is similar to a numbered list but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.
Syntax
- Simple
{{Ordered list |entry1 |entry2| ... }}
- Offset starting value
{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
- Changing the symbol style
{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
- With CSS style
{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
- With separate CSS styles for each item
{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
- With custom values for each item
{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
Parameter | Description |
---|---|
list_style_type orlist-style-type
type |
This parameter indicates the list style type. Popular acceptable parameters include:
For a full list, see the following section. |
Positional parameters | The contents of each list item, as unnamed or positional parameters. There is no restriction on content, except equal signs (=) must be escaped or replaced with {{=}} , lest it will be interpreted a named parameter.
|
itemn_value
|
Ordinal or label for a specific list item; a positive integer. |
start
|
Ordinal or label for the first item in the list; a positive integer (default is 1). |
itemn_style
|
Cascading Style Sheet (CSS) styles that are set on a specific list item. (User must know CSS syntax.) |
item_style
CSS-all |
CSS styles that are set on each list item. (User must know CSS syntax.) When present, any itemn_style are disregarded.
|
Acceptable list style type values and supported web browsers
Template:CSS list-style-type values
See also
References
Usage
This template creates an ordered list, which is similar to a numbered list but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.
Syntax
- Simple
{{Ordered list |entry1 |entry2| ... }}
- Offset starting value
{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
- Changing the symbol style
{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
- With CSS style
{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
- With separate CSS styles for each item
{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
- With custom values for each item
{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
Parameter | Description |
---|---|
list_style_type orlist-style-type
type |
This parameter indicates the list style type. Popular acceptable parameters include:
For a full list, see the following section. |
Positional parameters | The contents of each list item, as unnamed or positional parameters. There is no restriction on content, except equal signs (=) must be escaped or replaced with {{=}} , lest it will be interpreted a named parameter.
|
itemn_value
|
Ordinal or label for a specific list item; a positive integer. |
start
|
Ordinal or label for the first item in the list; a positive integer (default is 1). |
itemn_style
|
Cascading Style Sheet (CSS) styles that are set on a specific list item. (User must know CSS syntax.) |
item_style
CSS-all |
CSS styles that are set on each list item. (User must know CSS syntax.) When present, any itemn_style are disregarded.
|
Acceptable list style type values and supported web browsers
Template:CSS list-style-type values
See also
References
Sample Top Content Stuff
{{Hierarchy header}} This is the topmost page of this hierarchy. {{Hierarchy footer}}
Sample Chapter one
{{Hierarchy header}} First chapter of the sample hierarchy. {{Hierarchy footer}}
/Sample
this is a test.
Sample Topic one
{{Hierarchy header}} First topic of the sample hierarchy, within chapter one. {{Hierarchy footer}}
Sample Topic two
{{Hierarchy header}} Second topic of the sample hierarchy, within chapter one. {{Hierarchy footer}}
Sample Chapter two
{{Hierarchy header}} Second chapter of the sample hierarchy. {{Hierarchy footer}}
Sample Topic three
{{Hierarchy header}} Third topic of the sample hierarchy, within chapter two. {{Hierarchy footer}}
Sample Subtopic A
{{Hierarchy header}} First subtopic of the sample hierarchy, within topic three. {{Hierarchy footer}}
Sample Subtopic B
{{Hierarchy header}} Second subtopic of the sample hierarchy, within topic three. {{Hierarchy footer}}
Sample Topic four
{{Hierarchy header}} Fourth topic of the sample hierarchy, within chapter two. {{Hierarchy footer}}
Template:Hierarchy header
<includeonly>{{#hierarchy-top:}}</includeonly><noinclude> This is the header of a page that belongs to a hierarchy. </noinclude>
<includeonly>{{#hierarchy-bottom:}}</includeonly><noinclude> This is the footer of a page that belongs to a hierarchy. </noinclude>
Sample index
Edit and save the sample index so it will process the newly created pages.
Now follow its links to test it.