Help:Archive Tables
From RHJunior Comics Wiki
The Tales_of_the_Questor_Archive makes extensive use of templates in order to give a consistent look and feel. Furthermore it makes use of automatic creation of a table of contents and allows the page to be edited in sections
Contents |
General Setup of an Archive Table
The archive consists of a number of individual tables, whose syntax is encapsulated in templates. Each table needs to start with a header, which can be either
- ArcTblHead, or
- ArcTblHeadSubchapter
ArcTblHead will insert column headers ("First Published | Page | Title/Chapter"), whereas ArcTblHeadSubchapter takes the same parameters as ArcTblRow and displays them the same way as ArcTblRow does. Both headings contain identical information defining the width of the table columns.
The header is followed by an arbitrary number of instances of ArcTblRow.
Every table needs to be closed using ArcTblFoot.
The individual tables are separated by headings for books (level 3), chapters (level 4) and sub-chapters (level 5, see below)
Syntax and Usage
ArcTblHead
Starts a new table with column headers.
- Takes no parameters.
{{ArcTblHead}}
ArcTblHeadSubchapter
Starts a new table w/o column headers, instead it starts with the info of the first comic.
- Takes the same parameters as ArcTblRow.
ArcTblFoot
Closes a table.
- Takes no parameters.
ArcTblRow
{{ArcTblRow|Feb. 13, 2007|totq|00435|439|The key to knowledge is clear communication.}}
| | | | ^--- caption
| | | +--------------- image number
| | +-------------------- page number
| +------------------------- comic-id
+------------------------------------- date
Parameters:
- date
- the publishing date of the strip (Format: Nov. 16, 2006), may be omitted
- comic-id
- Identifier of the strip (totq, NT, ...)
- page number
- 0-padded, five-digit number identifying the comic page number
- image number
- Descriptive number of the image that will be displayed. It should be the number of the image.
- caption
- A commenting or descriptive caption for the strip.
CAVEAT
- The parameters comic-id and pagenumber are treated as strings and will become part of the URL pointing to the comic page. The parameters need to be entered without blanks
ArcTblStyleH5
See "Sub-Chapter Headings"
ArchiveTableStyle
Used internally inside ArcTblHead and ArcTblHeadSubchapter.
Sub-Chapter Headings
A sub-chapter heading is put between two tables, i.e. if you want to insert a sub-chapter heading you need to first close the preceding table, include the heading, then open another table. The heading cannot be included inside the table, as the automatic creation of the table of content as well as the edit tags created by the wiki get scrambled. The heading must be inserted using HTML code and include the ArcTblStyleH5 template for style information. This style information defines the width of the gray background bar and the position of the heading. Here is an example for usage:
{{ArcTblRow| .... }}
{{ArcTblRow| .... }}
{{ArcTblRow| .... }}
{{ArcTblFoot}}
<h5 {{ArcTblStyleH5}}>This is the sub-chapter title</h5>
{{ArcTblHeadSubchapter| .... }}
{{ArcTblRow| .... }}
{{ArcTblRow| .... }}
Example
===Book 3 (to be published)===
====Outside the Mistwall====
{{ArcTblHead}}
{{ArcTblRow|July 26, 2006 |totq|00395|398| Setting up camp}}
{{ArcTblRow| |totq|00396|397| First steps into town}}
{{ArcTblFoot}}
<h5 {{ArcTblStyleH5}}>Sam</h5>
{{ArcTblHeadSubchapter| |totq|00397|400| Hey! Hey you--! }}
{{ArcTblRow| |totq|00398|401| I'll help you escape }}
{{ArcTblRow| |totq|00399|402| A little crash }}
{{ArcTblRow| |totq|00400|403| I've been robbed! Again! }}
{{ArcTblFoot}}
List of Templates
The following templates are used for this purpose:
- Template:ArcTblHead
- Template:ArcTblHeadSubchapter
- Template:ArcTblFoot
- Template:ArcTblRow
- Template:ArcTblStyleH5
- Template:ArchiveTableStyle
The following template(s) are deprecated and should not be used

