Is dark mode
Parameter 'name' is missing for User:Philmasterplus/TemplateSandbox2
Function Syntax
Missing parameter '1' for Template:DataPage does not exist [[Missing parameter '1' for Template:DataPage does not exist]]( Missing parameter '1' for Template:DataPage does not exist? Missing parameter '1' for Template:DataPage does not exist = Missing parameter '1' for Template:DataPage does not exist, Missing parameter '1' for Template:DataPage does not exist? Missing parameter '1' for Template:DataPage does not exist = Missing parameter '1' for Template:DataPage does not exist, Missing parameter '1' for Template:DataPage does not exist? Missing parameter '1' for Template:DataPage does not exist = Missing parameter '1' for Template:DataPage does not exist, Missing parameter '1' for Template:DataPage does not exist? Missing parameter '1' for Template:DataPage does not exist = Missing parameter '1' for Template:DataPage does not exist, Missing parameter '1' for Template:DataPage does not exist? Missing parameter '1' for Template:DataPage does not exist = Missing parameter '1' for Template:DataPage does not exist )
- Missing parameter '1' for Template:DataPage does not exist
- Missing parameter '1' for Template:DataPage does not exist: Missing parameter '1' for Template:DataPage does not exist
- Missing parameter '1' for Template:DataPage does not exist: Missing parameter '1' for Template:DataPage does not exist
- Missing parameter '1' for Template:DataPage does not exist: Missing parameter '1' for Template:DataPage does not exist
- Missing parameter '1' for Template:DataPage does not exist: Missing parameter '1' for Template:DataPage does not exist
- Missing parameter '1' for Template:DataPage does not exist: Missing parameter '1' for Template:DataPage does not exist
Checks if the current KoLmafia theme is one of the "dark mode" themes. This function was added in r20566.
Code Samples
Use a different text color based on the user's theme.
string WARN_COLOR = is_dark_mode() ? "#FFFF00" : "#A0522D";
print("This is a warning.", WARN_COLOR);