User:Conor Kenny/Scratchpad

From SourceWatch
Jump to navigation Jump to search

Notes

The following are notes for my own use. If you'd like to leave me a message, you can email me at Conor AT sourcewatch.org or leave a message on my talk page.

RSS feeds

User:Conor Kenny/RSS test

Templates

Category:Congresspedia templates
Template:SourceWatch policy
Template:SourceWatch guideline
Template:Congresspedia guideline
Template:Infobox Senator

User:Conor Kenny/Infobox test

Other

Sourcewatch:Contributing/Splitting Articles

Oil policy: Citizens' Alliance for Responsible Energy

How to setup the interwiki module on any DRUPAL site: Interwiki module for DRUPAL

Ethics in Congress

To incorporate

Harris

Mine the following for Katherine Harris info: http://www.salon.com/politics/war_room/2006/07/19/harris/index.html

Iraq

Iraq and Gutknecht: http://www.salon.com/politics/war_room/2006/07/19/iraq2/index.html

Local blogs project

General hello to new users

Hello XXX,

Welcome to Congresspedia and SourceWatch. As the Congresspedia editor I try to greet new users and offer any guidance I can help them get acquainted with the site. Your best reference is going to be the Congresspedia help page, which links to just about every other help or guideline page you’ll need. As a wiki, we depend on our citizen researchers/journalists, so please continue editing! Feel free to use my talk page or email me at Conor AT sourcewatch.org if I can be of any assistance.

See also:

Best,

New money in politics section

User:Conor Kenny/New money in politics section

User:Conor Kenny/Headlines box

OpenCongress infoboxes

User:Conor Kenny/OpenCongress infoboxes

numbers
123,456,789
2,500,000,000
300,000,000
3,000,000 abc
5,000,000
2,000 def
-4,000
ghi
-9,999
4,000
9,999
800,000
900,000
numbers
123 564,589.7e12
9
-80
80 abc 5
abc 80
70
600
first alphabetic, later also numeric mode
123.4 ghi
2,500,000,000
300,000,000
3,000,000 abc
5,000,000
2,000 def
4,000
9,999
800,000
900,000
currencies
$ 9
$ 80
$ 70
$ 600
currencies
€ 9
€ 80
€ 70
€ 600
currencies
£ 9
£ 80
£ 70
£ 600
currencies
¥ 9
¥ 80
¥ 70
¥ 600
comparison
a 9
a 80
a 70
a 600
comparison
e 9
e 80
e 70
e 600
"currency" mode
9Template:Smc
circa 80Template:Smc
7089Template:Smc
70 90Template:Smc
70 91Template:Smc
70 89Template:Smc
70 to 90Template:Smc
7091Template:Smc
600Template:Smc
"currency" mode ("ca. 80" sorts at 0 due to dot)
9Template:Smc
ca. 80Template:Smc
7089Template:Smc
70 to 90Template:Smc
7091Template:Smc
600Template:Smc

The example with "a" gives alphabetic sorting; that with "e" ditto, the data are not mistaken for numbers in scientific format.

mixed notations
12 or 13 sm=n
-12 (retrograde)
12 (?)
ca. 12
?
1.4285714285714E+17
1000000000000000000
-1000000000000000000
.0000000000000000001
-.0000000000000000001
-1.4285714285714E+17
1.4285714285714E-13
-1.4285714285714E-13
89 123 456 788
89,123,456,789
333
1e10
e 9
e 80
e 70
e 600
999e9
88e80
7e270
999e-9
88e-80
7e-270
4Template:E
-999e9
?999e9
-88e80
-7e270
-999e-9
-88e-80
-7e-270
e3
-e3
1e3
e9
e80
e270
2Template:E
7Template:E
6e11
8e11
7Template:E
-7Template:E
-7Template:E
3Template:E
4Template:E
first number in each element counts
7-4
2
4
22/7
111
percentage
7%
2
4
22
111
mixed notations
14
-14
11
-12 (retrograde)
12 or 13
12 (?)
ca. 12
12 (approx.)
?

The first example demonstrates that text is positioned at zero, and that e.g. e3 for 1000 is not allowed; use 1e3 instead. Using Template:Tim, a number in scientific notation can be displayed with a superscript, while still allowing numeric sorting (compare the method described in the next section). It also shows that "-" should be used, not "?". The first element "12 or 13 sm=n" has a visible "sm=n", although it is normally made invisible; when this element is at the top, numeric sorting mode applies.

The second example shows that expressions are not sorted according to their evaluated value, but according to the first number.

The third example shows that a percentage is accepted for numeric sorting mode, but ignored in the actual sorting, so if a column contains percentages, all numbers have to be written as a percentage.

The fourth example shows again that "ca. 12" sorts at 0, as opposed to 12 with some text after it, which sorts at 12. In the latter case an invisible "sm=n" needs to be put at the end, in case such an element arrives at the top of a column, which would otherwise cause alphabetic sorting mode.

Sortable version of Template:Mlw, using smn to specify numeric sort mode:

City January
(Low)
January
(High)
July
(Low)
July
(High)
Amman 4°CTemplate:Smn 12°CTemplate:Smn 18°CTemplate:Smn 32°CTemplate:Smn
Baghdad 0°CTemplate:Smn 16°CTemplate:Smn 24°CTemplate:Smn 43°CTemplate:Smn
Cairo 8°CTemplate:Smn 18°CTemplate:Smn 21°CTemplate:Smn 36°CTemplate:Smn
Damascus 0°CTemplate:Smn 12°CTemplate:Smn 16°CTemplate:Smn 36°CTemplate:Smn
Dubai 15°CTemplate:Smn 23°CTemplate:Smn 30°CTemplate:Smn 39°CTemplate:Smn
Jerusalem 5°CTemplate:Smn 13°CTemplate:Smn 17°CTemplate:Smn 31°CTemplate:Smn
Riyadh 8°CTemplate:Smn 21°CTemplate:Smn 26°CTemplate:Smn 42°CTemplate:Smn
Tehran -3°CTemplate:Smn 7°CTemplate:Smn 22°CTemplate:Smn 37°CTemplate:Smn

Superdelegates

<categorytree mode=all depth=0>Election Protection Wiki state articles</categorytree> <categorytree mode=all depth=0>Election Protection Wiki issue articles</categorytree> <categorytree mode=all depth=0>Election Protection Wiki templates</categorytree>