Difference between revisions of "Template:CharsheetFooterSource"
From Game Logs
m (пофиксил) |
(Добавил параметры System и Level) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{ | + | {{ |
− | #vardefine: | + | #vardefine: systemStr| |
− | {{ | + | {{ |
− | #ifexpr: {{{ | + | #ifexpr: {{{System|}}} |
− | | | + | | {{{System}}} |
− | | | + | | D&D 3.5 |
− | }} | + | }} |
}} | }} | ||
− | {{ | + | {{ |
− | #vardefine: | + | #vardefine: pawaStr | |
{{ | {{ | ||
− | #ifexpr: {{{ECL}}} | + | #ifexpr: {{{ECL|}}} | |
− | + | {{{ECL}}} | | |
− | + | {{{Level|}}} | |
}} | }} | ||
}} | }} | ||
− | {{ | + | {{ |
− | #vardefine: | + | #vardefine: pawaLabel | |
− | {{ | + | {{ |
− | #ifexpr: {{{ECL}}} | + | #ifexpr: {{{ECL}}} | ECL | |
− | |||
− | |||
}} | }} | ||
}} | }} | ||
− | {{ | + | {{ |
− | #vardefine: | + | #ifexpr: {{ #var: pawaLabel }} | |
− | + | {{ #ifexpr: {{{Level}}} | Level | }} | | |
− | #ifexpr: {{{ECL}}} <= 9 | + | }} |
− | + | {{ | |
− | | {{{ECL}}} | + | #ifexpr: {{ #var: vardefine }} | |
− | }} | + | {{ |
+ | {{ | ||
+ | #vardefine: eclPrev | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} <= 10 | ||
+ | | 0{{#expr: {{#var: pawaStr}}-1}} | ||
+ | | {{#expr: {{#var: pawaStr}}-1}} | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #vardefine: eclPrevString | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} = 1 | ||
+ | | <html><span style="display:none">[[{{{Name}}} ECL{{ #var: eclPrev }}|<< ECL {{ #var: eclPrev }}]] </span></html> | ||
+ | | [[{{{Name}}} ECL{{ #var: eclPrev }}|<< ECL {{ #var: eclPrev }}]] <html>|</html> | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #vardefine: eclNext | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} <= 8 | ||
+ | | 0{{#expr: {{#var: pawaStr}}+1}} | ||
+ | | {{#expr: {{#var: pawaStr}}+1}} | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #vardefine: eclCurrent | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} <= 9 | ||
+ | | 0{{#var: pawaStr}} | ||
+ | | {{#var: pawaStr}} | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #vardefine : linkStr | <html><center></html>{{ #var: eclPrevString }}[[{{{Name}}}]] | [[{{{Name}}} ECL{{ #var: eclNext }}|ECL {{ #var: eclNext }} >>]]<html></center></html> | ||
+ | }} | ||
+ | }} | | ||
+ | {{ | ||
+ | #vardefine: linkStr | <html><center></html>[[{{{Name}}}]]<html></center></html> | ||
+ | }} | ||
}} | }} | ||
---- | ---- | ||
− | + | {{#var: linkStr}} | |
[[Category:Charsheets]] | [[Category:Charsheets]] | ||
− | [[Category: | + | {{ #ifexpr: {{var:pawaLabel}} | [[Category:{{var:pawaLabel}} {{ #var: eclCurrent }}]] | }} |
+ | [[Category:{{ #var: systemStr}}]]</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Template Source]] | [[Category:Template Source]] | ||
</noinclude> | </noinclude> |