Template:TestCountrySidebar: Difference between revisions
(Fixed Category:Template from being trascluded.) |
(Created page with "<noinclude> This is the "CountrySidebar" template. It should be called in the following format: <pre> {{CountrySidebar |Country= |Name= |Type= |Topic_Type= |Start_Date= |Curr...") |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the " | This is the "CountrySidebar" template. It should be called in the following format: | ||
<pre> | <pre> | ||
{{ | {{CountrySidebar | ||
|Country= | |Country= | ||
|Name= | |Name= | ||
|Type= | |Type= | ||
| | |Topic_Type= | ||
| | |Start_Date= | ||
|Current= | |Current= | ||
| | |End_Date= | ||
|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 | |||
|Country=String | |Country=String | ||
|Name=String | |Name=String | ||
|Type=String | |Type=String | ||
|Topic_Type=String | |Topic_Type=String | ||
|Start_Date=Date | |Start_Date=Date | ||
|Current=String | |Current=String | ||
|End_Date=Date | |End_Date=Date | ||
|Region=String | |Region=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 | ||
|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|}}} | ||
|Start_Date={{{Start Date|}}} | |Start_Date={{{Start Date|}}} | ||
|Current={{{Current|}}} | |Current={{{Current|}}} | ||
|End_Date={{{End Date|}}} | |End_Date={{{End Date|}}} | ||
|Region={{Region lookup| {{{Country|}}} }} | |Region={{Region 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}} }} | <!--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| | ||
<ul style="margin-top:0px"> | |||
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Namibia Genealogy|[[Afrikaans Genealogical Word List|Afrikaans]]|}} }}</li> | |||
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|South Africa Genealogy|[[Afrikaans Genealogical Word List|Afrikaans]]|}} }}</li> | |||
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Algeria Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li> | |||
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Bahrain Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</li> | |||
<li>{{#iferror: {{#ifeq:{{PAGENAME}}|Chad Genealogy|[[Arabic Genealogical Word List|Arabic]]|}} }}</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|}}} | <ul style="margin-top:0px"> | ||
{{#ifexist:{{{Country|}}} | <li>{{#ifexist:{{{Country|}}} Indigenous Peoples|[[{{{Country|}}} Indigenous Peoples|Indigenous Peoples ]]|}}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#ifexist:{{{Country|}}} Cultural Groups|[[{{{Country|}}} Cultural Groups|Cultural Groups]]|}}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Australia Genealogy|[[Chinese in Australia]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Belize Genealogy|[[Chinese in Belize]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Canada Genealogy|[[Canada Inuit]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Canada Genealogy|[[Chinese in Canada]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Cuba Genealogy|[[Chinese in Cuba]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Dominican Republic Genealogy|[[Chinese in the Dominican Republic]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Finland Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Guyana Genealogy|[[Chinese in Guyana]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Haiti Genealogy|[[Chinese in Haiti]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Jamaica Genealogy|[[Chinese in Jamaica]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Mexico Genealogy|[[Chinese in Mexico]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|New Zealand Genealogy|[[Chinese in New Zealand]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Norway Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Panama Genealogy|[[Chinese in Panama]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Peru Genealogy|[[Chinese in Peru]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Philippines Genealogy|[[Chinese in the Philippines]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Puerto Rico Genealogy|[[Chinese in Puerto Rico]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Russia Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Scotland Genealogy|[[Scots Irish]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Singapore Genealogy|[[Chinese in Singapore]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Suriname Genealogy|[[Chinese in Suriname]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Sweden Genealogy|[[Sami People|Sami Peoples]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <li>{{#iferror: {{#ifeq:{{PAGENAME}}|Trinidad and Tobago Genealogy|[[Chinese in Trinidad and Tobago]]|}} }}</li>, | ||
{{#iferror: {{#ifeq:{{ | <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:// | <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 | | {{#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 | | {{#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 | | {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2"}}| | ||
{{#arrayprint:background|}} | {{#arrayprint:background|}} | ||
|- | |- | ||
<!--------------------------------------Language Word Lists (Section)------------------------> | <!--------------------------------------Language Word Lists (Section?)------------------------> | ||
| style="text-align:center; background: #C8C8C8; font-size:14pt"|'''{{{Country|}}} Genealogical Word Lists''' | |||
|- | |- | ||
| {{#ifexpr:{{#arraysize: | | {{#ifexpr:{{#arraysize:background}}<4 | |style="column-count:2"}}| | ||
{{#arrayprint:languagewordlists|}} | {{#arrayprint:languagewordlists|}} | ||
|- | |- | ||
<!--------------------------------------Cultural Groups Section-----------------------------> | <!--------------------------------------Cultural Groups Section-----------------------------> | ||
| 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"}}| | ||
{{#arrayprint:culturalGroups|}} | {{#arrayprint:culturalGroups|}} | ||
|- | |- | ||
<!--------------------------------------------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"}}| | ||
{{#arrayprint:localResources|}} | {{#arrayprint:localResources|}} | ||
|} | |} | ||
[[Category:CountrySidebars]] [[Category:{{{Country|}}}]] {{#ifeq:{{{Type|}}}|Topic| [[Category:{{{Type|}}}]] }} | |||
{{DISPLAYTITLE:{{{Country|}}} {{#ifeq:{{{Type|}}}|Country|Genealogy|{{{Topic Type|}}} }}}} | |||
__NOCACHE__ | |||
</includeonly> | </includeonly> | ||
Revision as of 15:17, 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.