Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php |
— | — | @@ -74,73 +74,61 @@ |
75 | 75 | 'edittoolbar-help-page-file' => 'Files', |
76 | 76 | 'edittoolbar-help-page-reference' => 'References', |
77 | 77 | 'edittoolbar-help-page-discussion' => 'Discussion', |
78 | | - 'edittoolbar-help-content-bold-description' => "Makes text bold", |
| 78 | + 'edittoolbar-help-content-bold-description' => 'Bold', |
79 | 79 | 'edittoolbar-help-content-bold-syntax' => "'''Bold text'''", |
80 | | - 'edittoolbar-help-content-bold-result' => "<strong>Bold text</strong>", |
81 | | - 'edittoolbar-help-content-italic-description' => "Makes text italic", |
| 80 | + 'edittoolbar-help-content-bold-result' => '<strong>Bold text</strong>', |
| 81 | + 'edittoolbar-help-content-italic-description' => 'Italic', |
82 | 82 | 'edittoolbar-help-content-italic-syntax' => "'''Italic text'''", |
83 | | - 'edittoolbar-help-content-italic-result' => "<em>Italic text</em>", |
84 | | - 'edittoolbar-help-content-bolditalic-description' => "Makes text bold & italic", |
| 83 | + 'edittoolbar-help-content-italic-result' => '<em>Italic text</em>', |
| 84 | + 'edittoolbar-help-content-bolditalic-description' => 'Bold & italic', |
85 | 85 | 'edittoolbar-help-content-bolditalic-syntax' => "'''Bold & italic text'''", |
86 | | - 'edittoolbar-help-content-bolditalic-result' => "<strong><em>Bold & italic text</em></strong>", |
87 | | - |
88 | | - 'edittoolbar-help-content-ilink-description' => "Internal link", |
89 | | - 'edittoolbar-help-content-ilink-syntax' => "[[Page title|Link label]]", |
90 | | - 'edittoolbar-help-content-ilink-result' => "", |
91 | | - |
92 | | - 'edittoolbar-help-content-xlink-description' => "External link", |
93 | | - 'edittoolbar-help-content-xlink-syntax' => "[http://www.domain.com Link label]", |
94 | | - 'edittoolbar-help-content-xlink-result' => "", |
95 | | - |
96 | | - 'edittoolbar-help-content-heading1-description' => "1st level heading", |
97 | | - 'edittoolbar-help-content-heading1-syntax' => "= Heading text =", |
98 | | - 'edittoolbar-help-content-heading1-result' => "", |
99 | | - |
100 | | - 'edittoolbar-help-content-heading2-description' => "2nd level heading", |
101 | | - 'edittoolbar-help-content-heading2-syntax' => "== Heading text ==", |
102 | | - 'edittoolbar-help-content-heading2-result' => "", |
103 | | - |
104 | | - 'edittoolbar-help-content-heading3-description' => "3rd level heading", |
105 | | - 'edittoolbar-help-content-heading3-syntax' => "=== Heading text ===", |
106 | | - 'edittoolbar-help-content-heading3-result' => "", |
107 | | - |
108 | | - 'edittoolbar-help-content-heading4-description' => "4th level heading", |
109 | | - 'edittoolbar-help-content-heading4-syntax' => "==== Heading text ====", |
110 | | - 'edittoolbar-help-content-heading4-result' => "", |
111 | | - |
112 | | - 'edittoolbar-help-content-heading5-description' => "5th level heading", |
113 | | - 'edittoolbar-help-content-heading5-syntax' => "===== Heading text =====", |
114 | | - 'edittoolbar-help-content-heading5-result' => "", |
115 | | - |
116 | | - 'edittoolbar-help-content-ulist-description' => "Bulleted list", |
117 | | - 'edittoolbar-help-content-ulist-syntax' => "* List item", |
118 | | - 'edittoolbar-help-content-ulist-result' => "", |
119 | | - |
120 | | - 'edittoolbar-help-content-olist-description' => "Numbered list", |
121 | | - 'edittoolbar-help-content-olist-syntax' => "# List item", |
122 | | - 'edittoolbar-help-content-olist-result' => "", |
123 | | - |
124 | | - 'edittoolbar-help-content-file-description' => "Embedded file", |
125 | | - 'edittoolbar-help-content-file-syntax' => "[[File:File name]]", |
| 86 | + 'edittoolbar-help-content-bolditalic-result' => '<strong><em>Bold & italic text</em></strong>', |
| 87 | + 'edittoolbar-help-content-ilink-description' => 'Internal link', |
| 88 | + 'edittoolbar-help-content-ilink-syntax' => '[[Page title|Internal link label]]', |
| 89 | + 'edittoolbar-help-content-ilink-result' => "<a href='#'>Internal link label</a>", |
| 90 | + 'edittoolbar-help-content-xlink-description' => 'External link', |
| 91 | + 'edittoolbar-help-content-xlink-syntax' => '[http://www.domain.com External link label]', |
| 92 | + 'edittoolbar-help-content-xlink-result' => "<a href='#'>External link label</a>", |
| 93 | + 'edittoolbar-help-content-heading1-description' => '1st level heading', |
| 94 | + 'edittoolbar-help-content-heading1-syntax' => '= Heading text =', |
| 95 | + 'edittoolbar-help-content-heading1-result' => '<h1>Heading text</h1>', |
| 96 | + 'edittoolbar-help-content-heading2-description' => '2nd level heading', |
| 97 | + 'edittoolbar-help-content-heading2-syntax' => '== Heading text ==', |
| 98 | + 'edittoolbar-help-content-heading2-result' => '<h2>Heading text</h2>', |
| 99 | + 'edittoolbar-help-content-heading3-description' => '3rd level heading', |
| 100 | + 'edittoolbar-help-content-heading3-syntax' => '=== Heading text ===', |
| 101 | + 'edittoolbar-help-content-heading3-result' => '<h3>Heading text</h3>', |
| 102 | + 'edittoolbar-help-content-heading4-description' => '4th level heading', |
| 103 | + 'edittoolbar-help-content-heading4-syntax' => '==== Heading text ====', |
| 104 | + 'edittoolbar-help-content-heading4-result' => '<h4>Heading text</h4>', |
| 105 | + 'edittoolbar-help-content-heading5-description' => '5th level heading', |
| 106 | + 'edittoolbar-help-content-heading5-syntax' => '===== Heading text =====', |
| 107 | + 'edittoolbar-help-content-heading5-result' => '<h5>Heading text</h5>', |
| 108 | + 'edittoolbar-help-content-ulist-description' => 'Bulleted list', |
| 109 | + 'edittoolbar-help-content-ulist-syntax' => '* List item<br />* List item', |
| 110 | + 'edittoolbar-help-content-ulist-result' => '<ul><li>List item</li><li>List item</li></ul>', |
| 111 | + 'edittoolbar-help-content-olist-description' => 'Numbered list', |
| 112 | + 'edittoolbar-help-content-olist-syntax' => '# List item', |
| 113 | + 'edittoolbar-help-content-olist-result' => '<ol><li>List item</li><li>List item</li></ol>', |
| 114 | + 'edittoolbar-help-content-file-description' => 'Embedded file', |
| 115 | + 'edittoolbar-help-content-file-syntax' => '[[File:Wiki.png|thumb|Caption text]]', |
126 | 116 | 'edittoolbar-help-content-file-result' => "", |
127 | | - |
128 | | - 'edittoolbar-help-content-reference-description' => "Reference", |
129 | | - 'edittoolbar-help-content-reference-syntax' => "<ref name=\"test\">Reference content</ref>", |
130 | | - 'edittoolbar-help-content-reference-result' => "", |
131 | | - |
132 | | - 'edittoolbar-help-content-rereference-description' => "Additional use of reference", |
133 | | - 'edittoolbar-help-content-rereference-syntax' => "<ref name=\"test\" />", |
134 | | - 'edittoolbar-help-content-rereference-result' => "", |
135 | | - |
136 | | - 'edittoolbar-help-content-signaturetimestamp-description' => "Signature with timestamp", |
137 | | - 'edittoolbar-help-content-signaturetimestamp-syntax' => "~~~~", |
138 | | - 'edittoolbar-help-content-signaturetimestamp-result' => "", |
139 | | - |
140 | | - 'edittoolbar-help-content-signature-description' => "Signature", |
141 | | - 'edittoolbar-help-content-signature-syntax' => "~~~", |
142 | | - 'edittoolbar-help-content-signature-result' => "", |
143 | | - |
144 | | - 'edittoolbar-help-content-indent-description' => "Indent", |
145 | | - 'edittoolbar-help-content-indent-syntax' => ":Indented text", |
146 | | - 'edittoolbar-help-content-indent-result' => "" |
| 117 | + 'edittoolbar-help-content-reference-description' => 'Reference', |
| 118 | + 'edittoolbar-help-content-reference-syntax' => 'Article text.<ref name="test">[http://www.example.org Link text], additional text.</ref>', |
| 119 | + 'edittoolbar-help-content-reference-result' => "Aticle text <sup><a href='#'>[1]</a></sup>", |
| 120 | + 'edittoolbar-help-content-rereference-description' => 'Additional use of same reference', |
| 121 | + 'edittoolbar-help-content-rereference-syntax' => '<ref name=\"test\" />', |
| 122 | + 'edittoolbar-help-content-rereference-result' => "Aticle text <sup><a href='#'>[1]</a></sup>", |
| 123 | + 'edittoolbar-help-content-showreferences-description' => 'Display references', |
| 124 | + 'edittoolbar-help-content-showreferences-syntax' => '<references /> or {{Reflist}}', |
| 125 | + 'edittoolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.example.org' class='external text' href='#'>Link text</a>, additional text.</li></ol>", |
| 126 | + 'edittoolbar-help-content-signaturetimestamp-description' => 'Signature with timestamp', |
| 127 | + 'edittoolbar-help-content-signaturetimestamp-syntax' => '~~~~', |
| 128 | + 'edittoolbar-help-content-signaturetimestamp-result' => "<a href='#' title='Special:MyPage'>Username</a> (<a href='#' title='Special:MyTalk'>talk</a>) 15:54, 10 June 2009 (UTC)", |
| 129 | + 'edittoolbar-help-content-signature-description' => 'Signature', |
| 130 | + 'edittoolbar-help-content-signature-syntax' => '~~~', |
| 131 | + 'edittoolbar-help-content-signature-result' => "<a href='#' title='Special:MyPage'>Username</a> (<a href='#' title='Special:MyTalk'>talk</a>)</p>", |
| 132 | + 'edittoolbar-help-content-indent-description' => 'Indent', |
| 133 | + 'edittoolbar-help-content-indent-syntax' => 'Normal text<br />:Indented text<br />::Indented text', |
| 134 | + 'edittoolbar-help-content-indent-result' => 'Normal text<dl><dd>Indented text<dl><dd>Indented text</dd></dl></dd></dl>' |
147 | 135 | ); |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.css |
— | — | @@ -95,11 +95,12 @@ |
96 | 96 | div#edittoolbar div.index { |
97 | 97 | float: left; |
98 | 98 | width: 20%; |
99 | | - height: 150px; |
| 99 | + height: 175px; |
100 | 100 | overflow: auto; |
101 | 101 | } |
102 | 102 | div#edittoolbar div.index > div { |
103 | | - padding: 9px; |
| 103 | + padding: 4px; |
| 104 | + padding-left: 18px; |
104 | 105 | cursor: pointer; |
105 | 106 | color: #00528C; |
106 | 107 | } |
— | — | @@ -107,11 +108,17 @@ |
108 | 109 | background-color: white; |
109 | 110 | color: #333333; |
110 | 111 | cursor: default; |
| 112 | + background-image: url(images/arrow-right.png); |
| 113 | + background-position: left center; |
| 114 | + background-repeat: no-repeat; |
111 | 115 | } |
| 116 | +div#edittoolbar div.index > div:first-child { |
| 117 | + border-top: none; |
| 118 | +} |
112 | 119 | div#edittoolbar div.pages { |
113 | 120 | float: right; |
114 | 121 | width: 80%; |
115 | | - height: 150px; |
| 122 | + height: 175px; |
116 | 123 | overflow: auto; |
117 | 124 | background-color: white; |
118 | 125 | } |
— | — | @@ -122,12 +129,20 @@ |
123 | 130 | display: block; |
124 | 131 | } |
125 | 132 | div#edittoolbar div.pages > div.page > table { |
126 | | - padding: 4px; |
| 133 | + padding-left: 5px; |
| 134 | + padding-right: 5px; |
| 135 | + background: none; |
127 | 136 | } |
128 | 137 | div#edittoolbar div.pages > div.page > table th { |
129 | 138 | color: #999999; |
130 | | - border-bottom: solid 1px #DDDDDD; |
131 | 139 | } |
| 140 | +div#edittoolbar div.pages > div.page > table td { |
| 141 | + color: black; |
| 142 | + border-top: solid 1px #EEEEEE; |
| 143 | +} |
| 144 | +div#edittoolbar div.pages > div.page > table tr:first-child > td { |
| 145 | + border-top: solid 1px #DDDDDD; |
| 146 | +} |
132 | 147 | div#edittoolbar div.pages > div.page > table th, |
133 | 148 | div#edittoolbar div.pages > div.page > table td { |
134 | 149 | text-align: left; |
— | — | @@ -137,6 +152,9 @@ |
138 | 153 | div#edittoolbar div.pages > div.page > table td.syntax { |
139 | 154 | font-family: monospace; |
140 | 155 | } |
| 156 | +div#edittoolbar-section-help div.page > table td { |
| 157 | + width: 33%; |
| 158 | +} |
141 | 159 | div#edittoolbar div.tabs > div.tab { |
142 | 160 | float: left; |
143 | 161 | line-height: 26px; |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.hooks.php |
— | — | @@ -146,6 +146,9 @@ |
147 | 147 | 'edittoolbar-help-content-rereference-description', |
148 | 148 | 'edittoolbar-help-content-rereference-syntax', |
149 | 149 | 'edittoolbar-help-content-rereference-result', |
| 150 | + 'edittoolbar-help-content-showreferences-description', |
| 151 | + 'edittoolbar-help-content-showreferences-syntax', |
| 152 | + 'edittoolbar-help-content-showreferences-result', |
150 | 153 | 'edittoolbar-help-content-signaturetimestamp-description', |
151 | 154 | 'edittoolbar-help-content-signaturetimestamp-syntax', |
152 | 155 | 'edittoolbar-help-content-signaturetimestamp-result', |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -225,7 +225,7 @@ |
226 | 226 | // Appends table to page |
227 | 227 | var contentTable = $( '<table />' ) |
228 | 228 | .attr( { |
229 | | - 'cellpadding': '5', |
| 229 | + 'cellpadding': '0', |
230 | 230 | 'cellspacing': '0', |
231 | 231 | 'border': '0', |
232 | 232 | 'width': '100%' |
— | — | @@ -245,7 +245,10 @@ |
246 | 246 | for ( cell in section.pages[page].rows[row] ) { |
247 | 247 | contentRow.append( |
248 | 248 | $( '<td />' ) |
249 | | - .attr( 'class', cell ) |
| 249 | + .attr( { |
| 250 | + 'class': cell, |
| 251 | + 'valign': 'top' |
| 252 | + } ) |
250 | 253 | .append( |
251 | 254 | $( '<span>' + msg( section.pages[page].rows[row][cell], 'content' ) + '</span>' ) |
252 | 255 | ) |
— | — | @@ -696,17 +699,17 @@ |
697 | 700 | 'result': { contentMsg: 'edittoolbar-help-content-heading2-result' } |
698 | 701 | }, |
699 | 702 | { |
700 | | - 'description': { contentMsg: 'edittoolbar-help-content-heading2-description' }, |
| 703 | + 'description': { contentMsg: 'edittoolbar-help-content-heading3-description' }, |
701 | 704 | 'syntax': { contentMsg: 'edittoolbar-help-content-heading3-syntax' }, |
702 | 705 | 'result': { contentMsg: 'edittoolbar-help-content-heading3-result' } |
703 | 706 | }, |
704 | 707 | { |
705 | | - 'description': { contentMsg: 'edittoolbar-help-content-heading2-description' }, |
| 708 | + 'description': { contentMsg: 'edittoolbar-help-content-heading4-description' }, |
706 | 709 | 'syntax': { contentMsg: 'edittoolbar-help-content-heading4-syntax' }, |
707 | 710 | 'result': { contentMsg: 'edittoolbar-help-content-heading4-result' } |
708 | 711 | }, |
709 | 712 | { |
710 | | - 'description': { contentMsg: 'edittoolbar-help-content-heading2-description' }, |
| 713 | + 'description': { contentMsg: 'edittoolbar-help-content-heading5-description' }, |
711 | 714 | 'syntax': { contentMsg: 'edittoolbar-help-content-heading5-syntax' }, |
712 | 715 | 'result': { contentMsg: 'edittoolbar-help-content-heading5-result' } |
713 | 716 | } |
— | — | @@ -767,6 +770,11 @@ |
768 | 771 | 'description': { contentMsg: 'edittoolbar-help-content-rereference-description' }, |
769 | 772 | 'syntax': { contentMsg: 'edittoolbar-help-content-rereference-syntax' }, |
770 | 773 | 'result': { contentMsg: 'edittoolbar-help-content-rereference-result' } |
| 774 | + }, |
| 775 | + { |
| 776 | + 'description': { contentMsg: 'edittoolbar-help-content-showreferences-description' }, |
| 777 | + 'syntax': { contentMsg: 'edittoolbar-help-content-showreferences-syntax' }, |
| 778 | + 'result': { contentMsg: 'edittoolbar-help-content-showreferences-result' } |
771 | 779 | } |
772 | 780 | ] |
773 | 781 | }, |