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

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