Difference between revisions of "Template:Country"

From Conservapedia
Jump to navigation Jump to search
(Fix bugs)
(Add link parameters)
Line 19: Line 19:
 
     CAPITAL  
 
     CAPITAL  
 
-->
 
-->
−
{{t row if|Capital|{{{capital|}}}|link=yes}}
+
{{t row if|Capital|{{{capital|}}}|link=yes|link-name={{{capital-link|}}}}}
 
<!--
 
<!--
 
     GOVERNMENT
 
     GOVERNMENT
 
-->
 
-->
−
{{t row if|Government|{{{government|}}}|link=yes}}
+
{{t row if|Government|{{{government|}}}|link=yes|link-name={{{government-link|}}}}}
 
<!--
 
<!--
 
     OFFICIAL LANGUAGE
 
     OFFICIAL LANGUAGE
Line 31: Line 31:
 
     MONARCH
 
     MONARCH
 
-->
 
-->
−
{{t row if|Monarch|{{{monarch|}}}|link=yes}}
+
{{t row if|Monarch|{{{monarch|}}}|link=yes|link-name={{{monarch-link|}}}}}
 
<!--
 
<!--
 
     PRESIDENT
 
     PRESIDENT
 
-->
 
-->
−
{{t row if|President|{{{president|}}}|link=yes}}
+
{{t row if|President|{{{president|}}}|link=yes|link-name={{{president-link|}}}}}
 
<!--
 
<!--
 
     PRIME MINISTER
 
     PRIME MINISTER
 
-->
 
-->
−
{{t row if|Prime minister|{{{pm|}}}|link=yes}}
+
{{t row if|Prime minister|{{{pm|}}}|link=yes|link-name={{{pm-link|}}}}}
 
<!--
 
<!--
 
     AREA
 
     AREA
Line 65: Line 65:
 
  {{Parm|arms|Coat of arms|no|}}
 
  {{Parm|arms|Coat of arms|no|}}
 
  {{Parm|capital|Capital|no|Is automatically linked}}
 
  {{Parm|capital|Capital|no|Is automatically linked}}
 +
{{Parm|capital-link|Link to capital article|no|See note A}}
 
  {{Parm|government|Type of government|no|Is automatically linked}}
 
  {{Parm|government|Type of government|no|Is automatically linked}}
 +
{{Parm|government-link|Link to type-of-government article|no|See note A}}
 
  {{Parm|language|Official language|no|}}
 
  {{Parm|language|Official language|no|}}
 
  {{Parm|monarch|Monarch|no|Is automatically linked}}
 
  {{Parm|monarch|Monarch|no|Is automatically linked}}
 +
{{Parm|monarch-link|Link to monarch article|no|See note A}}
 
  {{Parm|president|President|no|Is automatically linked}}
 
  {{Parm|president|President|no|Is automatically linked}}
 +
{{Parm|president-link|Link to president article|no|See note A}}
 
  {{Parm|pm|Prime Minister|no|Is automatically linked}}
 
  {{Parm|pm|Prime Minister|no|Is automatically linked}}
 +
{{Parm|pm-link|Link to Prime Minsiter article|no|See note A}}
 
  {{Parm|area|Area of country|no|}}
 
  {{Parm|area|Area of country|no|}}
 
  {{Parm|pop|Population|no|}}
 
  {{Parm|pop|Population|no|}}
Line 82: Line 87:
 
  {{Parm||||}}-->
 
  {{Parm||||}}-->
 
}}
 
}}
 +
'''NOTE A:'''  parameters of the form xxxx-link are ''optional'' page names for the previous parameter to link to.  If they are not provided, then the link will be to a page with the same name as the parameter value.  For example, if the capital of a country is ''Washington'', but the page name for that capital is ''Washington D.C.'', then you would type {{tt|<nowiki>capital=Washington</nowiki>}} and {{tt|<nowiki>capital-link=Washington D.C.</nowiki>}}.  If, instead, the page name is simply ''Washington'', then {{tt|<nowiki>capital=Washington</nowiki>}} is all that is needed, and will automatically be linked.
 +
 +
 
</noinclude>
 
</noinclude>

Revision as of 02:41, June 18, 2007


Template: Country
Use on Country articles
Use for Info box
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
name name of country no Defaults to page name
map map image no
flag flag image no
arms Coat of arms no
capital Capital no Is automatically linked
capital-link Link to capital article no See note A
government Type of government no Is automatically linked
government-link Link to type-of-government article no See note A
language Official language no
monarch Monarch no Is automatically linked
monarch-link Link to monarch article no See note A
president President no Is automatically linked
president-link Link to president article no See note A
pm Prime Minister no Is automatically linked
pm-link Link to Prime Minsiter article no See note A
area Area of country no
pop Population no
pop-basis Basis of population (e.g. "2004 census") yes Only required if pop is supplied
gdp GDP no
gdp-year GDP year yes Only required if gdp is supplied
gdp-pc GDP per capita no

NOTE A: parameters of the form xxxx-link are optional page names for the previous parameter to link to. If they are not provided, then the link will be to a page with the same name as the parameter value. For example, if the capital of a country is Washington, but the page name for that capital is Washington D.C., then you would type capital=Washington and capital-link=Washington D.C.. If, instead, the page name is simply Washington, then capital=Washington is all that is needed, and will automatically be linked.