Difference between revisions of "Template:CharsheetFooterSource"

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

Latest revision as of 12:54, 28 June 2008