{
    // Пользовательские макрос-шаблоны {{up:***}}
    "UserPattern": {
        // Шевроны и ранги.
        "up:BattleChevronIcon":     [ 
            "<img src='{{um:png}}/shev.png' vspace='-2'>txt:1Chevron</font>",                   "{{up:BattleBonnDebit}}" ],
        "up:BattleAccRankIcon":     [ "{{c:BattleRankChange}}<font {{um:hide}}> |</font>",           "{{up:BattleBonn}}" ],
        "up:Chevron":               [ "{{Chevron:0f}}",                                                    "{{um:zero}}" ],
        "up:Ranked_Chevron":        [ "{{Ranked_Chevron:0f}}",                                             "{{um:zero}}" ],
        "up:RankedD_Chevron":       [ "{{RankedD_Chevron:0f}}",                                            "{{um:zero}}" ],
        "up:ChevronIn":             [ "<font color='{{um:good}}'>{{ChevronIn}}</font>",                    "{{um:zero}}" ],
        "up:Ranked_ChevronIn":      [ "<font color='{{um:good}}'>{{um:plus}}{{Ranked_ChevronIn}}</font>",  "{{um:zero}}" ],
        "up:RankedD_ChevronIn":     [ "<font color='{{um:good}}'>{{um:plus}}{{RankedD_ChevronIn}}</font>", "{{um:zero}}" ],
        "up:ChevronOut":            [ "<font color='{{um:very_bad}}'>{{ChevronOut}}</font>",               "{{um:zero}}" ],
        "up:Ranked_ChevronOut":     [ "<font color='{{um:very_bad}}'>-{{Ranked_ChevronOut}}</font>",       "{{um:zero}}" ],
        "up:RankedD_ChevronOut":    [ "<font color='{{um:very_bad}}'>-{{RankedD_ChevronOut}}</font>",      "{{um:zero}}" ],
        // служебный паттерн для кнопки LastBattle.
        "up:BattleTeam":            [ "{{BattleTeam}}",                                                               "" ],
        // Тим-дамаг.
        "up:BattleTeamDamage":      [ "<font size='13' color='{{um:color-tk}}'>/{{BattleTeamDamage}}тк</font>",       "" ],
        // Боны.
        "up:BattleBonnDebit":       [ "{{um:img_bonn}}txt:Bonds</font>",                   "{{up:BattleMarksOnGunIcon}}" ],
        "up:BattleBonn":            [
            "\t<font color='{{um:credits_up}}'>{{um:plus}}{{BattleBonn}}</font><font {{um:hide}}> |</font>",
            "{{up:BattleEquipCostB}}" 
        ],
        "up:BattleEquipCostB":      [ 
            "<font color='{{um:very_bad}}'>-{{BattleEquipCostB}}</font>",                    "{{up:BattleDamageRating}}" ],
        // Процент отметки на стволе.
        "up:BattleMarksOnGunIcon":  [
            "<img src='{{um:png}}/mark_{{BattleMarksOnGun}}.png' vspace='-2'><font color='{{c:BattleDiffDamageRating}}'>txt:MarkOnGun</font></font>", "" ],
        "up:BattleDamageRating":    [
            "\t<font color='{{c:BattleDamageRating}}'>{{BattleDamageRating:2f}}%</font><font {{um:hide}}> |</font>",  "" ],
            // "\t<font color='{{c:BattleDamageRating}}'>{{BattleDiffDamageRating:4f}}</font><font {{um:hide}}> |</font>",  "" ],
        // Стан.
        "up:BattleAssistedStun":    [ "<img src='{{um:png}}/stun.png' vspace='-3'>",                                  "" ],
        "up:BattleStunned":         [
            "<font {{um:hide}}>(txt:Stun: {{BattleAssistedStun}}</font><img src='{{um:png}}/tank+stun.png' vspace='-1'>\t<font color='{{c:BattleStunned}}'><font {{um:hide}}>/ x</font>{{BattleStunned}}</font>   <font {{um:hide}}>/ </font><font color='{{c:BattleStunDuration}}'>{{BattleStunDuration}}txt:sec</font><font {{um:hide}}>)</font>",
            "{{up:BattleHitsRatio}}"
        ],
        // Процент попаданий.
        "up:BattleHitsRatio":       [
            " <font {{um:hide}}>| txt:Hit_ratio:</font><img src='{{um:png}}/hits.png' vspace='-3'>\t<font color='{{c:BattleHitsRatio}}'>{{BattleHitsRatio:2f}}%</font>",
            ""
        ],
        // Блокировка навигации при отсутствии данных вызываемой сессии.
        "up:Overall_isReset":       [ ":Page:", "" ],   "up:OverallS_isReset":      [ ":Page:", "" ],
        "up:OverallD_isReset":      [ ":Page:", "" ],   "up:OverallDS_isReset":     [ ":Page:", "" ],
            "up:Entire_isReset":    [ ":Page:", "" ],       "up:EntireS_isReset":   [ ":Page:", "" ],
            "up:EntireD_isReset":   [ ":Page:", "" ],       "up:EntireDS_isReset":  [ ":Page:", "" ],
            "up:Unused_isReset":    [ ":Page:", "" ],       "up:UnusedS_isReset":   [ ":Page:", "" ],
            "up:UnusedD_isReset":   [ ":Page:", "" ],       "up:UnusedDS_isReset":  [ ":Page:", "" ],
            "up:Ranked_isReset":    [ ":Page:", "" ],       "up:RankedS_isReset":   [ ":Page:", "" ],
            "up:RankedD_isReset":   [ ":Page:", "" ],       "up:RankedDS_isReset":  [ ":Page:", "" ],
        "up:Current_isReset":       [ ":Page:", "" ],   "up:CurrentS_isReset":      [ ":Page:", "" ],
        "up:CurrentD_isReset":      [ ":Page:", "" ],   "up:CurrentDS_isReset":     [ ":Page:", "" ],
            "up:Alone_isReset":     [ ":Page:", "" ],       "up:AloneS_isReset":    [ ":Page:", "" ],
            "up:AloneD_isReset":    [ ":Page:", "" ],       "up:AloneDS_isReset":   [ ":Page:", "" ],
            "up:Squad_isReset":     [ ":Page:", "" ],       "up:SquadS_isReset":    [ ":Page:", "" ],
            "up:SquadD_isReset":    [ ":Page:", "" ],       "up:SquadDS_isReset":   [ ":Page:", "" ],
        "up:Clanwar_isReset":       [ ":Page:", "" ],   "up:ClanwarS_isReset":      [ ":Page:", "" ],
        "up:ClanwarD_isReset":      [ ":Page:", "" ],   "up:ClanwarDS_isReset":     [ ":Page:", "" ],
            "up:Fort_isReset":      [ ":Page:", "" ],       "up:FortS_isReset":     [ ":Page:", "" ],
            "up:FortD_isReset":     [ ":Page:", "" ],       "up:FortDS_isReset":    [ ":Page:", "" ],
            "up:Global_isReset":    [ ":Page:", "" ],       "up:GlobalS_isReset":   [ ":Page:", "" ],
            "up:GlobalD_isReset":   [ ":Page:", "" ],       "up:GlobalDS_isReset":  [ ":Page:", "" ],
        "up:Teams_isReset":         [ ":Page:", "" ],   "up:TeamsS_isReset":        [ ":Page:", "" ],
        "up:TeamsD_isReset":        [ ":Page:", "" ],   "up:TeamsDS_isReset":       [ ":Page:", "" ],
            "up:Oneteam_isReset":   [ ":Page:", "" ],       "up:OneteamS_isReset":  [ ":Page:", "" ],
            "up:OneteamD_isReset":  [ ":Page:", "" ],       "up:OneteamDS_isReset": [ ":Page:", "" ],
            "up:Ladder_isReset":    [ ":Page:", "" ],       "up:LadderS_isReset":   [ ":Page:", "" ],
            "up:LadderD_isReset":   [ ":Page:", "" ],       "up:LadderDS_isReset":  [ ":Page:", "" ],
        // Штрафы и компенсация.
        "up:BattleXPPenalty":       [
            "\n<img src='{{um:png}}/creditsOut.png' vspace='-4'>\t<font color='{{um:color-tk}}'><font {{um:hide}}>| </font>txt:Penalty_fine</font><font {{um:hide}}>txt:tkiller txt:Credits</font>\t<font color='{{um:value_down}}'>-{{BattleContribution}}\t<font {{um:hide}}>/ txt:Experience</font> <img src='{{um:png}}/XpOut.png' width='16' height='16' vspace='-3'>\t-{{BattleXPPenalty}}</font>",
            "{{up:BattleContribution}}" 
        ],
        "up:BattleContribution":    [
            "\n<img src='{{um:png}}/creditsOut.png' width='16' height='16' vspace='-4'>\t<font color='{{um:color-tk}}'><font {{um:hide}}>| </font>txt:Penalty_fine</font><font {{um:hide}}>txt:tkiller txt:Credits</font>\t<font color='{{um:value_down}}'>-{{BattleContribution}}</font>",
            "" 
        ],
        "up:BattleContributionIn":  [
            "\n<img src='{{um:png}}/creditsIn.png' vspace='-3'>\t<font color='{{um:color-tk}}'><font {{um:hide}}>| </font>txt:Compensation</font><font {{um:hide}}>txt:ally_dmg</font>\t<font color='{{um:credits_up}}'>+{{BattleContributionIn}}</font>",
            ""
        ]
    }
}