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

无编辑摘要
无编辑摘要
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
<noinclude>
<noinclude>
{{TempDoc}}
{{TempDoc}}
[[Category:可继承模板]]
</noinclude>
</noinclude>
<includeonly>{{
<includeonly>{{
     #vardefine: name | {{{ 事件名称|{{PAGENAME}} }}}
     #vardefine: name | {{{ 事件名称|{{PAGENAME}} }}}
}}{{
    #arraydefine: type | {{{ 性质| }}} | ,
}}{{
    #arraydefine: condition | {{{ 前因| }}} | ,
}}{{
    #arraydefine: effect | {{{ 后果| }}} | ,
}}{{
    #set: 事件名称={{#var: name}}
}}{{Sidebar
}}{{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=前因
        {{#arrayprint: type| | @@@ |
|前置条件_values={{{前因|}}}
            {{#ask: [[事件名称::@@@]] [[事件前因::+]]
|前置条件_reversed=事后效果
                |?事件前因
|事后效果_title=后果
                |format=template
|事后效果_values={{{后果|}}}
                |template=事件信息/前因列表
|事后效果_reversed=前置条件
                |limit=50
}}
                |offset=0
                |sep=,
                |link=none
            }}
        }}
        </ul>
    }}
    {{item|后果|<ul>
        {{#arrayprint: effect| |@@@@|
            <li> [[事件后果::@@@@]] </li>
        }}
        {{#arrayprint: type| | @@@ |
            {{#ask: [[事件名称::@@@]] [[事件后果::+]]
                |?事件后果
                |format=template
                |template=事件信息/后果列表
                |limit=50
                |offset=0
                |sep=,
                |link=none
            }}
        }}
        </ul>
    }}
    {{item|衍生事件|<ul>
        {{#ask: [[事件性质::{{#var: name}}]] [[事件名称::+]]
            |?事件名称
            |format=template
            |template=事件信息/衍生列表
            |limit=50
            |offset=0
            |sep=,
            |link=none
        }}
        </ul>
    }}
}}
}}
{{TempCategory|事件}}
{{TempCategory|事件}}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"事件名称": {
"description": "事件名称,放空则使用页面标题",
"type": "string"
},
"性质": {
"description": "事件性质/事件类型,多种类型使用英文逗号\",\"隔开",
"example": "\"诺曼底登陆\"的性质是\"登陆战役\""
},
"前因": {
"description": "导致该事件发生的事件,多种前因使用英文逗号\",\"隔开"
},
"后果": {
"description": "事件产生的后果,多种后果使用英文逗号\",\"隔开",
"type": "wiki-template-name"
}
}
}
</templatedata>
</noinclude>