Template:TestCountrySidebar: Difference between revisions
No edit summary |
(Fixed Category:Template from being trascluded.) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "CountrySidebar | 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: | ||
<pre> | <pre> | ||
{{ | {{TestCountrySidebar | ||
|Country= | |Country= (full name, i.e. "Côte d'Ivoire") | ||
|Name= | |Name= (name with restricted characters removed, i.e. "Côte dIvoire") | ||
|Type= | |Type= | ||
| | |Topic Type= | ||
| | |Getting Started= | ||
|Records= | |||
|Background= | |||
|Cultural Groups= | |||
|Local Resources= | |||
|Topic= | |||
|Rating= | |||
|Start Date= | |||
|Start Circa= | |||
|Start Questionable= | |||
|Current= | |Current= | ||
| | |End Date= | ||
|End Circa= | |||
|End Questionable= | |||
|Center= | |Center= | ||
|Coordinates= | |Coordinates= | ||
Line 17: | Line 28: | ||
</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}} }} | | --><!--{{#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> }}--> | ||
{| 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 139: | Line 174: | ||
<!-------------------------------------Language Word Lists----------------------------------------------> | <!-------------------------------------Language Word Lists----------------------------------------------> | ||
{{#arraydefine:languagewordlists| | {{#arraydefine:languagewordlists| | ||
{{#iferror: {{#ifeq:{{{Country|}}}|Namibia|<li>[[Afrikaans Genealogical Word List|Afrikaans]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|South Africa|<li>[[Afrikaans Genealogical Word List|Afrikaans]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Algeria|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Bahrain|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Chad|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Comoros|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Djibouti|<li> | |||
|,}} | |,}} | ||
<!---------------Cultural Groups-----------------------------------------> | <!---------------Cultural Groups-----------------------------------------> | ||
{{#arraydefine:culturalGroups| | {{#arraydefine:culturalGroups| | ||
{{#ifexist:{{{Country|}}} Cultural Groups|<li>[[{{{Country|}}} Cultural Groups|Cultural Groups]]</li>,}} | |||
{{#ifexist:{{{Country|}}} Indigenous Peoples|<li>[[{{{Country|}}} Indigenous Peoples|Indigenous Peoples ]]</li>,}} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Australia|<li>[[Chinese in Australia]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Belize|<li>[[Chinese in Belize]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Canada|<li>[[Canada Inuit]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Canada|<li>[[Chinese in Canada]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Cuba|<li>[[Chinese in Cuba]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Dominican Republic|<li>[[Chinese in the Dominican Republic]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Finland|<li>[[Sami People|Sami Peoples]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Guyana|<li>[[Chinese in Guyana]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Haiti|<li>[[Chinese in Haiti]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Jamaica|<li>[[Chinese in Jamaica]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Mexico|<li>[[Chinese in Mexico]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|New Zealand|<li>[[Chinese in New Zealand]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Norway|<li>[[Sami People|Sami Peoples]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Panama|<li>[[Chinese in Panama]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Peru|<li>[[Chinese in Peru]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Philippines|<li>[[Chinese in the Philippines]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Puerto Rico|<li>[[Chinese in Puerto Rico]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Russia|<li>[[Sami People|Sami Peoples]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Scotland|<li>[[Scots Irish]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Singapore|<li>[[Chinese in Singapore]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Suriname|<li>[[Chinese in Suriname]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Sweden|<li>[[Sami People|Sami Peoples]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|Trinidad and Tobago|<li>[[Chinese in Trinidad and Tobago]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|United States|<li>[[Chinese in America]]</li>,}} }} | |||
{{#iferror: {{#ifeq:{{{Country|}}}|United States|<li>[[African American Genealogy|African Americans]]</li>,}} }} | |||
|,}} | |,}} | ||
<!---------------------------Local Research Resources---------------------------------------------> | <!---------------------------Local Research Resources---------------------------------------------> | ||
Line 457: | Line 499: | ||
<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:// | <li>[https://locations.familysearch.org/en/search Local FamilySearch Center] </li> | ||
</ul> | </ul> | ||
|,}} | |,}} | ||
Line 470: | Line 512: | ||
| 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"}}| | | {{#ifexpr:{{#arraysize:beginningResearch}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}| | ||
{{#arrayprint:beginningResearch|}} | {{#arrayprint:beginningResearch|}} | ||
|- | |- | ||
Line 476: | Line 518: | ||
| 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"}}| | | {{#ifexpr:{{#arraysize:recordTypes}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}| | ||
{{#arrayprint:recordTypes|}} | {{#arrayprint:recordTypes|}} | ||
|- | |- | ||
Line 482: | Line 524: | ||
| 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"}}| | | {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}| | ||
{{#arrayprint:background|}} | {{#arrayprint:background|}} | ||
|- | |- | ||
<!--------------------------------------Language Word Lists (Section | <!--------------------------------------Language Word Lists (Section)------------------------> | ||
| style="text-align:center; background: #C8C8C8; font-size:14pt" | {{#ifexpr:{{#arraysize:languagewordlists}}=0 | | | ||
{{!}} style="text-align:center; background: #C8C8C8; font-size:14pt"{{!}}'''{{{Country|}}} Genealogical Word Lists''' | |||
}} | |||
|- | |- | ||
| {{#ifexpr:{{#arraysize: | | {{#ifexpr:{{#arraysize:languagewordlists}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}| | ||
<ul style="margin-top:0px"> | |||
{{#arrayprint:languagewordlists|}} | {{#arrayprint:languagewordlists|}} | ||
</ul> | |||
|- | |- | ||
<!--------------------------------------Cultural Groups Section-----------------------------> | <!--------------------------------------Cultural Groups Section-----------------------------> | ||
| style="text-align:center; background: #C8C8C8; font-size:14pt" | {{#ifexpr:{{#arraysize:culturalGroups}}=0 | | | ||
{{!}} style="text-align:center; background: #C8C8C8; font-size:14pt"{{!}}'''Cultural Groups''' | |||
}} | |||
|- | |- | ||
| {{#ifexpr:{{#arraysize:culturalGroups}}<4 | |style="column-count:2"}}| | | {{#ifexpr:{{#arraysize:culturalGroups}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-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"}}| | | {{#ifexpr:{{#arraysize:localResources}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-column-count:2;"}}| | ||
{{#arrayprint:localResources|}} | {{#arrayprint:localResources|}} | ||
|} | |} | ||
< | {{#switch: {{{Country|}}} | ||
{{ | | Syria = Translate this page into [https://translate.google.com/translate?hl=en&sl=auto&tl=ar&u={{SERVER}}{{SCRIPTPATH}}/{{FULLPAGENAMEE}} Arabic عربي] | ||
| #default = | |||
}}<!-- | |||
-->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!-- | |||
-->{{DISPLAYTITLE:{{{Country|}}} {{#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> |
Latest revision as of 21:15, 22 May 2025
This is the "TestCountrySidebar" template, note this is used for testing the actual CountrySidebar template. It should be called in the following format:
{{TestCountrySidebar |Country= (full name, i.e. "Côte d'Ivoire") |Name= (name with restricted characters removed, i.e. "Côte dIvoire") |Type= |Topic Type= |Getting Started= |Records= |Background= |Cultural Groups= |Local Resources= |Topic= |Rating= |Start Date= |Start Circa= |Start Questionable= |Current= |End Date= |End Circa= |End Questionable= |Center= |Coordinates= |Population= |Languages= }}
Edit the page to see the template text.