Template:Country data Democratic Bosnia and Herzegovina/doc

Usage

edit

Rather than redirecting {{Country data Democratic Bosnia and Herzegovina}} to {{Country data SR Bosnia and Herzegovina}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Socialist Republic of Bosnia and Herzegovina", but the displayed name is either "Democratic Bosnia and Herzegovina" or "SR Bosnia and Herzegovina" based on which of the two templates is used, even in templates that usually have a fixed default display name (such as {{flagcountry}} and {{fb}}). This allows for "Democratic Bosnia and Herzegovina" to be used in historical contexts without having to also set |name=. The variants from {{Country data SR Bosnia and Herzegovina}} can be used with both templates.

Examples

edit
Template SR Bosnia and Herzegovina output Democratic Bosnia and Herzegovina output
{{flag|SR Bosnia and Herzegovina}}  SR Bosnia and Herzegovina  Democratic Bosnia and Herzegovina
{{flagcountry|SR Bosnia and Herzegovina}}  Bosnia and Herzegovina  Bosnia and Herzegovina
{{flagicon|SR Bosnia and Herzegovina}} Socialist Republic of Bosnia and Herzegovina Socialist Republic of Bosnia and Herzegovina
{{fb|SR Bosnia and Herzegovina}}  Bosnia and Herzegovina  Democratic Bosnia and Herzegovina