模板:事件信息:修订间差异

无编辑摘要
无编辑摘要
 
(未显示同一用户的12个中间版本)
第1行: 第1行:
<noinclude>
<noinclude>
{{TempDoc}}
{{TempDoc}}
[[Category:可继承模板]]
</noinclude>
</noinclude>
<includeonly>{{
<includeonly>{{
     #vardefine: name | {{{ 事件名称|{{PAGENAME}} }}}
     #vardefine: name | {{{ 事件名称|{{PAGENAME}} }}}
}}{{
}}{{Sidebar
    #arraydefine: type | {{{ 性质| }}} | ,
}}{{
    #arraydefine: condition | {{{ 前因| }}} | ,
}}{{
    #arraydefine: effect | {{{ 后果| }}} | ,
}}{{
    #set: 事件名称={{#var: name}}
}}{{
    #vardefine: 继承前因|
        {{#arrayprint: condition| | @@@ |
            {{#ask: [[事件名称::@@@]] [[事件前因::+]]
                |?事件前因
                |format=template
                |template=事件信息/前因列表
                |limit=50
                |offset=0
            }}
        }}
}}{{
    #vardefine: 继承后果|
        {{#arrayprint: effect| | @@@ |
            {{#ask: [[事件名称::@@@]] [[事件后果::+]]
                |?事件后果
                |format=template
                |template=事件信息/后果列表
                |limit=50
                |offset=0
            }}
        }}
}}
 
{{#ask: [[事件名称::全球性轨道污染]] [[事件前因::+]]
                |?事件前因
                |format=template
                |template=事件信息/前因列表
                |limit=50
                |offset=0
            }}
 
{{Sidebar
|pretitle=事件
|pretitle=事件
|title={{#var: name}}
|title={{#var: name}}
|content=
|content=
    {{item|性质|<ul>
{{#invoke:Inherit|inherited_lists
        {{#arrayprint: type| |@@@@|  
|name={{#var: name}}
            <li> [[事件性质::@@@@]] </li>
|properties=前置条件,事后效果
        }}</ul>
|anchor_property=设定标题
    }}
|parent_property=上级概念
    {{item|前因|<ul>
|parent_title=性质
        {{#arrayprint: condition|  |@@@@|  
|parents={{{性质|}}}
            <li> [[事件前因::@@@@]] </li>
|children_title=衍生事件
        }}
|前置条件_title=前因
        {{#var: 继承前因}}
|前置条件_values={{{前因|}}}
        </ul>
|前置条件_reversed=事后效果
    }}
|事后效果_title=后果
    {{item|后果|<ul>
|事后效果_values={{{后果|}}}
        {{#arrayprint: effect| |@@@@|
|事后效果_reversed=前置条件
            <li> [[事件后果::@@@@]] </li>
}}
        }}
        {{#var: 继承后果}}
        </ul>
    }}
}}
}}
{{TempCategory|事件}}
{{TempCategory|事件}}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"事件名称": {
"description": "事件名称,放空则使用页面标题",
"type": "string"
},
"性质": {
"description": "事件性质/事件类型,多种类型使用英文逗号\",\"隔开",
"example": "\"诺曼底登陆\"的性质是\"登陆战役\""
},
"前因": {
"description": "导致该事件发生的事件,多种前因使用英文逗号\",\"隔开"
},
"后果": {
"description": "事件产生的后果,多种后果使用英文逗号\",\"隔开",
"type": "wiki-template-name"
}
}
}
</templatedata>
</noinclude>