←模板:Class因为以下原因,您没有权限编辑该页面: 您请求的操作仅限属于这些用户组的用户执行:用户、管理员、行政员、editor 您可以查看和复制此页面的源代码。 {{#vardefine:class|{{{type|}}}{{#expr:({{{p1|0}}}+{{{p2|0}}}+{{{p3|0}}})/3 round 0}}}}{{#vardefine:sd-color-0|0,255,144}}{{#vardefine:sd-color-1|0,255,0}}{{#vardefine:sd-color-2|200,255,0}}{{#vardefine:sd-color-3|255,200,0}}{{#vardefine:sd-color-4|255,100,0}}{{#vardefine:sd-color-5|255,0,0}}{{#vardefine:sd-color-e0|0,255,200}}{{#vardefine:sd-color-e1|0,255,255}}{{#vardefine:sd-color-e2|0,144,255}}{{#vardefine:sd-color-e3|100,0,255}}{{#vardefine:sd-color-e4|255,0,255}}{{#vardefine:sd-color-e5|255,0,144}}{{#vardefine:part|padding-left: 0.4rem; flex-grow: 1; font-size: 0.8rem; letter-spacing: 0.1rem}}{{#vardefine:subpart|font-size: 1.7rem; line-height: 1.5em}}{{#if:{{{level|}}}|<div class="flex-container sd-top-row" style="flex-direction: row; justify-content: center"> <div class="sd-fix sd-level sd-color-{{#var:class}}" style="{{#var:part}}; flex: 1; background: rgba({{#var:sd-color-{{#var:class}}}},0.3); padding: 0.4rem 0; margin-bottom: 10px; text-align: center"> LEVEL<br> <b class="sd-subpart" style="{{#var:subpart}}">{{{level|}}}</b> </div>}}<!-- NOTE: All CSS classes used in this template except for flex-container and sd-fix are NOT required. They are only used to display the fancy styling of the template on the mobile theme. --> <div class="sd-fix sd-class sd-color-{{#var:class}}" style="{{#var:part}}; flex: 1; background: rgba({{#var:sd-color-{{#var:class}}}},0.3); border-left: solid 0.4rem rgb({{#var:sd-color-{{#var:class}}}}); padding: 0.4rem 0; margin-bottom: 10px; text-align: center"> 生存难度<br> <b class="sd-subpart" style="{{#var:subpart}}">{{#ifeq:{{{type|}}}|e|ENIGMATIC}} CLASS {{#ifeq:{{#explode:{{#var:class}}|e|1}}||{{#var:class}}|{{#explode:{{#var:class}}|e|1}}}}</b> </div>{{#if:{{{level|}}}|</div>}} <div class="flex-container sd-bottom-row" style="flex-direction: row; justify-content: center; gap: 10px"> <div class="sd-fix sd-part sd-color-{{{type|}}}{{{p1|0}}}" style="{{#var:part}}; background: rgba({{#var:sd-color-{{{type|}}}{{{p1|0}}}}},0.3); border-left: solid 0.4rem rgb({{#var:sd-color-{{{type|}}}{{{p1|0}}}}})"> <b class="sd-subpart" style="{{#var:subpart}}">{{#if:{{{p1-title|}}}|{{{p1-title|}}}|{{#ifeq:{{{type|}}}|e|贝塔 (β)|逃脱指数}}}}: {{{p1|0}}}/5</b><br> {{#if:{{{p1-text|}}}|{{{p1-text|}}}|{{#switch:{{{type|}}}{{{p1|0}}}|0=极易逃脱|1=易于逃脱|2=较难逃脱|3=难以逃脱|4=极难逃脱|5=无法逃离|e0=无生物危害|e1=轻度生物危害|e2=中度生物危害|e3=严重生物危害|e4=极端生物危害|e5=严重极端生物危害}}}} </div> <div class="sd-fix sd-part sd-color-{{{type|}}}{{{p2|0}}}" style="{{#var:part}}; background: rgba({{#var:sd-color-{{{type|}}}{{{p2|0}}}}},0.3); border-left: solid 0.4rem rgb({{#var:sd-color-{{{type|}}}{{{p2|0}}}}})"> <b class="sd-subpart" style="{{#var:subpart}}">{{#if:{{{p2-title|}}}|{{{p2-title|}}}|{{#ifeq:{{{type|}}}|e|伽马 (γ)|环境指数}}}}: {{{p2|0}}}/5</b><br> {{#if:{{{p2-text|}}}|{{{p2-text|}}}|{{#switch:{{{type|}}}{{{p2|0}}}|0=无环境危害|1=极少环境危害|2=存在环境危害|3=大量环境危害|4=极端环境危害|5=死区|e0=无几何危害|e1=轻度几何危害|e2=中度几何危害|e3=严重几何危害|e4=极端几何危害|e5=严重极端几何危害}}}} </div> <div class="sd-fix sd-part sd-color-{{{type|}}}{{{p3|0}}}" style="{{#var:part}}; background: rgba({{#var:sd-color-{{{type|}}}{{{p3|0}}}}},0.3); border-left: solid 0.4rem rgb({{#var:sd-color-{{{type|}}}{{{p3|0}}}}})"> <b class="sd-subpart" style="{{#var:subpart}}">{{#if:{{{p3-title|}}}|{{{p3-title|}}}|{{#ifeq:{{{type|}}}|e|普西 (ψ)|实体指数}}}}: {{{p3|0}}}/5</b><br> {{#if:{{{p3-text|}}}|{{{p3-text|}}}|{{#switch:{{{type|}}}{{{p3|0}}}|0=无敌对实体|1=极少敌对实体|2=中量敌对实体|3=大量敌对实体|4=极端敌对实体|5=敌对实体侵占|e0=无精神危害|e1=轻度精神危害|e2=中度精神危害|e3=严重精神危害|e4=极端精神危害|e5=严重极端精神危害}}}} </div></div> <includeonly>[[Category:生存难度{{#var:class}}]]</includeonly><noinclude><span style="margin: 0.8em 0; float: right;" class="mw-customtoggle-final1 mw-customtoggle-initial1"><div class="wds-button mw-collapsible" id="mw-customcollapsible-initial1">'''Show Instructions'''</div></span> <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-final1"> <div style="margin: 1em 0; float: right;" class="wds-button mw-customtoggle-final1 mw-customtoggle-initial1">'''hide instructions'''</div> </div> <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-final1"><div class="styled-quote"> ==New Class Format== This is a new system for assigning classes to levels! You can use it as the banner for your level pages! Some would say the current SD system is ineffective. The values are quite subjective and difficult to compare across levels effectively. Adequately customizing classes requires an unreasonable amount of work, and dozens of templates have to be made. So here, we have a new system, that is far more consistent and merges all the classes into a single easy-to-use template: ===Parameters=== '''Note: The class number is calculated ''automatically'' by getting the average of the 3 parts' values and rounding it to the nearest whole number.''' * <code>type</code> - Determines the type of the class; regular or enigmatic. Enigmatic lets you rate different types of ''hazards'', instead of different ''properties'' of the level. Set as <code>e</code> for enigmatic. Default: regular * <code>level</code> - Determines the level name displayed on the template. Formatting is any string of text. Default: disabled; set this parameter to enable this section of the template * <code>p1</code> - The first part's value. Formatting is any whole number 0-5. Default: 0 :* <code>p1-title</code> - The first part's title. Formatting is any string of text. Default (regular / enigmatic): Exit / Beta (β) :* <code>p1-text</code> - The first part's description text. Formatting is any string of text. Default depends on the <code>type</code> and <code>p1</code> parameters. * <code>p2</code> - The second part's value. Formatting is any whole number 0-5. Default: 0 :* <code>p2-title</code> - The second part's title. Formatting is any string of text. Default (regular / enigmatic): Environment / Gamma (γ) :* <code>p2-text</code> - The second part's description text. Formatting is any string of text. Default depends on the <code>type</code> and <code>p2</code> parameters. * <code>p3</code> - The third part's value. Formatting is any whole number 0-5. Default: 0 :* <code>p3-title</code> - The third part's title. Formatting is any string of text. Default (regular / enigmatic): Entities / Psi (ψ) :* <code>p3-text</code> - The third part's description text. Formatting is any string of text. Default depends on the <code>type</code> and <code>p1</code> parameters. </div></div>[[分类:生存难度模板]]</noinclude> 返回模板:Class。