Template:MissionNavigation/PreviousMission: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
(get the mission before the current mission; returns an empty string if the current mission is 1-1 or 1-1H)
 
(fix for A stages)
 
Line 2: Line 2:
-->{{#ifeq:{{MissionNavigation/GetChapter}}|1||<!--leave empty if this is 1-1; otherwise subtract 1 to chapter and reset stage
-->{{#ifeq:{{MissionNavigation/GetChapter}}|1||<!--leave empty if this is 1-1; otherwise subtract 1 to chapter and reset stage
-->{{#expr:{{MissionNavigation/GetChapter}}-1}}-{{#if:{{#pos:{{MissionNavigation/GetMission}}|H|0}} | 3H | 5}}
-->{{#expr:{{MissionNavigation/GetChapter}}-1}}-{{#if:{{#pos:{{MissionNavigation/GetMission}}|H|0}} | 3H | 5}}
}}|<!-- no need to carry; just subtract 1
}}|<!-- test for A stages
-->{{MissionNavigation/GetChapter}}-{{#expr:{{MissionNavigation/GetStage}}-1}}{{#if:{{#pos:{{MissionNavigation/GetMission}}|H|0}} | H |}}
-->{{#ifeq:{{MissionNavigation/GetStage}}|A|<!-- is A stage
-->{{MissionNavigation/GetChapter}}-5|<!-- no need to carry; just subtract 1
-->{{MissionNavigation/GetChapter}}-{{#expr:{{MissionNavigation/GetStage}}-1}}{{#if:{{#pos:{{MissionNavigation/GetMission}}|H|0}} | H |}}
}}
}}
}}

Latest revision as of 02:44, 23 April 2024

PreviousMission-Expression error: Unrecognized word "r".