Difference between revisions of "Template:CharsheetFooterSource"

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

Latest revision as of 12:54, 28 June 2008