Template:TestCountrySidebar: Difference between revisions

From FamilySearch Wiki
(Fixed Category:Template from being trascluded.)
No edit summary
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "TestCountrySidebar" template, note this is used for testing the actual [[Template:CountrySidebar|CountrySidebar]] template.  It should be called in the following format:
This is the "CountrySidebar" template.  It should be called in the following format:
<pre>
<pre>
{{TestCountrySidebar
{{CountrySidebar
|Country=           (full name, i.e. "Côte d'Ivoire")
|Country=
|Name=               (name with restricted characters removed, i.e. "Côte dIvoire")
|Name=
|Type=
|Type=
|Topic Type=
|Topic_Type=
|Getting Started=
|Start_Date=
|Records=
|Background=
|Cultural Groups=
|Local Resources=
|Topic=
|Rating=
|Start Date=
|Start Circa=
|Start Questionable=
|Current=
|Current=
|End Date=
|End_Date=
|End Circa=
|End Questionable=
|Center=
|Center=
|Coordinates=
|Coordinates=
Line 28: Line 17:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
<!--{{#cargo_declare:_table=CountrySidebars
{{#cargo_declare:_table=CountrySidebars
|Country=String
|Country=String
|Name=String
|Name=String
|Type=String
|Type=String
|Topic_Type=String
|Topic_Type=String
|Getting_Started=String
|Records=String
|Background=String
|Cultural_Groups=String
|Local_Resources=String
|Topic=String
|Rating=String
|Start_Date=Date
|Start_Date=Date
|Start_Circa=String
|Start_Questionable=String
|Current=String
|Current=String
|End_Date=Date
|End_Date=Date
|End_Circa=String
|End_Questionable=String
|Region=String
|Region=String
|Region2=String
|Center=String
|Center=String
|Coordinates=Coordinates
|Coordinates=Coordinates
|Population=Integer
|Population=Integer
|Languages=List (,) of String
|Languages=List (,) of String
}}--></noinclude><includeonly><!--{{#cargo_store:_table=CountrySidebars
}}</noinclude><includeonly>{{#cargo_store:_table=CountrySidebars
|Country={{{Country|}}}
|Country={{{Country|}}}
|Name={{#replace:{{#replace:{{{Country|}}}|'}}|&|and}}
|Name={{#replace:{{#replace:{{{Country|}}}|'}}|&|and}}
|Type={{{Type|}}}
|Type={{{Type|}}}
|Topic_Type={{{Topic Type|}}}
|Topic_Type={{{Topic Type|}}}
|Getting_Started={{{Getting Started|}}}
|Records={{{Records|}}}
|Background={{{Background|}}}
|Cultural_Groups={{{Cultural Groups|}}}
|Local_Resources={{{Local Resources|}}}
|Topic={{{Getting Started|}}}{{{Records|}}}{{{Background|}}}{{{Cultural Groups|}}}{{{Local Resources|}}}
|Rating={{{Rating|}}}
|Start_Date={{{Start Date|}}}
|Start_Date={{{Start Date|}}}
|Start_Circa={{{Start Circa|}}}
|Start_Questionable={{{Start Questionable|}}}
|Current={{{Current|}}}
|Current={{{Current|}}}
|End_Date={{{End Date|}}}
|End_Date={{{End Date|}}}
|End_Circa={{{End Circa|}}}
|End_Questionable={{{End Questionable|}}}
|Region={{Region lookup| {{{Country|}}} }}
|Region={{Region lookup| {{{Country|}}} }}
|Region2={{Region2 lookup| {{{Country|}}} }}
|Center={{{Center|}}}
|Center={{{Center|}}}
|Coordinates={{{Coordinates|}}}
|Coordinates={{{Coordinates|}}}
|Population={{{Population|}}}
|Population={{{Population|}}}
|Languages={{{Languages|}}} }}--><!--
|Languages={{{Languages|}}} }}<!--


--><!--{{#iferror: {{#expr: 1 and {{#sub:{{PAGENAME}}|-1}} }} | | <div style="border:3px solid #FFF4C7; border-radius:7px; background-color:#FFFCF0; padding:3px; margin:0.1em; display:inline-block; width:1080px;">[[File:Ambox warning yellow.svg.png|150px|left]] <div style="color:#7C760E; font-weight:bold; font-size:3em; margin-top:7px;">Warning!</div><br><div style="font-size:1.5em;">The page you tried to create ('''{{PAGENAME}}''') is similar to a page that already exists: '''[[{{#sub: {{PAGENAME}}|0|25}}]]'''.<br><br><span style="font-size:0.9em;">Please delete the page you created ({{PAGENAME}}).</span></div></div> }}-->
-->{{#iferror: {{#expr: 1 and {{#sub:{{PAGENAME}}|-1}} }} | <!--OK--> | <div style="border:3px solid #FFF4C7; border-radius:7px; background-color:#FFFCF0; padding:3px; margin:0.1em; display:inline-block; width:1080px;">[[File:Ambox warning yellow.svg.png|150px|left]] <div style="color:#7C760E; font-weight:bold; font-size:3em; margin-top:7px;">Warning!</div><br><div style="font-size:1.5em;">The page you tried to create ('''{{PAGENAME}}''') is similar to a page that already exists: '''[[{{#sub: {{PAGENAME}}|0|25}}]]'''.<br><br><span style="font-size:0.9em;">Please delete the page you created ({{PAGENAME}}).</span></div></div> }}
{| style="float:right; width:20%;  margin-left:10px; border-spacing:0px; border:1px solid gray; box-shadow:1px 1px 3px #888888;"
{| style="float:right; width:20%;  margin-left:10px; border-spacing:0px; border:1px solid gray; box-shadow:1px 1px 3px #888888"
<!--------------------------------------------Array Section (Replace with Cargo)---------------------->
<!--------------------------------------------Array Section (Replace with Cargo)---------------------->
<!--------------------------------------------Beginning Research Links-------------------------------->
<!--------------------------------------------Beginning Research Links-------------------------------->
Line 174: Line 139:
<!-------------------------------------Language Word Lists---------------------------------------------->
<!-------------------------------------Language Word Lists---------------------------------------------->
{{#arraydefine:languagewordlists|
{{#arraydefine:languagewordlists|
{{#iferror: {{#ifeq:{{{Country|}}}|Namibia|<li>[[Afrikaans Genealogical Word List|Afrikaans]]</li>,}} }}
<ul style="margin-top:0px">
{{#iferror: {{#ifeq:{{{Country|}}}|South Africa|<li>[[Afrikaans Genealogical Word List|Afrikaans]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Namibia Genealogy|[[Afrikaans Genealogical Word List|Afrikaans]]|}} }}</li>
{{#iferror: {{#ifeq:{{{Country|}}}|Algeria|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|South Africa Genealogy|[[Afrikaans Genealogical Word List|Afrikaans]]|}} }}</li>
{{#iferror: {{#ifeq:{{{Country|}}}|Bahrain|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Algeria Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li>
{{#iferror: {{#ifeq:{{{Country|}}}|Chad|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Bahrain Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li>
{{#iferror: {{#ifeq:{{{Country|}}}|Comoros|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Chad Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li>
{{#iferror: {{#ifeq:{{{Country|}}}|Djibouti|<li>
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Comoros Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li>
<li>{{#iferror: {{#ifeq:{
|,}}
|,}}
<!---------------Cultural Groups----------------------------------------->
<!---------------Cultural Groups----------------------------------------->
{{#arraydefine:culturalGroups|
{{#arraydefine:culturalGroups|
{{#ifexist:{{{Country|}}} Cultural Groups|<li>[[{{{Country|}}} Cultural Groups|Cultural Groups]]</li>,}}
<ul style="margin-top:0px">
{{#ifexist:{{{Country|}}} Indigenous Peoples|<li>[[{{{Country|}}} Indigenous Peoples|Indigenous Peoples ]]</li>,}}
<li>{{#ifexist:{{{Country|}}} Indigenous Peoples|[[{{{Country|}}} Indigenous Peoples|Indigenous Peoples ]]|}}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Australia|<li>[[Chinese in Australia]]</li>,}} }}
<li>{{#ifexist:{{{Country|}}} Cultural Groups|[[{{{Country|}}} Cultural Groups|Cultural Groups]]|}}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Belize|<li>[[Chinese in Belize]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Australia Genealogy|[[Chinese in Australia]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Canada|<li>[[Canada Inuit]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Belize Genealogy|[[Chinese in Belize]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Canada|<li>[[Chinese in Canada]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Canada Genealogy|[[Canada Inuit]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Cuba|<li>[[Chinese in Cuba]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Canada Genealogy|[[Chinese in Canada]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Dominican Republic|<li>[[Chinese in the Dominican Republic]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Cuba Genealogy|[[Chinese in Cuba]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Finland|<li>[[Sami People|Sami Peoples]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Dominican Republic Genealogy|[[Chinese in the Dominican Republic]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Guyana|<li>[[Chinese in Guyana]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Finland Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Haiti|<li>[[Chinese in Haiti]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Guyana Genealogy|[[Chinese in Guyana]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Jamaica|<li>[[Chinese in Jamaica]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Haiti Genealogy|[[Chinese in Haiti]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Mexico|<li>[[Chinese in Mexico]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Jamaica Genealogy|[[Chinese in Jamaica]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|New Zealand|<li>[[Chinese in New Zealand]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Mexico Genealogy|[[Chinese in Mexico]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Norway|<li>[[Sami People|Sami Peoples]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|New Zealand Genealogy|[[Chinese in New Zealand]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Panama|<li>[[Chinese in Panama]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Norway Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Peru|<li>[[Chinese in Peru]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Panama Genealogy|[[Chinese in Panama]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Philippines|<li>[[Chinese in the Philippines]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Peru Genealogy|[[Chinese in Peru]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Puerto Rico|<li>[[Chinese in Puerto Rico]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Philippines Genealogy|[[Chinese in the Philippines]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Russia|<li>[[Sami People|Sami Peoples]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Puerto Rico Genealogy|[[Chinese in Puerto Rico]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Scotland|<li>[[Scots Irish]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Russia Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Singapore|<li>[[Chinese in Singapore]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Scotland Genealogy|[[Scots Irish]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Suriname|<li>[[Chinese in Suriname]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Singapore Genealogy|[[Chinese in Singapore]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Sweden|<li>[[Sami People|Sami Peoples]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Suriname Genealogy|[[Chinese in Suriname]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|Trinidad and Tobago|<li>[[Chinese in Trinidad and Tobago]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Sweden Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|United States|<li>[[Chinese in America]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Trinidad and Tobago Genealogy|[[Chinese in Trinidad and Tobago]]|}} }}</li>,
{{#iferror: {{#ifeq:{{{Country|}}}|United States|<li>[[African American Genealogy|African Americans]]</li>,}} }}
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|United States Genealogy|[[Chinese in America]]|}} }}</li>,
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|United States Genealogy|[[African American Genealogy|African Americans]]|}} }}</li>,
</ul>
|,}}
|,}}
<!---------------------------Local Research Resources--------------------------------------------->
<!---------------------------Local Research Resources--------------------------------------------->
Line 499: Line 457:
<li>{{#ifexist:{{{Country|}}} Archives and Libraries|[[{{{Country|}}} Archives and Libraries|Archives & Libraries]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Archives and Libraries|[[{{{Country|}}} Archives and Libraries|Archives & Libraries]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Societies|[[{{{Country|}}} Societies|Societies]] |}}</li>,
<li>{{#ifexist:{{{Country|}}} Societies|[[{{{Country|}}} Societies|Societies]] |}}</li>,
<li>[https://locations.familysearch.org/en/search Local FamilySearch Center] </li>
<li>[https://www.familysearch.org/help/fhcenters/locations/ Local FamilySearch Center] </li>
</ul>
</ul>
|,}}
|,}}
Line 512: Line 470:
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Beginning Research'''
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Beginning Research'''
|-
|-
| {{#ifexpr:{{#arraysize:beginningResearch}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:beginningResearch}}<4 | |style="column-count:2"}}|
{{#arrayprint:beginningResearch|}}
{{#arrayprint:beginningResearch|}}
|-
|-
Line 518: Line 476:
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''Record Types'''
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''Record Types'''
|-  
|-  
| {{#ifexpr:{{#arraysize:recordTypes}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:recordTypes}}<4 | |style="column-count:2"}}|
{{#arrayprint:recordTypes|}}
{{#arrayprint:recordTypes|}}
|-
|-
Line 524: Line 482:
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Background'''
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Background'''
|-  
|-  
| {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2"}}|
{{#arrayprint:background|}}
{{#arrayprint:background|}}
|-
|-
<!--------------------------------------Language Word Lists (Section)------------------------>
<!--------------------------------------Language Word Lists (Section?)------------------------>
{{#ifexpr:{{#arraysize:languagewordlists}}=0 | |
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Genealogical Word Lists'''
{{!}} style="text-align:center; background: #C8C8C8; font-size:14pt"{{!}}'''{{{Country|}}} Genealogical Word Lists'''
}}
|-  
|-  
| {{#ifexpr:{{#arraysize:languagewordlists}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2"}}|
<ul style="margin-top:0px">
{{#arrayprint:languagewordlists|}}
{{#arrayprint:languagewordlists|}}
</ul>
|-
|-
<!--------------------------------------Cultural Groups Section----------------------------->
<!--------------------------------------Cultural Groups Section----------------------------->
{{#ifexpr:{{#arraysize:culturalGroups}}=0 | |
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''Cultural Groups'''
{{!}} style="text-align:center; background: #C8C8C8; font-size:14pt"{{!}}'''Cultural Groups'''
}}
|-  
|-  
| {{#ifexpr:{{#arraysize:culturalGroups}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:culturalGroups}}<4 | |style="column-count:2"}}|
<ul style="margin-top:0px">
{{#arrayprint:culturalGroups|}}
{{#arrayprint:culturalGroups|}}
</ul>
|-
|-
<!--------------------------------------------Local Research Resources Section--------------------------------->
<!--------------------------------------------Local Research Resources Section--------------------------------->
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''Local Research Resources'''
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''Local Research Resources'''
|-  
|-  
| {{#ifexpr:{{#arraysize:localResources}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}|
| {{#ifexpr:{{#arraysize:localResources}}<4 | |style="column-count:2"}}|
{{#arrayprint:localResources|}}
{{#arrayprint:localResources|}}
|}
|}
{{#switch: {{{Country|}}}
<noinclude>[[Category:CountrySidebars]]</noinclude> [[Category:{{{Country|}}}]] {{#ifeq:{{{Type|}}}|Topic| [[Category:{{{Type|}}}]] }}
| Syria = Translate this page into [https://translate.google.com/translate?hl=en&sl=auto&tl=ar&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} Arabic عربي]
{{DISPLAYTITLE:{{{Country|}}}&nbsp;{{#ifeq:{{{Type|}}}|Country|Genealogy|{{{Topic Type|}}} }}}}
| #default =
__NOCACHE__
}}<!--
-->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!--
-->{{DISPLAYTITLE:{{{Country|}}}&nbsp;{{#switch: {{{Type|}}} | Country | Territory | Special = Genealogy | {{{Getting Started|}}}{{{Records|}}}{{{Background|}}}{{{Cultural Groups|}}}{{{Local Resources|}}} }} }}<!--
-->__NOCACHE__{{#switch: {{{Getting Started|}}}{{{Records|}}}{{{Background|}}}{{{Cultural Groups|}}}{{{Local Resources|}}}
| <!-- Case for Country page (i.e. no Topic) -->
| Guided Research
| Getting Started
| Online Genealogy Records =
| #default =__FORCETOC__
}}
</includeonly>
</includeonly>
<noinclude>[[Category:Template]]</noinclude>

Revision as of 15:19, 11 January 2024

This is the "CountrySidebar" template. It should be called in the following format:

{{CountrySidebar
|Country=
|Name=
|Type=
|Topic_Type=
|Start_Date=
|Current=
|End_Date=
|Center=
|Coordinates=
|Population=
|Languages=
}}

Edit the page to see the template text. This template defines the table "CountrySidebars". View table. A replacement table has been generated for this table; View replacement table.