「模板:CalcBcDate」:各本之異

[底本][底本]
刪去的內容 新增的內容
Hillgentleman
{{# , -space
損齋
無編輯摘要
第一行:
{{ #ifexpr: ({{{1|1}}} + {{{2|0}}} = 0 and {{{1|1}}} < 0 or {{{1|1}}} + {{{2|0}}} = -10 and {{{1|1}}} >= 0) and {{#ifeq: {{{3|y}}} | d | 1 | 0 }}
|前0|{{ #ifexpr: {{ #switch: {{{3|y}}}
| d = {{#expr: {{{1|1}}} + {{{2|0}}} - (10 * (2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) < 0) or {{{1|1}}} = 0 and {{{2|0}}} < 0)) }}
| m
| c
| y = {{#expr: {{{1|1}}} + {{{2|0}}} + ((2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) <= 0))) }}
}} < 0|前{{ #switch: {{{3|y}}}
| d = {{#expr: 0 - ({{{1|1}}} + {{{2|0}}} - (10 * (2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) < 0) or {{{1|1}}} = 0 and {{{2|0}}} < 0))) }}
| m
| c
| y = {{#expr: 0 - ({{{1|1}}} + {{{2|0}}} + ((2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) <= 0)))) }}
}}|{{ #switch: {{{3|y}}}
| d = {{#expr: {{{1|1}}} + {{{2|0}}} - (10 * (2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) < 0) or {{{1|1}}} = 0 and {{{2|0}}} < 0)) }}
| m = 第{{#expr: {{{1|1}}} + {{{2|0}}} + ((2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) <= 0))) }}
| c
| y = {{#expr: {{{1|1}}} + {{{2|0}}} + ((2 * ({{{2|0}}} > 0) - 1) * (({{{1|1}}} * {{{2|0}}}) < 0 and ({{{1|1}}} * ({{{1|1}}} + {{{2|0}}}) <= 0))) }}
}}}}}}<noinclude>{{Documentation}}</noinclude>
}}}}}}
 
*事例:
{{CalcBcDate| 1994 | -13 | d}}
:<code><nowiki> {{CalcBcDate| 1994 | -13 | d}}
</nowiki></code>
 
d不用更改,第一个1994是你想要的被加或被减数,后一个是你要的加数或减数