Difference between revisions of "Template:Foreign relations of China/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jenks24
imported>Funandtrvl
(update formatting)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 +
== Usage ==
 +
{{collapsible option|default=collapsed}}
  
=== Usage ===
+
<includeonly>{{sandbox other||
Use one of the following depending on the transcluding article. This will show all related articles while hiding the less relevant ones.
+
<!-- Categories below this line; interwikis at Wikidata -->
: {{tlx|Foreign relations of the People's Republic of China|Africa}}
+
[[Category:China politics and government templates]]  
: {{tlx|Foreign relations of the People's Republic of China|Asia}}
+
[[Category:Foreign relations by country templates|China]]
: {{tlx|Foreign relations of the People's Republic of China|Europe}}
+
[[Category:Foreign relations of China|τ]]
: {{tlx|Foreign relations of the People's Republic of China|North America}}
+
}}</includeonly>
: {{tlx|Foreign relations of the People's Republic of China|Oceania}}
 
: {{tlx|Foreign relations of the People's Republic of China|South america}}
 
: {{tlx|Foreign relations of the People's Republic of China|Multilateral}}
 
: {{tlx|Foreign relations of the People's Republic of China|Diplomacy}}
 
 
 
<includeonly><!--
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
[[Category:Foreign relations of the People's Republic of China|τ]]
 
[[Category:People's Republic of China politics and government templates]]  
 
[[Category:Foreign relations by country templates|People's Republic of China]]
 
 
 
[[zh:Template:中华人民共和国外交]]
 
</includeonly>
 

Latest revision as of 21:50, 8 September 2020

Usage

Initial visibility: currently defaults to collapsed

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Foreign relations of China|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Foreign relations of China|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Foreign relations of China|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to collapsed.