Difference between revisions of "Template:Country data PR Croatia/doc"

From blackwiki
Jump to navigation Jump to search
imported>S.A. Julio
(creating doc)
 
imported>S.A. Julio
(add)
 
Line 19: Line 19:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Country data templates of countries|Pr Croatia]]
+
[[Category:Country data templates of subdivisions of Yugoslavia|Croatia Pr]]
 +
[[Category:Country data templates of Croatia|Pr Croatia]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 01:41, 15 April 2020

Usage

Rather than redirecting {{Country data PR Croatia}} to {{Country data SR Croatia}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Socialist Republic of Croatia", but the displayed name is either "PR Croatia" or "SR Croatia" 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 "PR Croatia" to be used in historical contexts without having to also set |name=. The variants from {{Country data SR Croatia}} can be used with both templates.

Examples

Template SR Croatia output PR Croatia output
{{flag|SR Croatia}}  SR Croatia  PR Croatia
{{flagcountry|SR Croatia}}  SR Croatia  PR Croatia
{{flagicon|SR Croatia}} Socialist Republic of Croatia Socialist Republic of Croatia
{{fb|SR Croatia}}  SR Croatia  PR Croatia