模板:DocStart

出自【暗黑百科】DiabloWiki_凯恩之角

(修订版本间的差异)
跳转到: 导航, 搜索
 
第6行: 第6行:
<div style="padding-bottom: 3px; border-bottom: 1px solid #5E0C00; margin-bottom: 1ex;"><!--
<div style="padding-bottom: 3px; border-bottom: 1px solid #5E0C00; margin-bottom: 1ex;"><!--
--><span style="font-weight: bold; font-size: 125%; color: #D19E43">Documentation</span><!--
--><span style="font-weight: bold; font-size: 125%; color: #D19E43">Documentation</span><!--
-
--><div style="float: right; margin-left: 5px">[{{fullurl|{{FULLPAGENAME}}|action{{=}}purge|text=purge}}]</div></div><!--
+
--><div style="float: right; margin-left: 5px">[{{fullurl|{{FULLPAGENAME}}|action{{=}}purge|text = purge}}]</div></div><!--
-->{{#if: {{{nodoc|}}} | '''This template has no documentation. When adding some please use {{tl|docStart}} at the start of your documentation and {{tl|docEnd}} to close it.'''<!--
-->{{#if: {{{nodoc|}}} | '''This template has no documentation. When adding some please use {{tl|docStart}} at the start of your documentation and {{tl|docEnd}} to close it.'''<!--

在2012年4月12日 (四) 02:50的最新修订版本

Documentation
[purge ]
To use, put

( docStart ) at the start of your documentation and ( docEnd ) at the end.

Optional parameters

nodoc=1

If a template has no documentation and you don't know how to use it, put ( docStart|nodoc=1 ) instead of ( docStart ) on your documentation page.
The documentation's background will become a brighter red to make it more noticeable, and the page will be added to Category:Templates with No Documentation.

baddoc=1

Similar to nodoc, this is used to mark templates that do have documentation, but it isn't very good. This can mean it doesn't have enough examples, doesn't explain all the functions properly, or doesn't explain the point of the template properly.
The documentation's background will take on a yellowish hue to make it more noticeable, and the page will be added to Category:Templates with Bad Documentation.

If both nodoc and baddoc are specified, baddoc will be ignored.

个人工具
分享到: 更多
名字空间
变换
动作
网站地图
暗黑破坏神 III
暗黑破坏神 II
暗黑破坏神
工具箱
编辑箱
关于暗黑百科