Difference between revisions of "Template:CharsheetFooterSource"

From Game Logs
Jump to: navigation, search
m (fix)
(убрал категорию)
 
(14 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
   #vardefine: systemStr |
 
   #vardefine: systemStr |
 
   {{
 
   {{
     #ifexpr: {{{System|}}}  
+
     #if: {{{System|}}}  
 
       | {{{System}}}  
 
       | {{{System}}}  
 
       | DnD 3.5
 
       | DnD 3.5
 
   }}
 
   }}
 
}}
 
}}
{{ #var: systemStr }}
 
 
{{
 
{{
 
   #vardefine: pawaStr |
 
   #vardefine: pawaStr |
 
   {{
 
   {{
     #ifexpr: {{{ECL|}}} |
+
     #if: {{{ECL|}}} |
       {{{ECL}}} |
+
       {{{ECL|}}} |
 
       {{{Level|}}}
 
       {{{Level|}}}
 
   }}
 
   }}
 
}}
 
}}
{{ #var: pawaStr }}
 
 
{{
 
{{
 
   #vardefine: pawaLabel |
 
   #vardefine: pawaLabel |
 
   {{
 
   {{
     #ifexpr: {{{ECL}}} | ECL | Empty
+
     #if: {{{ECL|}}} | ECL
 
   }}
 
   }}
 
}}
 
}}
Line 27: Line 25:
 
   #vardefine: pawaLabel |
 
   #vardefine: pawaLabel |
 
   {{  
 
   {{  
     #ifexpr: {{{Level}}} | Level | Empty
+
     #if: {{{Level|}}} | Level | {{ #var: pawaLabel }}
 
   }}
 
   }}
 
}}
 
}}
{{ #var: pawaLabel }}
+
{{
</includeonly>
+
  #vardefine: eclPrev |
 +
  {{
 +
    #ifexpr: {{#var: pawaStr}} <= 10
 +
      | 0{{#expr: {{#var: pawaStr}}-1}}
 +
      | {{#expr: {{#var: pawaStr}}-1}}
 +
  }}
 +
}}
 +
{{
 +
  #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}}
 +
  }}
 +
}}
 +
----
 +
<html><center></html>{{ #ifexpr: {{#var: pawaStr}} > 1 | [[{{{Name}}} {{ #var: pawaLabel }}{{ #var: eclPrev }}|<< {{ #var: pawaLabel }} {{ #var: eclPrev }}]]&nbsp;&nbsp;&#124;&nbsp;&nbsp; }}[[{{{Name}}}]]&nbsp;&nbsp;&#124;&nbsp;&nbsp;[[{{{Name}}} {{ #var: pawaLabel }}{{ #var: eclNext }}|{{ #var: pawaLabel }} {{ #var: eclNext }} >>]]<html></center></html>
 +
[[Category:Charsheets]]
 +
{{ #if: {{#var:pawaLabel}} | [[Category: {{#var: pawaLabel}} {{ #var: eclCurrent }}]] }}</includeonly>
 +
<noinclude>
 +
[[Category:Template Source]]
 +
</noinclude>

Latest revision as of 12:54, 28 June 2008