Difference between revisions of "Template:CharsheetFooterSource"

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

Revision as of 12:07, 31 May 2008