Template:Documentation:zh-cn/start box: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "<noinclude>{{lang|Template:Documentation/start box}}</noinclude><!-- Start of gray doc box --><div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{lang|Template:Documentation/start box}}</noinclude><!--
<noinclude>{{lang|Template:Documentation/start box}}</noinclude><!--
   Start of gray doc box
   灰色文本框的开头
--><div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #323232; padding: 1em"><!--
--><div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #323232; padding: 1em"><!--
   Add the heading at the top of the doc box:
   在文档框顶部添加标题:
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
| <!--"heading=", do nothing-->
| <!--"heading=", 不做任何事情 -->
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"><span style="{{#if: {{{heading-style|}}}
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"><span style="{{#if: {{{heading-style|}}}
   | {{{heading-style|}}}
   | {{{heading-style|}}}
Line 13: Line 13:
   }}">{{#switch: {{{heading|¬}}}
   }}">{{#switch: {{{heading|¬}}}
   | ¬ =   
   | ¬ =   
     <!--"heading" not defined in this or previous level-->
     <!--"heading" 未在此级别或先前级别中定义-->
     {{#switch: {{SUBJECTSPACE}}  
     {{#switch: {{SUBJECTSPACE}}  
     | {{ns:Template}} = [[File:Curly_brackets_white.png|44px|link=|alt=Template icon]] {{{Documentation alt text|模板文档}}}
     | {{ns:Template}} = [[File:Curly_brackets_white.png|44px|link=|alt=Template icon]] {{{Documentation alt text|模板文档}}}
     | {{ns:File}} = Summary
     | {{ns:File}} = 摘要
     | #default = Documentation
     | #default = 文档
     }}
     }}
   | #default =  
   | #default =  
     <!--"heading" has data or is empty but defined-->
     <!--"heading" 有数据或为空但已定义-->
     {{{heading|}}}
     {{{heading|}}}
   }}</span>{{
   }}</span>{{
   #if: {{{content|}}}
   #if: {{{content|}}}
   |  
   |  
   | <!--Add the [view][edit][history][purge] or [create] links-->
   | <!--添加 [view][edit][history][purge] [create] 链接-->
     <span class="mw-editsection plainlinks" id="doc_editlinks">{{
     <span class="mw-editsection plainlinks" id="doc_editlinks">{{
     #if: {{{doc exist|yes}}}
     #if: {{{doc exist|yes}}}
     | &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|查看]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} 编辑]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} 历史记录]] [{{purge|清除}}]  
     | &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|查看]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} 编辑]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} 历史记录]] [{{purge|清除缓存(刷新页面)}}]  
     | <!--/doc doesn't exist-->
     | <!--/doc doesn't exist-->
       [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
       [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
Line 34: Line 34:
         | {{urlencode:{{{preload}}}}}
         | {{urlencode:{{{preload}}}}}
         | {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
         | {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
           | Template:Documentation/preload-filespace
           | Template:Documentation:zh-cn/preload-filespace
           | Template:Documentation/preload
           | Template:Documentation:zh-cn/preload
           }} }} }} 创建]]
           }} }} }} 创建]]
     }}</span>
     }}</span>
   }}</div>
   }}</div>
}}<noinclude><!-- close the div --></div></noinclude>
}}<noinclude><!-- close the div --></div></noinclude>

Latest revision as of 00:53, 4 February 2022