Difference between revisions of "Template:CharsheetFooterSource"

From Game Logs
Jump to: navigation, search
m (fix)
(убрал категорию)
 
(17 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}}
 +
  }}  
 
}}
 
}}
{{
+
{{  
   #ifeq: {{ #var: pawaLabel }} | Empty |
+
   #vardefine: eclNext |  
  {{
+
   {{  
    #vardefine: linkStr | \l html \g \l center \g \l /html \g [[{{{Name}}}]]\l html \g \l /center \g \l /html \g
+
     #ifexpr: {{#var: pawaStr}} <= 8
  }} |
+
       | 0{{#expr: {{#var: pawaStr}}+1}}  
   {{
+
      | {{#expr: {{#var: pawaStr}}+1}}  
     {{
 
      #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: eclCategory |  
+
{{  
   {{ #ifexpr: {{var:pawaLabel}} | Empty |  | [[Category:{{var:pawaLabel}} {{ #var: eclCurrent }}]] }}
+
  #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]]
{{#var: eclCategory}}
+
{{ #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