Difference between revisions of "Template:CharsheetFooterSource"
From Game Logs
m (fix) |
m (fix) |
||
Line 5: | Line 5: | ||
#if: {{{System|}}} | #if: {{{System|}}} | ||
| {{{System}}} | | {{{System}}} | ||
− | | | + | | D&D 3.5 |
}} | }} | ||
}} | }} | ||
Line 21: | Line 21: | ||
#vardefine: pawaLabel | | #vardefine: pawaLabel | | ||
{{ | {{ | ||
− | #if: {{{ECL}}} | ECL | + | #if: {{{ECL}}} | ECL |
}} | }} | ||
}} | }} | ||
Line 27: | Line 27: | ||
#vardefine: pawaLabel | | #vardefine: pawaLabel | | ||
{{ | {{ | ||
− | #if: {{{Level}}} | Level | + | #if: {{{Level}}} | Level |
}} | }} | ||
}} | }} | ||
{{ #var: pawaLabel }} | {{ #var: pawaLabel }} | ||
− | </includeonly> | + | {{ |
+ | #if: {{ #var: pawaLabel }} | | ||
+ | {{ | ||
+ | {{ | ||
+ | #vardefine: eclPrev | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} <= 10 | ||
+ | | 0{{#expr: {{#var: pawaStr}}-1}} | ||
+ | | {{#expr: {{#var: pawaStr}}-1}} | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #vardefine: eclPrevString | | ||
+ | {{ | ||
+ | #ifexpr: {{#var: pawaStr}} = 1 | ||
+ | | \l html \g \l span style="display:none" \g [[{{{Name}}} ECL{{ #var: eclPrev }}|\l \l ECL {{ #var: eclPrev }}]] \l /span \g \l /html \g | ||
+ | | [[{{{Name}}} ECL{{ #var: eclPrev }}|\l \l ECL {{ #var: eclPrev }}]] \l html \g |\l /html \g | ||
+ | }} | ||
+ | }} | ||
+ | {{ | ||
+ | #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 | \l html \g \l center \g \l /html \g {{ #var: eclPrevString }}[[{{{Name}}}]] | [[{{{Name}}} ECL{{ #var: eclNext }}|ECL {{ #var: eclNext }} \g \g ]]\l html \g \l /center \g \l /html \g | ||
+ | }} | ||
+ | }} | | ||
+ | {{ | ||
+ | #vardefine: linkStr | \l html \g \l center \g \l /html \g [[{{{Name}}}]]\l html \g \l /center \g \l /html \g | ||
+ | }} | ||
+ | }} | ||
+ | {{ #vardefine: eclCategory | | ||
+ | {{ #if: {{var:pawaLabel}} | [[Category:{{var:pawaLabel}} {{ #var: eclCurrent }}]] }} | ||
+ | }} | ||
+ | ---- | ||
+ | {{#var: linkStr}} | ||
+ | [[Category:Charsheets]] | ||
+ | {{#var: eclCategory}} | ||
+ | [[Category:{{ #var: systemStr}}]]</includeonly> | ||
+ | <noinclude> | ||
+ | [[Category:Template Source]] | ||
+ | </noinclude> |