Help with templates (Differently)

Differently uses three templates that facilitate linking to the timeline's pages.

The template  links to pages with (Differently). For example,  links to the page Italy (Differently), hiding the parentheses.

The template  links to countries with a flag miniature on the right, but it only works for countries whose flags are the same as in OTL, such as.

Other examples of usage of both templates are shown below: