1 |
wakaba |
1.1 |
#?SuikaWikiConfig/2.0 |
2 |
|
|
|
3 |
|
|
Plugin: |
4 |
|
|
@Name: config |
5 |
|
|
@Description: |
6 |
|
|
@@@: Per-Wiki Configuration Pseudo-Plugin |
7 |
|
|
@@lang:en |
8 |
|
|
@License: %%GPL%% |
9 |
wakaba |
1.2 |
@Date.RCS: $Date: 2003/10/25 06:40:08 $ |
10 |
wakaba |
1.1 |
|
11 |
|
|
ViewFragment: |
12 |
|
|
@Name: navbar |
13 |
|
|
@Order: 20 |
14 |
|
|
@Formatting: |
15 |
|
|
%anchor-wiki(page=>{Wiki//Page//Create},class=>wiki, |
16 |
|
|
label=>"%res(name=>GoToCreatePage);"p, |
17 |
|
|
title=>"%res(name=>GoToCreatePageLong);"p); |
18 |
|
|
%anchor-wiki(page=>{IndexPage},class=>wiki, |
19 |
|
|
label=>"%res(name=>GoToIndexPage);"p, |
20 |
|
|
title=>"%res(name=>GoToIndexPageLong);"p); |
21 |
|
|
%anchor-wiki(page=>{Wiki//Page//Search},class=>wiki, |
22 |
|
|
label=>"%res(name=>GoToSearchPage);"p, |
23 |
|
|
title=>"%res(name=>GoToSearchPageLong);"p); |
24 |
|
|
%anchor-wiki(page=>{RecentChanges},class=>wiki, |
25 |
|
|
label=>"%res(name=>GoToRecentChanges);"p, |
26 |
|
|
title=>"%res(name=>GoToRecentChangesLong,safe);"p); |
27 |
|
|
|
28 |
|
|
ViewFragment: |
29 |
|
|
@Name: links |
30 |
|
|
@Formatting: |
31 |
|
|
%link-wiki(page=>"Wiki//News",rel=>news,class=>wiki, |
32 |
|
|
title=>"%res(name=>GoToWikiNewsLink);"p); |
33 |
|
|
%link-wiki(page=>"Wiki//Help",rel=>help,class=>wiki, |
34 |
|
|
title=>"%res(name=>GoToWikiHelpLink);"p); |
35 |
|
|
%link-wiki(page=>"Wiki//Page//License",rel=>copyright,class=>wiki, |
36 |
|
|
title=>"%res(name=>GoToWikiPageLicenseLink);"p); |
37 |
|
|
|
38 |
wakaba |
1.2 |
%link-wiki(page=>"Wiki//Page//Search",rel=>search,class=>wiki, |
39 |
|
|
title=>"%res(name=>GoToSearchPageLink);"p); |
40 |
|
|
|
41 |
|
|
ViewFragment: |
42 |
|
|
@Name: ws--post-content |
43 |
|
|
@Description: |
44 |
|
|
@@@: After content body -- navigation bar |
45 |
|
|
@@lang:en |
46 |
|
|
@Order: 100 |
47 |
|
|
@Formatting: |
48 |
|
|
%section (level=>2, |
49 |
|
|
id => children, |
50 |
|
|
title => {%res(name=>{Children:Title});}p, heading, |
51 |
|
|
content => {%page-list ( |
52 |
|
|
ns => {%page-name;}p, recursive => 0, |
53 |
|
|
type => both, |
54 |
|
|
template => {%res(name=>{Children:Item});}p, |
55 |
|
|
);}p, |
56 |
|
|
); |
57 |
|
|
%section (level=>2, |
58 |
|
|
id => see-also, |
59 |
|
|
title => {%res(name=>SeeAlso);}p, heading, |
60 |
|
|
content => {%search-result;}p, |
61 |
|
|
); |
62 |
|
|
%section (level=>2, |
63 |
|
|
id => referer, |
64 |
|
|
title => {%res(name=>Referer);}p, heading, |
65 |
|
|
content => {%referer-list;}p, |
66 |
|
|
); |
67 |
|
|
%section (level=>2, |
68 |
|
|
id => toc, |
69 |
|
|
title => {%res(name=>{TOC:Title});}p, heading, add-to-toc => 0, |
70 |
|
|
content => {%toc(drag);}p, |
71 |
|
|
); |
72 |
|
|
|
73 |
wakaba |
1.1 |
ViewFragment: |
74 |
|
|
@Name: ws--footer |
75 |
|
|
@Formatting: |
76 |
|
|
%link-to-wikipage ( |
77 |
|
|
page => {Wiki//Page//License}, |
78 |
|
|
label => {%link-to-it (label => {%char (ucs => {U+00A9});}p);}, |
79 |
|
|
); |
80 |
|
|
|
81 |
wakaba |
1.2 |
ViewFragment: |
82 |
|
|
@Template[list]:wr--read-body |
83 |
|
|
@Order: -10 |
84 |
|
|
@Description: |
85 |
|
|
@@@: "Read" mode body -- Calender |
86 |
|
|
@@lang:en |
87 |
|
|
@Formatting: |
88 |
|
|
%if-calender(month,true=>{ |
89 |
|
|
%format(context=>form_input,template=>{%calender;}); |
90 |
|
|
},false=>{ |
91 |
|
|
%if-calender(true=>{ |
92 |
|
|
%format(context=>form_input,template=>{%calender-months;}); |
93 |
|
|
}); |
94 |
|
|
}); |
95 |
|
|
|
96 |
|
|
|
97 |
|
|
ViewFragment: |
98 |
|
|
@Template[list]: |
99 |
|
|
we--edit-body |
100 |
|
|
we--conflict-body |
101 |
|
|
@Order: 1000 |
102 |
|
|
@Description: |
103 |
|
|
@@@: WikiPage editing guide |
104 |
|
|
@@lang:en |
105 |
|
|
@Formatting: |
106 |
|
|
%block ( |
107 |
|
|
id => edit-help, |
108 |
|
|
content => {%read(page=>{Wiki//EditHelp});}p, |
109 |
|
|
); |
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
wakaba |
1.1 |
Resource: |
115 |
|
|
@GoToWikiNewsLink: |
116 |
|
|
@@@: News |
117 |
|
|
@@lang:en |
118 |
|
|
@GoToWikiHelpLink: |
119 |
|
|
@@@: Help |
120 |
|
|
@@lang:en |
121 |
|
|
@GoToWikiPageLicenseLink: |
122 |
|
|
@@@: License |
123 |
|
|
@@lang:en |
124 |
|
|
|
125 |
|
|
ViewFragment: |
126 |
|
|
@Name: we--edit |
127 |
|
|
@Order: -100 |
128 |
|
|
@Formatting: |
129 |
|
|
%form-line(content=>{ |
130 |
|
|
%submit(accesskey=>S,label=>{%res(name=>{Edit:Save});}p); |
131 |
|
|
}p); |
132 |
|
|
|
133 |
|
|
ViewFragment: |
134 |
|
|
@Name: we--edit |
135 |
|
|
@Order: -10 |
136 |
|
|
@Formatting: %form-line(content=>{ |
137 |
|
|
ViewFragment: |
138 |
|
|
@Name: we--edit |
139 |
|
|
@Order: 10 |
140 |
|
|
@Formatting: }p); |
141 |
|
|
|
142 |
|
|
ViewFragment: |
143 |
|
|
@Name: we--edit |
144 |
|
|
@Order: 150 |
145 |
|
|
@Formatting: |
146 |
|
|
%form-line(content=>{ |
147 |
|
|
|
148 |
|
|
ViewFragment: |
149 |
|
|
@Name: we--edit |
150 |
|
|
@Order: 250 |
151 |
|
|
@Formatting: |
152 |
|
|
%mode-after-edit-selection; |
153 |
|
|
|
154 |
|
|
}p); |
155 |
|
|
|
156 |
wakaba |
1.2 |
|
157 |
|
|
## --- Should be moved to proper plugin module --- |
158 |
|
|
|
159 |
|
|
## WikiPageRename |
160 |
|
|
ViewFragment: |
161 |
|
|
@Template[list]: we--adminedit-body |
162 |
|
|
@Order:10 |
163 |
|
|
@Description: |
164 |
|
|
@@@: Renaming WikiName section |
165 |
|
|
@@lang:en |
166 |
|
|
@Formatting: |
167 |
|
|
%section(level=>2, |
168 |
|
|
title => {%res(name=>{Edit:Rename:Title});}p, heading, |
169 |
|
|
content => { |
170 |
|
|
%wp-rename-form ( |
171 |
|
|
content => { |
172 |
|
|
%text ( |
173 |
|
|
id => to, |
174 |
|
|
label => {%res(name=>{Edit:Rename:To=});}p, |
175 |
|
|
size => 10, |
176 |
|
|
default => {%page-name;}p, |
177 |
|
|
); |
178 |
|
|
%submit; |
179 |
|
|
}p, |
180 |
|
|
); |
181 |
|
|
}p, |
182 |
|
|
); |
183 |
wakaba |
1.1 |
|