1 |
#?SuikaWikiConfig/2.0 |
2 |
|
3 |
Plugin: |
4 |
@Name: config |
5 |
@Description: |
6 |
@@@: Per-Wiki Configuration Pseudo-Plugin |
7 |
@@lang:en |
8 |
@License: %%Perl%% |
9 |
@Date.RCS: |
10 |
$Date: 2005/01/21 14:38:15 $ |
11 |
|
12 |
ViewFragment: |
13 |
@Name: navbar |
14 |
@Order: 20 |
15 |
@Formatting: |
16 |
%link-to-wikipage ( |
17 |
page => {Wiki//Page//Create}, |
18 |
label => {%link-to-it ( |
19 |
label => "%res(name=>GoToCreatePage);"p, |
20 |
description => "%res(name=>GoToCreatePageLong);"p, |
21 |
);}, |
22 |
); |
23 |
%link-to-wikipage ( |
24 |
page => {Wiki//Page//Search}, |
25 |
label => {%link-to-it ( |
26 |
label=>"%res(name=>GoToSearchPage);"p, |
27 |
description=>"%res(name=>GoToSearchPageLong);"p, |
28 |
);}, |
29 |
rel => search, |
30 |
); |
31 |
|
32 |
ViewFragment: |
33 |
@Name: links |
34 |
@Formatting: |
35 |
%link-wiki(page=>"Wiki//News",rel=>news, |
36 |
description=>"%res(name=>GoToWikiNewsLink);"p); |
37 |
%link-wiki(page=>"Wiki//Help",rel=>help, |
38 |
description=>"%res(name=>GoToWikiHelpLink);"p); |
39 |
%link-wiki(page=>"Wiki//Page//License",rel=>copyright, |
40 |
description=>"%res(name=>GoToWikiPageLicenseLink);"p); |
41 |
|
42 |
%link-wiki(page=>"Wiki//Page//Search",rel=>search, |
43 |
description=>"%res(name=>GoToSearchPageLink);"p); |
44 |
|
45 |
## TODO: Resource, URI |
46 |
%link-to-resource ( |
47 |
uri => {javascript:var%20WikiName=prompt('Please%20input%20the%20WikiName:','','Jump%20to%20SuikaWiki');if(WikiName)%7B_content.location.href='wiki%3F'+encodeURIComponent(WikiName)%7D}, |
48 |
rel => jump, |
49 |
class => wiki-cmd, |
50 |
label => {%html-link ( |
51 |
description => {%res(name=>JumpToLink);}p, |
52 |
);}, |
53 |
); |
54 |
%link-to-resource ( |
55 |
uri => {javascript:var%20WikiName=prompt('Please%20input%20the%20WikiName:','','Jump%20to%20SuikaWiki');if(WikiName)%7B_content.location.href='wiki%3Fmycmd=edit;mypage='+encodeURIComponent(WikiName)%7D}, |
56 |
rel => jump, |
57 |
class => wiki-cmd, |
58 |
label => {%html-link ( |
59 |
description => {%res(name=>JumpToEditLink);}p, |
60 |
);}, |
61 |
); |
62 |
|
63 |
ViewFragment: |
64 |
@Name: ws--footer |
65 |
@Formatting: |
66 |
%link-to-wikipage ( |
67 |
page => {Wiki//Page//License}, |
68 |
label => {%link-to-it ( |
69 |
label => {%res (name => {Footer:License:SeeLicensePage});}p, |
70 |
description => {%res (name => {Footer:License:SeeLicensePageLong});}p, |
71 |
);}, |
72 |
); |
73 |
|
74 |
ViewFragment: |
75 |
@Template[list]: |
76 |
we--edit-body |
77 |
we--conflict-body |
78 |
@Order: 1000 |
79 |
@Description: |
80 |
@@@: WikiPage editing guide |
81 |
@@lang:en |
82 |
@Formatting: |
83 |
%block ( |
84 |
id => edit-help, |
85 |
content => {%read(page=>{Wiki//Edit//Help});}p, |
86 |
); |
87 |
|
88 |
ViewFragment: |
89 |
@Name: we--edit |
90 |
@Order: -100 |
91 |
@Formatting: |
92 |
%line(content=>{ |
93 |
%submit(accesskey=>S,label=>{%res(name=>{Edit:Save});}p); |
94 |
[%wpp--next-anchor-index;] |
95 |
}p); |
96 |
|
97 |
ViewFragment: |
98 |
@Name: we--edit |
99 |
@Order: -10 |
100 |
@Formatting: %line(content=>{ |
101 |
ViewFragment: |
102 |
@Name: we--edit |
103 |
@Order: 10 |
104 |
@Formatting: }p); |
105 |
|
106 |
ViewFragment: |
107 |
@Name: we--edit |
108 |
@Order: 150 |
109 |
@Formatting: |
110 |
%line(content=>{ |
111 |
|
112 |
ViewFragment: |
113 |
@Name: we--edit |
114 |
@Order: 250 |
115 |
@Formatting: |
116 |
%mode-after-edit-selection ( |
117 |
description => {%res (name => {Edit:SaveAnd:Description});}p, |
118 |
); |
119 |
|
120 |
%we--update-lastmodified-datetime; |
121 |
}p); |
122 |
|
123 |
ViewFragment: |
124 |
@Name: ws--post-content |
125 |
@Description: |
126 |
@@@: After content body -- URI |
127 |
@@lang:en |
128 |
@Order: 700 |
129 |
@Formatting: |
130 |
%block ( |
131 |
class => myuri, |
132 |
content => { |
133 |
%res (name => {WikiPage:ThisURI=}); |
134 |
%link-to-wikipage ( |
135 |
label => {<%link-to-it (label => {%uri-reference;}p);>}, |
136 |
); |
137 |
}p, |
138 |
); |
139 |
|
140 |
## If you use Namazu plugin, use this configuration. |
141 |
# |
142 |
#FormattingRuleAlias: |
143 |
# @Category[list]: |
144 |
# view |
145 |
# view-resource |
146 |
# form-input |
147 |
# @Name: search-result |
148 |
# @Reference: |
149 |
# @@Category: view |
150 |
# @@Name: namazu-search |
151 |
|
152 |
Resource: |
153 |
@Footer:License:SeeLicensePage: |
154 |
@@@: %char (ucs => {U+00A9}); |
155 |
@Footer:License:SeeLicensePageLong: |
156 |
@@@: See license document |
157 |
@@lang:en |
158 |
@GoToCreatePage: |
159 |
@@@: Create |
160 |
@@lang: en |
161 |
@GoToCreatePageLong: |
162 |
@@@: Create a new WikiPage |
163 |
@@lang: en |
164 |
@GoToSearchPage: |
165 |
@@@: Search |
166 |
@@lang: en |
167 |
@GoToSearchPageLink: |
168 |
@@@: Search in this wiki |
169 |
@@lang: en |
170 |
@GoToSearchPageLong: |
171 |
@@@: Search word in this wiki |
172 |
@@lang: en |
173 |
@GoToWikiHelpLink: |
174 |
@@@: Help page |
175 |
@@lang: en |
176 |
@GoToWikiPageLicenseLink: |
177 |
@@@: License for contents of this wiki |
178 |
@@lang: en |
179 |
@GoToWikiNewsLink: |
180 |
@@@: News on this wiki |
181 |
@@lang: en |
182 |
@JumpToLink: |
183 |
@@@: Open a WikiPage... |
184 |
@@lang: en |
185 |
@JumpToEditLink: |
186 |
@@@: Open a WikiPage in editing mode... |
187 |
@@lang: en |
188 |
@StyleSet:Name:SuikaWiki: |
189 |
@@@: SuikaWiki |
190 |
@@lang: ja |
191 |
@WikiForm:Create:Name: |
192 |
@@@: WikiName |
193 |
@@lang: en |
194 |
@WikiForm:Search:Name: |
195 |
@@@: Keyword |
196 |
@@lang: en |
197 |
@WikiPage:ThisURI=: |
198 |
@@lang:en |
199 |
@@@: |
200 |
This WikiPage: |
201 |
|
202 |
|
203 |
|
204 |
|
205 |
|
206 |
|