Site Notice
Due to recent vandalism, all edits performed by IPs and new users will be reviewed before being published. This means it might take some time for your edit to show up.
New accounts also have to be confirmed before being created.
If you have any questions, contact one of the staff members on their talk page, or on the Discord server.

Template:KB: Difference between revisions

From KHUX Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>|-{{#if:{{{i|}}}|<nowiki/>
<includeonly>|-{{#if:{{{i|}}}|<nowiki/>
{{!}}rowspan="{{{ir|}}}"{{!}}[[File:{{PAGENAME}} ({{{i|}}}) KHX.png|100px]]}}
{{!}}rowspan="{{{ir|}}}" valign="top" style="padding-top:5px"{{!}}[[File:{{PAGENAME}} ({{{i|}}}) KHX.png|100px|link=]]}}
|'''+{{{1|}}}'''{{#if:{{{sa|}}}|<nowiki/>
|'''+{{{1|}}}'''{{#if:{{{sa|}}}|<nowiki/>
{{!}}rowspan="{{{sar|}}}"{{!}}{{{sa|}}}}}
{{!}}rowspan="{{{sar|}}}" valign="top" style="padding-top:{{#if:{{{3|}}}{{{5|}}}{{{7|}}}{{{9|}}}{{{11|}}}|13px|3px}}"{{!}}'''{{{sa|}}}'''}}
|{{#ifeq:{{#sub|{{{2|}}}|-1}}|*|'''x{{{2|}}}'''|x{{{2|}}}}}{{#if:{{{3|}}}|<br>x{{{3|}}}}}
|{{#ifeq:{{#sub:{{{2|}}}|-1}}|+|'''x{{#sub:{{{2|}}}|0|4}}'''|x{{#sub:{{{2|}}}|0|4}}}}{{#if:{{{3|}}}|<br>{{#ifeq:{{#sub:{{{3|}}}|-1}}|+|'''x{{#sub:{{{3|}}}|0|4}}'''|x{{#sub:{{{3|}}}|0|4}}}}}}
|x{{{4|}}}{{#if:{{{5|}}}|<br>x{{{5|}}}}}
|{{#ifeq:{{#sub:{{{4|}}}|-1}}|+|'''x{{#sub:{{{4|}}}|0|4}}'''|x{{#sub:{{{4|}}}|0|4}}}}{{#if:{{{5|}}}|<br>{{#ifeq:{{#sub:{{{5|}}}|-1}}|+|'''x{{#sub:{{{5|}}}|0|4}}'''|x{{#sub:{{{5|}}}|0|4}}}}}}
|x{{{6|}}}{{#if:{{{7|}}}|<br>x{{{7|}}}}}
|{{#ifeq:{{#sub:{{{6|}}}|-1}}|+|'''x{{#sub:{{{6|}}}|0|4}}'''|x{{#sub:{{{6|}}}|0|4}}}}{{#if:{{{7|}}}|<br>{{#ifeq:{{#sub:{{{7|}}}|-1}}|+|'''x{{#sub:{{{7|}}}|0|4}}'''|x{{#sub:{{{7|}}}|0|4}}}}}}
|{{#if:{{{8|}}}|x{{{8|}}}{{#if:{{{9|}}}|<br>x{{{9|}}}}}|Locked}}
|{{#if:{{{8|}}}|{{#ifeq:{{#sub:{{{8|}}}|-1}}|+|'''x{{#sub:{{{8|}}}|0|4}}'''|x{{#sub:{{{8|}}}|0|4}}}}{{#if:{{{9|}}}|<br>{{#ifeq:{{#sub:{{{9|}}}|-1}}|+|'''x{{#sub:{{{9|}}}|0|4}}'''|x{{#sub:{{{9|}}}|0|4}}}}}}|Locked}}
|{{#if:{{{10|}}}|x{{{10|}}}{{#if:{{{11|}}}|<br>x{{{11|}}}}}|Locked}}
|{{#if:{{{10|}}}|{{#ifeq:{{#sub:{{{10|}}}|-1}}|+|'''x{{#sub:{{{10|}}}|0|4}}'''|x{{#sub:{{{10|}}}|0|4}}}}{{#if:{{{11|}}}|<br>{{#ifeq:{{#sub:{{{11|}}}|-1}}|+|'''x{{#sub:{{{11|}}}|0|4}}'''|x{{#sub:{{{11|}}}|0|4}}}}}}|Locked}}
|x{{#expr:{{#expr:1 + {{#expr:0.12 * {{#expr:{{#expr:{{#if:{{{3|}}}|{{{3|}}}|{{{2|}}}}} + {{#if:{{{5|}}}|{{{5|}}}|{{{4|}}}}} + {{#if:{{{7|}}}|{{{7|}}}|{{{6|}}}}} + {{#if:{{{9|}}}|{{{9|}}}|{{{8|0}}}}} + {{#if:{{{11|}}}|{{{11|}}}|{{{10|0}}}}} - {{#if:{{{10|}}}|5|{{#if:{{{8|}}}|4|3}}}}}}}}}} round 3}}}}{{#if:{{{r1|}}}|<nowiki/>
|x{{#expr:{{#expr:1 + {{#expr:0.12 * {{#expr:{{#expr:{{#if:{{{3|}}}|{{{3|}}}|{{{2|}}}}} + {{#if:{{{5|}}}|{{{5|}}}|{{{4|}}}}} + {{#if:{{{7|}}}|{{{7|}}}|{{{6|}}}}} + {{#if:{{{9|}}}|{{{9|}}}|{{{8|0}}}}} + {{#if:{{{11|}}}|{{{11|}}}|{{{10|0}}}}} - {{#if:{{{10|}}}|5|{{#if:{{{8|}}}|4|3}}}}}}}}}} round 3}}}}{{#if:{{{r1|}}}|<nowiki/>
{{!}}width="58px"{{!}}[[File:{{{r1|}}} KHX.png|25x25px|link={{{r1|}}}]] x{{{r1q|1}}}
{{!}}width="60px"{{!}}[[File:{{{r1|}}} KHX.png|25x25px|link={{{r1|}}}]] x{{{r1q|1}}}
{{!}}width="58px"{{!}}{{#if:{{{r2|}}}|<nowiki/>[[File:{{{r2|}}} KHX.png|25x25px|link={{{r2|}}}]] x{{{r2q|1}}}}}
{{!}}width="60px"{{!}}{{#if:{{{r2|}}}|<nowiki/>[[File:{{{r2|}}} KHX.png|25x25px|link={{{r2|}}}]] x{{{r2q|1}}}}}
{{!}}width="58px"{{!}}{{#if:{{{r3|}}}|<nowiki/>[[File:{{{r3|}}} KHX.png|25x25px|link={{{r3|}}}]] x{{{r3q|1}}}}}
{{!}}width="60px"{{!}}{{#if:{{{r3|}}}|<nowiki/>[[File:{{{r3|}}} KHX.png|25x25px|link={{{r3|}}}]] x{{{r3q|1}}}}}
{{!}}width="58px"{{!}}{{#if:{{{r4|}}}|<nowiki/>[[File:{{{r4|}}} KHX.png|25x25px|link={{{r4|}}}]] x{{{r4q|1}}}}}|<nowiki/>
{{!}}width="60px"{{!}}{{#if:{{{r4|}}}|<nowiki/>[[File:{{{r4|}}} KHX.png|25x25px|link={{{r4|}}}]] x{{{r4q|1}}}}}|<nowiki/>
{{!}}colspan="4"{{!}}—}}</includeonly><noinclude>
{{!}}colspan="4"{{!}}—}}
{{!}}{{{p|—}}}</includeonly><noinclude>
Friend Medal Multiplier credit to Reddit user Myxas_
Friend Medal Multiplier credit to Reddit user Myxas_
== Usage ==
(Partial syntax; credit to [[User:PlayerZeke|PlayerZeke]].)<br>To add rows without breaking the table's alignment, find "ir" & "sar" part-way down in the table/template on the page, and adjust the values accordingly, for the latest amount of rows, starting from & including that same row, as well as the latest row.<br>(e.g. If "ir=150" & "sar=49", then adjust the values to "ir=151" & "sar=50", to add the latest row.)
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 06:40, 2 May 2021

Friend Medal Multiplier credit to Reddit user Myxas_

Usage[edit]

(Partial syntax; credit to PlayerZeke.)
To add rows without breaking the table's alignment, find "ir" & "sar" part-way down in the table/template on the page, and adjust the values accordingly, for the latest amount of rows, starting from & including that same row, as well as the latest row.
(e.g. If "ir=150" & "sar=49", then adjust the values to "ir=151" & "sar=50", to add the latest row.)