Template:Maupassant/doc

维基百科,自由的百科全书
跳到导航 跳到搜索

概要[编辑]

Maupassant最初是一套以MIT许可协议开源的Typecho响应式主题,目前已被移植到多个平台上。此模板移植自Hexo版本,用以美化用户页

参数及使用方法[编辑]

右侧的方框内是{{Maupassant}}模板的完整参数,每种参数的说明如下:

完整参数
{{Template:Maupassant
	| head-link=
	| u-photo=
	| u-description=
	| u-link=
	| site-title=
	| site-title-link=
	| site-description=
	| site-descripton-link=
	|
	| nav-item-1=
	| nav-item-1-icon=
	| nav-item-1-link=
	| nav-item-1-active=
	|
	| nav-item-2=
	| nav-item-2-icon=
	| nav-item-2-link=
	| nav-item-2-active=
	|
	| nav-item-3=
	| nav-item-3-icon=
	| nav-item-3-link=
	| nav-item-3-active=
	|
	| nav-item-4=
	| nav-item-4-icon=
	| nav-item-4-link=
	| nav-item-4-active=
	|
	| nav-item-5=
	| nav-item-5-icon=
	| nav-item-5-link=
	| nav-item-5-active=
	|
	| nav-item-6=
	| nav-item-6-icon=
	| nav-item-6-link=
	| nav-item-6-active=
	|
	| nav-item-7=
	| nav-item-7-icon=
	| nav-item-7-link=
	| nav-item-7-active=
	|
	| nav-item-8=
	| nav-item-8-icon=
	| nav-item-8-link=
	| nav-item-8-active=
	|
	| nav-item-9=
	| nav-item-9-icon=
	| nav-item-9-link=
	| nav-item-9-active=
	|
	| nav-item-10=
	| nav-item-10-icon=
	| nav-item-10-link=
	| nav-item-10-active=
	|
	| nav-item-11=
	| nav-item-11-icon=
	| nav-item-11-link=
	| nav-item-11-active=
	|
	| nav-item-12=
	| nav-item-12-icon=
	| nav-item-12-link=
	| nav-item-12-active=
	|
	| content=
	| side-bar=
	| footer=
}}

head-link[编辑]

head-link参数的值为一个内链,相当于为u-linksite-title-linksite-description三个参数指定缺省值。当上述参数有值时会被覆盖。

注意:填写内链时,无需添加链接标记([[]])。

u-photo[编辑]

u-photo参数的值为一个图片内链。

注意:填写图片内链时,无需添加链接标记([[File:]])。

u-description[编辑]

u-photo参数的值为一行文本。当u-photo参数填写正确时,将鼠标停留在页面左上方的圆形图片上,会显示此文本。

u-link[编辑]

u-photo参数的值为一个内链,当u-photo参数填写正确时,点击页面左上方的圆形图片,会跳转到此链接对应的页面。

范例[编辑]

重定向[编辑]

注意事项[编辑]

模板编辑说明[编辑]

许可协议[编辑]

此模板移植自Maupassant主题,以MIT许可协议授权,允许以相同许可条款分发。

MIT License

Copyright (c) 2017 cho

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

参见[编辑]