Template talk:LexInfo

From NovaRoma
Revision as of 06:02, 2 September 2007 by M. Lucretius Agricola (Talk | contribs)
Jump to: navigation, search

What this does and how to use it

1. It puts the languagebar on the top of the page. But I am not sure we really want to do this. Discussion?

2. It adds the article to Category:Leges (Nova Roma).

3. It blocks the TOC, but then the TOC shouldn't appear until the fourth heading is included. This can be overridden in the article, but it seems best to suppress them by default as in most cases the articles are short.

4. Creates a "Background" section.

The variable "status" can take these values:

C, c, current, F, f, 1 all result in "IN FORCE"

R, r, repealed, 2 all result in "REPEALED" and place the item in Category:Repealed leges (Nova Roma)

L, l, lapsed, 3 all result in "LAPSED" and place the article in Category:Lapsed leges (Nova Roma)

No value or anything else result in "Uncertain" and place the article in Category:Leges needing attention (Nova Roma)}}


The variable "result" can take these values:


A, a, P, p, approved, 1 all result in an "Approved by" message.

R, r, rejected, 2 all result in a "Rejected by" message.

"Approved by" and "Rejected by" also get a comitia from the "com" variable and a voting record from "yes" "no" and "abs" variables.

V, v, vetoed, 3 all result in a "Vetoed before voting in" message plus the comitia name.

W, w, withdrawn, 4 all result in a "Withdrawn before voting in" message plus the comitia name.

Nothing or anything else result in "Uncertain" and placement in [[:Category:Leges needing attention

6. The date is added from the "when" variable. Note that this variable may contain other templates, specifically date templates. For date templates see the help files.

7. Inserts the message "Commentary is not part of the lex and should be placed on the discussion page. It automatically creates a link to each article's talk page.

8. Creates a level 2 heading with "Text of" plus the name of the article.

9. Sets a sort key through the "sortkey" variable, which is forced into first letter uppercase, just to be safe.

Discussion

This one template does the work of seven or so old templates. It simplifies the work of changing status and it handles category membership automatically. This will prevent a law from stating one status but appearing in the category proper to a different status.

This template makes it a preference to display information in normal article format, not in the idiosyncratic box format. The box format used a table layout device, which is a deprecated mechanism and not reliable across browsers. This is especially true for persons with impaired vision and most particularly true for persons using screen readers. Agricola 11:58, 29 August 2007 (CEST)

Personal tools