{
    // Пользовательские макрос-шаблоны {{up:***}}
    "UserPattern": {
        // Множитель опыта за первую победу
        "up:BattleDailyXPFactor":   [ " ({{BattleDailyXPFactor}})",                                                       "" ],

        // Шевроны и ранги.
        "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:chevronIn}}'>{{ChevronIn}}</font>",                   "{{um:zero}}" ],
        "up:Ranked_ChevronIn":      [ "<font color='{{um:chevronIn}}'>+{{Ranked_ChevronIn}}</font>", "{{um:zero}}" ],
        "up:RankedD_ChevronIn":     [ "<font color='{{um:chevronIn}}'>+{{RankedD_ChevronIn}}</font>","{{um:zero}}" ],
        "up:ChevronOut":            [ "<font color='{{um:chevronOut}}'>{{ChevronOut}}</font>",                 "{{um:zero}}" ],
        "up:Ranked_ChevronOut":     [ "<font color='{{um:chevronOut}}'>-{{Ranked_ChevronOut}}</font>",         "{{um:zero}}" ],
        "up:RankedD_ChevronOut":    [ "<font color='{{um:chevronOut}}'>-{{RankedD_ChevronOut}}</font>",        "{{um:zero}}" ],
        "up:BattleChevronIcon":     [ "{{um:img_chev}}\ttxt:1Chevron</font>",                  "{{up:BattleMarksOnGunIcon}}" ],
        "up:BattleAccRankIcon":     [ "{{c:BattleRankChange}}<font {{um:hide}}> |</font>",       "{{up:BattleDamageRating}}" ],

        // Процент отметки на стволе.
        "up:BattleMarksOnGunIcon":  [ "<img src='{{um:png}}/mark_{{BattleMarksOnGun}}.png' vspace='-1'>\t<font color='{{c:BattleDiffDamageRating}}'>txt:MarkOnGun</font></font>", " " ],
        "up:BattleDamageRating":    [ "<font color='{{c:BattleDamageRating}}'>{{BattleDamageRating:2f}}%</font>",  " " ],
        "up:DamageRating":          [ "{{DamageRating:2f}}%", "-" ],

        // Боны/золото - картинка и текст.
        "up:BattleExpensesG":       [ "{{um:gold}}", "{{um:bonn}}" ],
        // Золото - значение.
        "up:BattleEquipCostG":      [ "<font color='{{um:value_down}}'>-{{BattleEquipCostG}}</font>", "{{up:BattleLoadCostG}}" ],
        "up:BattleLoadCostG":       [ "<font color='{{um:value_down}}'>-{{BattleLoadCostG}}</font>",  "{{up:BattleBonnDebit}}" ],
        // Боны - значение.
        "up:BattleBonnDebit":       [ "{{up:BattleBonn}}{{up:BattleEquipCostB}}",   "{{up:BattleBonn}}{{up:BattleEquipCostB}}" ],
        "up:BattleEquipCostB":      [ "/<font color='{{um:value_down}}'>-{{BattleEquipCostB}}</font>",                      "" ],
        "up:BattleBonn":            [ "<font color='{{um:credits_up}}'>+{{BattleBonn}}</font>", "<font color='{{um:credits_up}}'>0</font>" ],

        // Урон по союзникам.тк
        "up:BattleTeamDamage":      [ "<font size='13' color='{{um:color-tk}}'>/{{BattleTeamDamage}}</font>",           "" ],

        // Стан и помощь - картинка.
        "up:BattleAssistedStun":    [ "<img src='{{um:png}}/stun.png' vspace='-3'>",        ""                                              ],
        "up:BattleStunNum":         [ "<img src='{{um:png}}/assist+stun.png' vspace='-2'>", "<img src='{{um:png}}/assist.png' vspace='-2'>" ],
        // Стан и помощь - значение, картинка и текст.
        "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>",
            // % попаданий - значение, картинка и текст.
            " <font {{um:hide}}>| txt:Hit_ratio</font><img src='{{um:png}}/hits.png' vspace='-3'>\t<font color='{{c:BattleHitsRatio}}'>{{BattleHitsRatio:2f}}%</font>"
        ],
        // Резервы опыт
        "up:BattleBoosterXP":       [ 
            "\n<img src='{{um:png}}/booster_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Boosters<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleBoosterXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleBoosterFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleBoosterTMenXP}}</font><font {{um:hide}}>)</font>",
           "{{up:BattleBoosterFreeXP}}"
        ],
        "up:BattleBoosterFreeXP":   [ 
            "\n<img src='{{um:png}}/booster_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Boosters<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleBoosterXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleBoosterFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleBoosterTMenXP}}</font><font {{um:hide}}>)</font>",
            "{{up:BattleBoosterTMenXP}}"
        ],
        "up:BattleBoosterTMenXP":   [ 
            "\n<img src='{{um:png}}/booster_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Boosters<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleBoosterXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleBoosterFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleBoosterTMenXP}}</font><font {{um:hide}}>)</font>",
            ""
        ],
        // Задачи опыт
        "up:BattleEventXP":         [ 
            "\n<img src='{{um:png}}/quest_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Missions<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleEventXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleEventFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleEventTMenXP}}</font><font {{um:hide}}>)</font>",
            "{{up:BattleEventFreeXP}}"
        ],
        "up:BattleEventFreeXP":     [ 
            "\n<img src='{{um:png}}/quest_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Missions<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleEventXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleEventFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleEventTMenXP}}</font><font {{um:hide}}>)</font>",
            "{{up:BattleEventTMenXP}}"
        ],
        "up:BattleEventTMenXP":     [ 
            "\n<img src='{{um:png}}/quest_Xp.png' vspace='-2'>\t<font {{um:hide}}>(</font>txt:Missions<font {{um:hide}}>:</font>\t<font color='{{um:xp_up}}'>{{BattleEventXP}}<font {{um:hide}}> /</font>\t{{um:img_freeXp}}{{BattleEventFreeXP}}\t <img src='{{um:png}}/TMenXp.png' vspace='-2'><font {{um:hide}}>/</font>\t{{BattleEventTMenXP}}</font><font {{um:hide}}>)</font>",
            ""
        ],
        // Резервы и задачи кредиты
        "up:BattleBoosterCredits":  [ 
            "\n<font {{um:hide}}>,</font><img src='{{um:png}}/booster_credits.png' vspace='-2'>\ttxt:Boosters\t<font color='{{c:BattleCredits}}'>{{BattleBoosterCredits}}</font><font {{um:hide}}>, txt:Missions</font>\t\t <img src='{{um:png}}/quest_credits.png' vspace='-2'>\t<font color='{{c:BattleCredits}}'>{{BattleEventCredits}}</font>",
            "{{up:BattleEventCredits}}"
        ],
        "up:BattleEventCredits":    [ 
            "\n<font {{um:hide}}>,</font><img src='{{um:png}}/booster_credits.png' vspace='-2'>\ttxt:Boosters\t<font color='{{c:BattleCredits}}'>{{BattleBoosterCredits}}</font><font {{um:hide}}>, txt:Missions</font>\t\t <img src='{{um:png}}/quest_credits.png' vspace='-2'>\t<font color='{{c:BattleCredits}}'>{{BattleEventCredits}}</font>",
            ""
        ],
        // Захват / защита базы, засвет
        "up:BattleCapturePoints":   [ 
            "\n<img src='{{um:png}}/capture.png' vspace='-2'>\t<font {{um:hide}}>| </font>txt:Capture\t<font {{um:hide}}>/ txt:Defense: </font><font color='{{c:BattleCapturePoints}}'>{{BattleCapturePoints}}</font>\t<img src='{{um:png}}/defense.png' vspace='-2'><font {{um:hide}}>/ </font><font color='{{c:BattleDroppedCapturePoints}}'>{{BattleDroppedCapturePoints}}</font>\t <img src='{{um:png}}/spotted.png' vspace='-2'>\t<font {{um:hide}}>| txt:Spotted </font><font color='{{c:BattleSpotted}}'>{{BattleSpotted}}</font>",
            "{{up:BattleDroppedCapturePoints}}"
        ],
        "up:BattleDroppedCapturePoints": [ 
            "\n<img src='{{um:png}}/defense.png' vspace='-2'>\t<font {{um:hide}}>| </font>txt:Defense\t<font {{um:hide}}>/ txt:Capture: </font><font color='{{c:BattleDroppedCapturePoints}}'>{{BattleDroppedCapturePoints}}</font>\t<img src='{{um:png}}/capture.png' vspace='-2'><font {{um:hide}}>/ </font><font color='{{c:BattleCapturePoints}}'>{{BattleCapturePoints}}</font>\t <img src='{{um:png}}/spotted.png' vspace='-2'>\t<font {{um:hide}}>| txt:Spotted </font><font color='{{c:BattleSpotted}}'>{{BattleSpotted}}</font>",
            "{{up:BattleSpotted}}"
        ],
        "up:BattleSpotted":         [ 
            "\n<img src='{{um:png}}/spotted.png' vspace='-2'>\t<font {{um:hide}}>| </font>txt:Spotted\t<font color='{{c:BattleSpotted}}'>{{BattleSpotted}}</font>\t<font {{um:hide}}>| txt:Base:</font>\t <img src='{{um:png}}/capture.png' vspace='-2'>\t<font color='{{um:value_down}}'>0 <font {{um:hide}}>/</font> <img src='{{um:png}}/defense.png' vspace='-2'>0</font>",
            ""
        ],
        // Штрафы за урон союзникам.
        "up:BattleXPPenalty":       [
            "\n<img src='{{um:png}}/creditsOut.png' vspace='-1'>\t<font {{um:hide}}>| </font><font color='{{um:color-tk}}'>txt:Penalty_fine</font><font {{um:hide}}>: txt:Credits</font>\t<font color='{{um:value_down}}'>-{{BattleContribution}}<font {{um:hide}}>, txt:Experience</font>\t\t <img src='{{um:png}}/XpOut.png' vspace='-1'>\t-{{BattleXPPenalty}}</font>",
            "{{up:BattleContribution}}" 
        ],
        "up:BattleContribution":    [
            "\n<img src='{{um:png}}/creditsOut.png' vspace='-1'>\t<font {{um:hide}}>| </font><font color='{{um:color-tk}}'>txt:Penalty</font><font {{um:hide}}>: txt:Credits</font>\t<font color='{{um:value_down}}'>-{{BattleContribution}}</font>",
            "" 
        ],
        // Компенсация за урон от союзников
        "up:BattleContributionIn":  [
            "\n<img src='{{um:png}}/creditsIn.png' vspace='-1'>\t<font color='{{um:color-tk}}'><font {{um:hide}}>| </font>txt:Compensation</font><font {{um:hide}}>:</font>\t<font color='{{um:credits_up}}'>+{{BattleContributionIn}}</font>",
            ""
        ],

        // Служебные паттерны для кнопок.
        // LastBattle.
        "up:BattleTeam":            [ "{{BattleTeam}}",                 "" ],
        // Очистка кэша на текущую дату и время при отсутствии боев (только для кнопок на страницах удаления данных #7.0)
        "up:Overall_LifeTime":      [ ":Page:Overall", ":Page:NoBattle"],   "up:OverallD_LifeTime":      [ ":Page:OverallD", ":Page:NoBattleD"],
            "up:Entire_LifeTime":   [ ":Page:Entire",  ":Page:Overall" ],       "up:EntireD_LifeTime":   [ ":Page:EntireD",  ":Page:OverallD" ],
            "up:Unused_LifeTime":   [ ":Page:Unused",  ":Page:Overall" ],       "up:UnusedD_LifeTime":   [ ":Page:UnusedD",  ":Page:OverallD" ],
            "up:Front_LifeTime":    [ ":Page:Front",   ":Page:Overall" ],       "up:FrontD_LifeTime":    [ ":Page:FrontD",   ":Page:OverallD" ],
            "up:Ranked_LifeTime":   [ ":Page:Ranked",  ":Page:Overall" ],       "up:RankedD_LifeTime":   [ ":Page:RankedD",  ":Page:OverallD" ],
        "up:Current_LifeTime":      [ ":Page:Current", ":Page:Overall" ],   "up:CurrentD_LifeTime":      [ ":Page:CurrentD", ":Page:OverallD" ],
            "up:Alone_LifeTime":    [ ":Page:Alone",   ":Page:Overall" ],       "up:AloneD_LifeTime":    [ ":Page:AloneD",   ":Page:OverallD" ],
            "up:Squad_LifeTime":    [ ":Page:Squad",   ":Page:Overall" ],       "up:SquadD_LifeTime":    [ ":Page:SquadD",   ":Page:OverallD" ],
        "up:Clanwar_LifeTime":      [ ":Page:Clanwar", ":Page:Overall" ],   "up:ClanwarD_LifeTime":      [ ":Page:ClanwarD", ":Page:OverallD" ],
            "up:Fort_LifeTime":     [ ":Page:Fort",    ":Page:Overall" ],       "up:FortD_LifeTime":     [ ":Page:FortD",    ":Page:OverallD" ],
            "up:Global_LifeTime":   [ ":Page:Global",  ":Page:Overall" ],       "up:GlobalD_LifeTime":   [ ":Page:GlobalD",  ":Page:OverallD" ],
            "up:Skirm_LifeTime":    [ ":Page:Skirm",   ":Page:Overall" ],       "up:SkirmD_LifeTime":    [ ":Page:SkirmD",   ":Page:OverallD" ],
            "up:Advan_LifeTime":    [ ":Page:Advan",   ":Page:Overall" ],       "up:AdvanD_LifeTime":    [ ":Page:AdvanD",   ":Page:OverallD" ],
            "up:Gloski_LifeTime":   [ ":Page:Gloski",  ":Page:Overall" ],       "up:GloskiD_LifeTime":   [ ":Page:GloskiD",  ":Page:OverallD" ],
            "up:Gloadv_LifeTime":   [ ":Page:Gloadv",  ":Page:Overall" ],       "up:GloadvD_LifeTime":   [ ":Page:GloadvD",  ":Page:OverallD" ],
        "up:Teams_LifeTime":        [ ":Page:Teams",   ":Page:Overall" ],   "up:TeamsD_LifeTime":        [ ":Page:TeamsD",   ":Page:OverallD" ],
            "up:Oneteam_LifeTime":  [ ":Page:Oneteam", ":Page:Overall" ],       "up:OneteamD_LifeTime":  [ ":Page:OneteamD", ":Page:OverallD" ],
            "up:Ladder_LifeTime":   [ ":Page:Ladder",  ":Page:Overall" ],       "up:LadderD_LifeTime":   [ ":Page:LadderD",  ":Page:OverallD" ],
        // Блокировка навигации при отсутствии данных вызываемой сессии.
        "up:BattleLevel":           [ ":Page:LastBattle",                       ":Page:NoBattle"    ],
        "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:Front_isReset":     [ ":Page:", "" ],       "up:FrontS_isReset":     [ ":Page:", "" ],
            "up:FrontD_isReset":    [ ":Page:", "" ],       "up:FrontDS_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:Skirm_isReset":     [ ":Page:", "" ],       "up:SkirmS_isReset":     [ ":Page:", "" ],
            "up:SkirmD_isReset":    [ ":Page:", "" ],       "up:SkirmDS_isReset":    [ ":Page:", "" ],
            "up:Advan_isReset":     [ ":Page:", "" ],       "up:AdvanS_isReset":     [ ":Page:", "" ],
            "up:AdvanD_isReset":    [ ":Page:", "" ],       "up:AdvanDS_isReset":    [ ":Page:", "" ],
            "up:Gloski_isReset":    [ ":Page:", "" ],       "up:GloskiS_isReset":    [ ":Page:", "" ],
            "up:GloskiD_isReset":   [ ":Page:", "" ],       "up:GloskiDS_isReset":   [ ":Page:", "" ],
            "up:Gloadv_isReset":    [ ":Page:", "" ],       "up:GloadvS_isReset":    [ ":Page:", "" ],
            "up:GloadvD_isReset":   [ ":Page:", "" ],       "up:GloadvDS_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:", "" ]
    }
}