Difference between revisions of "Template:CharsheetFooterSource"

From Game Logs
Jump to: navigation, search
m (fix)
m (fix)
Line 5: Line 5:
 
     #if: {{{System|}}}  
 
     #if: {{{System|}}}  
 
       | {{{System}}}  
 
       | {{{System}}}  
       | DnD 3.5
+
       | D&D 3.5
 
   }}
 
   }}
 
}}
 
}}
Line 21: Line 21:
 
   #vardefine: pawaLabel |
 
   #vardefine: pawaLabel |
 
   {{
 
   {{
     #if: {{{ECL}}} | ECL | Empty
+
     #if: {{{ECL}}} | ECL
 
   }}
 
   }}
 
}}
 
}}
Line 27: Line 27:
 
   #vardefine: pawaLabel |
 
   #vardefine: pawaLabel |
 
   {{  
 
   {{  
     #if: {{{Level}}} | Level | Empty
+
     #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 }}]]&nbsp;&nbsp;\l /span \g \l /html \g
 +
        | [[{{{Name}}} ECL{{ #var: eclPrev }}|\l \l  ECL {{ #var: eclPrev }}]]&nbsp;&nbsp;\l html \g |\l /html \g &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 | \l html \g \l center \g \l /html \g {{ #var: eclPrevString }}[[{{{Name}}}]]&nbsp;&nbsp;|&nbsp;&nbsp;[[{{{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>

Revision as of 14:02, 31 May 2008