1 | <div style="text-align:left;"> |
---|
2 | <h2>扩展描述</h2> |
---|
3 | |
---|
4 | <h3>多语言描述</h3> |
---|
5 | |
---|
6 | <p>多语言描述可放在[lang=xx] 和 [/lang] 标签之间, 其中 xx 是语言代码(如 en,es,cn,fr)。另外还有2个特别的语言: [lang=default] 和 [lang=all]</p> |
---|
7 | |
---|
8 | <ul> |
---|
9 | <li><b>例如</b>:<br> |
---|
10 | <br> |
---|
11 | <code>[lang=default] 默认描述 [/lang]<br> |
---|
12 | [lang=en] description in english [/lang]<br> |
---|
13 | [lang=de] deutsche Beschreibung [/lang]</code> |
---|
14 | </li> |
---|
15 | </ul> |
---|
16 | |
---|
17 | <p> |
---|
18 | 如果用户选择的语言不能使用,将显示默认描述。如果没有 [lang=default] 标签,所有在 [lang] 外的将会以默认描述显示。 |
---|
19 | </p> |
---|
20 | |
---|
21 | <p><u> 特别语言<i>all</i></u>: 所有在 [lang=all] 标签里的将被包含进描述,不论用户指定了什么语言。这个主要的用处是对于 HTML/JavaScript 等代码在描述里的显示。</p> |
---|
22 | |
---|
23 | <h3>扩展描述</h3> |
---|
24 | |
---|
25 | <p>扩展描述的标记,使我们能够有一个简短描述在分类外部,同时有一个详细的描述在分类内部页面,或者甚至有2个不同的分类说明在一个分类页面里。</p> |
---|
26 | |
---|
27 | <p>tag <!--more--> 添加简短的描述文本.<br> |
---|
28 | tag <!--complete--> 让用户有2种不同的描述.<br> |
---|
29 | tag <!--up-down--> 让用户可有一个顶部和底部的描述.</p> |
---|
30 | |
---|
31 | <ul> |
---|
32 | <li><b>tag <!--more--></b></li> |
---|
33 | </ul> |
---|
34 | <code>简短的描述 <!--more--> 详细描述</code> |
---|
35 | <p>只有简短的描述会在分类外显示,在分类页面里,您将看到简短描述 + 详细描述.</p> |
---|
36 | |
---|
37 | <ul> |
---|
38 | <li><b>标签 <!--complete--></b></li> |
---|
39 | </ul> |
---|
40 | <code>简短的描述 <!--complete--> 详细描述</code> |
---|
41 | <p>只有简短的描述会在分类外显示,在分类页面里,您只能看到详细描述,因此您可以有2种不同的描述.</p> |
---|
42 | |
---|
43 | <ul> |
---|
44 | <li><b>标签 <!--up-down--></b></li> |
---|
45 | </ul> |
---|
46 | <code>顶部描述 <!--up-down--> 底部描述</code> |
---|
47 | <p>只有顶部描述会在分类外显示,在分类页面里,顶部描述会显示在缩略图上方,底部描述会显示在缩略图的下方.</p> |
---|
48 | |
---|
49 | <h3>插入一个分类或相片</h3> |
---|
50 | |
---|
51 | <ul> |
---|
52 | <li><b>标签 [cat=xx]</b></li> |
---|
53 | </ul> |
---|
54 | <p>此标签将把一个分类插入到描述里,xx 即分类的ID.</p> |
---|
55 | |
---|
56 | |
---|
57 | <h3>隐藏一个分类</h3> |
---|
58 | |
---|
59 | <p>在分类名称里使用标签 <b><!--hidden--></b> :<br> |
---|
60 | <br> |
---|
61 | - 它将不会在父分类中显示<br> |
---|
62 | - 但它仍可在分类菜单中看见</p> |
---|
63 | |
---|
64 | <h3>隐藏菜单中的分类</h3> |
---|
65 | |
---|
66 | <p>在分类名称里使用标签 <b><!--mb-hidden--></b> :<br> |
---|
67 | <br> |
---|
68 | - 它将不会在分类菜单中显示<br> |
---|
69 | - 但它仍可在父级分类中看见</p> |
---|
70 | |
---|
71 | <h3>隐藏一张相片</h3> |
---|
72 | |
---|
73 | <p>在相片名称中使用标签 <b><!--hidden--></b>:<br> |
---|
74 | <br> |
---|
75 | - 它将不会在缩略图页面中显示<br> |
---|
76 | - 但它仍可在分类页面里看见</p> |
---|
77 | |
---|
78 | <!-- TODO --> |
---|
79 | <h3>Redirected category</h3> |
---|
80 | |
---|
81 | <ul> |
---|
82 | <li><b>[redirect http://piwigo.org]</b></li> |
---|
83 | </ul> |
---|
84 | <p>Insert this tag into a category description to redirect it to the URL of your choice.</p> |
---|
85 | |
---|
86 | <ul> |
---|
87 | <li><b>[redirect img=xx]</b></li> |
---|
88 | </ul> |
---|
89 | <p>Redirect to an image of your gallery where xx is the photo identifier; you can add the category identifier next to the photo identifier: <code>xx.ccc</code>.</p> |
---|
90 | |
---|
91 | <ul> |
---|
92 | <li><b>[redirect cat=xx]</b></li> |
---|
93 | </ul> |
---|
94 | <p>Redirect to a category of your gallery where xx the category identifier.</p> |
---|
95 | |
---|
96 | <ul> |
---|
97 | <li><b>[redirect search=xx]</b></li> |
---|
98 | </ul> |
---|
99 | <p>Redirect to a search page of your gallery where xx is the search identifier.</p> |
---|
100 | </div> |
---|