Difference between revisions of "Template:CharsheetFooter"

From Game Logs
Jump to: navigation, search
(вот теперь релиз-кандидат)
(rc2)
Line 6: Line 6:
  
 
<includeonly>----
 
<includeonly>----
<html><center></html>[[{{{Name}}} ECL{{ #expr: {{{ECL}}}-1}}|<< {{ #expr: {{{ECL}}}-1}}]]&nbsp;&nbsp;|&nbsp;&nbsp;[[{{{Name}}}]]&nbsp;&nbsp;|&nbsp;&nbsp;[[{{{Name}}} {{ #expr: {{{ECL}}}+1}}|{{ #expr: {{{ECL}}}+1}} >>]]<html></center></html>
+
{{ #vardefine: eclPrev | #if: {{{ECL}}} <= 10 | 0{{#expr: {{{ECL}}}-1}} | {{#expr: {{{ECL}}}-1}} }}
 +
{{ #vardefine: eclNext | #if: {{{ECL}}} <= 9 | 0{{#expr: {{{ECL}}}+1}} | {{#expr: {{{ECL}}}+1}} }}
 +
<html><center></html>[[{{{Name}}} ECL{{ #var: eclPrev }}|<< {{ #var: eclPrev }}]]&nbsp;&nbsp;|&nbsp;&nbsp;[[{{{Name}}}]]&nbsp;&nbsp;|&nbsp;&nbsp;[[{{{Name}}} {{ #var: eclNext }}|{{ #var: eclNext }} >>]]<html></center></html>
 
[[Category:Charsheets]]
 
[[Category:Charsheets]]
 
[[Category:ECL {{{ECL}}}]]</includeonly>
 
[[Category:ECL {{{ECL}}}]]</includeonly>

Revision as of 12:06, 4 November 2007

Usage

Allows to establish a link to a subject: Template:NameOfTemplate