プロジェクト

全般

プロフィール

Wiki Extensions en » 履歴 » バージョン 38

Haru Iida, 2010/10/06 00:37

1 1 Haru Iida
h1. Redmine Wiki Extensions Plugin
2
3
{{>toc}}
4
5 27 Haru Iida
日本語は [[Wiki Extensions|こちら]].
6
7 4 Haru Iida
This plugin adds usefull wiki macros into your Redmine.
8 1 Haru Iida
9
h2. Downloads
10
11
h3. Releases
12
13 19 Haru Iida
http://code.google.com/p/redminewikiext/downloads/list
14 1 Haru Iida
15
h3. Development version
16
17
http://hudson.r-labs.org/hudson/job/Wiki%20Extensions%20Plugin/
18
19 17 Haru Iida
h3. Installation
20
21
# Copy the plugin into the vendor/plugins directory
22
# Migrate plugin: rake db:migrate_plugins RAILS_ENV=production
23
# Start Redmine
24 18 Haru Iida
# Enable the module on the project setting page.
25 1 Haru Iida
26
h2. Footnote
27
28 11 Haru Iida
This macro creates {{fn(footnotes, Notes of text placed at the bottom of a page.)}} in wiki pages.
29 1 Haru Iida
30 2 Haru Iida
h3. Syntacs
31 1 Haru Iida
32 34 Haru Iida
{{@fn(word, description)@}}: 
33 2 Haru Iida
34
ex.
35 1 Haru Iida
36
37 34 Haru Iida
*This site is {{@fn(Redmine, One of the best project management tool.)@}} site.*
38
39
40 2 Haru Iida
"This site is {{fn(Redmine, One of the best project management tool.)}} site."
41 1 Haru Iida
42 12 Haru Iida
You can see footnotes on the bottom of this page.
43 1 Haru Iida
44 15 Haru Iida
h2. Adding comment form
45 1 Haru Iida
46 4 Haru Iida
You can add a comment form in a page.
47 1 Haru Iida
48 4 Haru Iida
h3. Syntacs
49 1 Haru Iida
50 34 Haru Iida
{{@comment_form@}} displays the comment form in a page. And {{@comments@}} macro displays the list of comment.
51 1 Haru Iida
52
{{comments}}
53
{{comment_form}}
54
55
56 15 Haru Iida
h2. Link to the page of other projects.
57 1 Haru Iida
58 14 Haru Iida
{{new(2009-06-11)}}
59
60 5 Haru Iida
You can create the link to the page of other projects.
61 1 Haru Iida
62 5 Haru Iida
h3. Syntacs
63 1 Haru Iida
64 5 Haru Iida
* @{{wiki(project_name, wiki_page)}}@
65
* @{{wiki(project_name, wiki_page, alias)}}@
66
* @{{wiki(project_identifier, wiki_page)}}@
67
* @{{wiki(project_identifier, wiki_page, alias)}}@
68 1 Haru Iida
69
70 5 Haru Iida
h2. Link to other projects
71 14 Haru Iida
72
73
{{new(2009-06-11)}}
74 1 Haru Iida
75 5 Haru Iida
You can create the link to projects.
76 1 Haru Iida
77 5 Haru Iida
h3. Syntacs
78 1 Haru Iida
79 5 Haru Iida
* @{{project(project_name)}}@
80
* @{{project(project_name, alias)}}@
81 1 Haru Iida
* @{{project(project_identifier)}}@
82 5 Haru Iida
* @{{project(project_identifier, alias)}}@
83 1 Haru Iida
84
85 5 Haru Iida
ex.)
86 1 Haru Iida
87 34 Haru Iida
*The project of Wiki Extensions Plugin is {{@project(Wiki Extensions, here)@}}.*
88
89
90 1 Haru Iida
"The project of Wiki Extensions Plugin is {{project(Wiki Extensions, here)}}."
91 13 Haru Iida
92
h2. New macro
93
94
{{new(2009-06-12)}}
95
96
h3. Syntacs
97
98 32 Haru Iida
* {{@new(yyyy-mm-dd)@}}
99
* {{@new(yyyy-mm-dd, expire)@}}
100 1 Haru Iida
101
102 15 Haru Iida
Displays the string "new" if specific date does not expired. Default of expire is 5 days.
103
104
h2. Tags
105
106 16 Haru Iida
{{new(2009-06-23)}}
107
108 1 Haru Iida
You can see the tag input form at the bottom of the wiki editing page. You can add several tags to each wiki pages. 
109 15 Haru Iida
110
And {{@tagcloud@}} macro displays the tag cloud. so you can write this macro into [[SideBar]] like this site.
111 34 Haru Iida
112 38 Haru Iida
{{@taggedpages(tagname)@}} macro displays the list of pages which have specified tag.{{new(2010-10-05)}}
113 35 Haru Iida
114 20 Haru Iida
h2. Editing Style Sheet
115
116
{{new(2009-07-16)}}
117
118
You can write CSS in the page named [[StyleSheet]]. This CSS is included in a HTML header of each page. Each page means every module of the project. not only wiki.
119
So. you can even create a project-specific theme.
120 1 Haru Iida
121 20 Haru Iida
And if you want to change a style of a part of the page, you can use following macros.
122
123 1 Haru Iida
* {{@div_start_tag(id_name)@}} is changed to、< div id="id_name">.
124 32 Haru Iida
* {{@div_start_tag(id_name, class_name)@}} is changed to< div id="id_name" class="class_name">.
125
* {{@div_end_tag@}} is changed to < /div>.
126 20 Haru Iida
127
ex.
128
129
130 34 Haru Iida
{{@div_start_tag(sample_tag)@}}
131
132 20 Haru Iida
Style of this line was changed.
133
134 34 Haru Iida
{{@div_end_tag@}}
135 20 Haru Iida
136 34 Haru Iida
137 1 Haru Iida
{{div_start_tag(sample_tag)}}
138
139 20 Haru Iida
Style of this line was changed.
140
141
{{div_end_tag}}
142
143 21 Haru Iida
h2. Footer
144
145
{{new(2009-08-04)}}
146
147
If you create the page named "Footer", you can see it at the bottom of the every pages.
148 22 Haru Iida
149 21 Haru Iida
For example. If you want to add the comment form to every pages, you should write like below.
150
151 34 Haru Iida
{{@comments@}}
152
153
{{@comment_form@}}
154
155
156 21 Haru Iida
h2. Recently added pages
157
158
{{new(2009-08-04)}}
159
160 33 Haru Iida
{{@recent@}} macro displays the list of the pages that were changed within last 5 days. If you specify the argument like {{@recent(10)@}}, it displays the pages that were changed within 10 days.
161 23 Haru Iida
162 24 Haru Iida
h2. Displays the person who updated the page. 
163 23 Haru Iida
164
{{new(2009-09-06,14)}}
165
166 33 Haru Iida
{{@lastupdated_by@}} macro displays the name of user who updated the wiki page.
167 23 Haru Iida
168 24 Haru Iida
h2. Displays the time when the page was updated.
169 23 Haru Iida
170
{{new(2009-09-06,14)}}
171
172 33 Haru Iida
{{@lastupdated_at@}} macrodisplays the timestamp when the wiki page was updated.
173 23 Haru Iida
174 25 Haru Iida
h2. Add tabs to project menu.
175 23 Haru Iida
176
{{new(2009-09-06,14)}}
177
178 26 Haru Iida
You can add project menu tabs that links to wiki page.
179 23 Haru Iida
180
!setting.jpg!
181
182
!menu.jpg!
183 28 Haru Iida
184 1 Haru Iida
h2. Displays the page of other site.
185
186 28 Haru Iida
187
{{new(2009-10-08,14)}}
188
189
iframe macro displays the page of other site into the wiki page.
190
191
h3. Syntacs
192 1 Haru Iida
193 35 Haru Iida
{{@iframe(url)@}}
194 32 Haru Iida
{{@iframe(url, width, height)@}} or
195
{{@iframe(url, width, height, scrolling)@}} 
196 28 Haru Iida
197
scrolling is a value of scrolling option of iframe.[yes, no, auto]
198
199
h3. example
200
201
Displaying wikipedia.
202
203
204 34 Haru Iida
{{@iframe(http://en.wikipedia.org/wiki/Redmine, 700, 400)@}}
205
206
207 28 Haru Iida
{{iframe(http://en.wikipedia.org/wiki/Redmine, 700, 400)}}
208 29 Haru Iida
209
h2. Access counter
210
211
{{new(2009-10-31,14)}}
212
213
214 34 Haru Iida
{{@count@}} macro counts acesses to the wiki pages. You can write this macro into the wiki page that you want to count accesses. If you want to count accesses to all of the pages, you can write {{@count@}} to the [[Footer]] page.
215 29 Haru Iida
216 32 Haru Iida
{{@show_count@}} macro displays the count of the page.
217 29 Haru Iida
218 32 Haru Iida
{{@popularity@}} macro displays the list of the access counts. If you specify the number in the argument, ex. {{@popularity(10)@}}, displays the top 10 access list.
219 30 Haru Iida
220
h2. Auto preview
221
222
{{new(2010-02-02,14)}}
223 1 Haru Iida
224 35 Haru Iida
If you enabled this function, preview of wiki, forum and issue is displayed automatically. You can enable it on project setting page.
225 31 Haru Iida
226 1 Haru Iida
!autopreview.png!
227 35 Haru Iida
228
h2. Sortable table
229
230
{{new(2010-10-05)}}
231
232 37 Haru Iida
You can sort table items by clicking header.
233 35 Haru Iida
234 36 Haru Iida
ex)
235
236
<pre>
237
|_.fruits|_.color|
238
|Apple|Red|
239
|Banana|Yellow|
240
|Mellon|Green|
241
</pre>
242
243 35 Haru Iida
|_.fruits|_.color|
244
|Apple|Red|
245
|Banana|Yellow|
246
|Mellon|Green|
247
248
h2. twitter macro
249
250
{{new(2010-10-05)}}
251
252
{{@twitter(username)@}} macro links to tiwtter page.
253
254
ex.) {{@twitter(haru_iida)@}} -> {{twitter(haru_iida)}}