Template:CountrySidebar: Difference between revisions

From FamilySearch Wiki
(Swati genealogical word list doesn't exist yet; was showing a red link)
No edit summary
(13 intermediate revisions by 3 users not shown)
Line 14: Line 14:
|Local Resources=
|Local Resources=
|Topic=
|Topic=
|Rating=
|Start Date=
|Start Date=
|Start Circa=
|Start Circa=
Line 25: Line 26:
|Population=
|Population=
|Languages=
|Languages=
|WCAG=<Compliant,Non-compliant>
|WCAG_Notes=<Text>
|Content=<Standardized, Acceptable, In-Progress, Blank>
|Content_Notes=<Text>
|Date_Change=<YYYY-MM-DD>
|Importance=<Critical, Important, Standard, Low>
|Date_Ingest=<YYYY-MM-DD>
|AI_Notes=
}}
}}
</pre>
</pre>
Line 62: Line 55:
|Population=Integer
|Population=Integer
|Languages=List (,) of String
|Languages=List (,) of String
|WCAG=String
}}</noinclude><includeonly>{{#cargo_store:_table=CountrySidebars
|WCAG_Notes=String
|Content=String
|Content_Notes=String
|Date_Change=Date
|Importance=String
|Date_Ingest=Date
|AI_Notes=String
}}[[Category:Template]]</noinclude><includeonly>{{#cargo_store:_table=CountrySidebars
|ID={{{ID|}}}
|ID={{{ID|}}}
|Country={{{Country|}}}
|Country={{{Country|}}}
Line 95: Line 80:
|Coordinates={{{Coordinates|}}}
|Coordinates={{{Coordinates|}}}
|Population={{{Population|}}}
|Population={{{Population|}}}
|Languages={{{Languages|}}}
|Languages={{{Languages|}}} }}<!--
|WCAG={{{WCAG|}}}
|WCAG_Notes={{{WCAG_Notes|}}}
|Content={{{Content|}}}
|Content_Notes={{{Content_Notes|}}}
|Date_Change={{{Date_Change|}}}
|Importance={{{Importance|}}}
|Date_Ingest={{{Date_Ingest|}}}
|AI_Notes={{{AI_Notes|}}} }}<!--


--><!--{{#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}} }} |  | <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> }}-->
Line 111: Line 88:
{{#arraydefine:beginningResearch|
{{#arraydefine:beginningResearch|
<ul style="margin-top:0px">
<ul style="margin-top:0px">
<li>{{#ifexist:{{{Country|}}} Finding Town of Origin|[[{{{Country|}}} Finding Town of Origin|Finding Town of Origin]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Getting Started|[[{{{Country|}}} Getting Started|Getting Started]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Getting Started|[[{{{Country|}}} Getting Started|Getting Started]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Guided Research|[[{{{Country|}}} Guided Research|Guided Research]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Guided Research|[[{{{Country|}}} Guided Research|Guided Research]]|}}</li>,
Line 116: Line 94:
<li>{{#ifexist:{{{Country|}}} Record Finder|[[{{{Country|}}} Record Finder|Record Finder]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Record Finder|[[{{{Country|}}} Record Finder|Record Finder]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Research Tips and Strategies|[[{{{Country|}}} Research Tips and Strategies|Research Strategies]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Research Tips and Strategies|[[{{{Country|}}} Research Tips and Strategies|Research Strategies]]|}}</li>,
<li>{{#ifexist:{{{Country|}}} Finding Town of Origin|[[{{{Country|}}} Finding Town of Origin|Finding Town of Origin]]|}}</li>,
</ul>
</ul>
|,}}
|,}}
Line 222: Line 199:
{{#iferror: {{#ifeq:{{{Country|}}}|Morocco|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Morocco|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Oman|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Oman|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Palestine|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|State of Palestine|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|United Arab Emirates|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|United Arab Emirates|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Qatar|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Qatar|<li>[[Arabic Genealogical Word List|Arabic]]</li>,}} }}
Line 334: Line 311:
{{#iferror: {{#ifeq:{{{Country|}}}|Marshall Islands|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Marshall Islands|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Namibia|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Namibia|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Poland|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Slovakia|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Slovakia|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Switzerland|<li>[[German Genealogical Word List|German]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Switzerland|<li>[[German Genealogical Word List|German]]</li>,}} }}
Line 425: Line 401:
{{#iferror: {{#ifeq:{{{Country|}}}|Estonia|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Estonia|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Georgia (country)|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Georgia (country)|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Poland|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Kazakhstan|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Kazakhstan|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Kiribati|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Kiribati|<li>[[Russian Genealogical Word List|Russian]]</li>,}} }}
Line 482: Line 457:
{{#iferror: {{#ifeq:{{{Country|}}}|Sint Eustatius|<li>[[Spanish Genealogical Word List|Spanish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Sint Eustatius|<li>[[Spanish Genealogical Word List|Spanish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Easter Island|<li>[[Spanish Genealogical Word List|Spanish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Easter Island|<li>[[Spanish Genealogical Word List|Spanish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Eswatini|<li>[[Swati Genealogical Word List|Swati]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Sweden|<li>[[Swedish Genealogical Word List|Swedish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Sweden|<li>[[Swedish Genealogical Word List|Swedish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Thailand|<li>[[Thai Genealogical Word List|Thai]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Thailand|<li>[[Thai Genealogical Word List|Thai]]</li>,}} }}
Line 494: Line 470:
{{#iferror: {{#ifeq:{{{Country|}}}|Lebanon|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Lebanon|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|North Macedonia|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|North Macedonia|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Palestine|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|State of Palestine|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Syria|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Syria|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Romania|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
{{#iferror: {{#ifeq:{{{Country|}}}|Romania|<li>[[Turkish Genealogical Word List|Turkish]]</li>,}} }}
Line 591: Line 567:
|}
|}
<!--------------------------------------------Conditionals based on Type--------------------------------->
<!--------------------------------------------Conditionals based on Type--------------------------------->
{{#ifeq: {{{Type|}}} | Country |  
{{#ifeq: {{{Type|}}} | Country | {{Locality
{{Locality
|Name={{{Name|}}}
|Name={{#cargo_query:tables=CountrySidebars|fields=Name|where=_pageName='{{PAGENAME}}'|default=}}
|ID={{{ID|}}}
|ID={{#cargo_query:tables=CountrySidebars|fields=ID|where=_pageName='{{PAGENAME}}'|default=}}
|Level=0
|Level=0
|Country={{#cargo_query:tables=CountrySidebars|fields=Name|where=_pageName='{{PAGENAME}}'|default=}}
|Country={{{Name|}}}
|CountryID={{#cargo_query:tables=CountrySidebars|fields=ID|where=_pageName='{{PAGENAME}}'|default=}}
|CountryID={{{ID|}}}
}}
}} }}
}}
{{LanguageTranslation|{{{Country|}}}}}<!--
{{LanguageTranslation|{{{Country|}}}}}<!--
-->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!--
-->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!--
Line 610: Line 584:
  | #default =__FORCETOC__
  | #default =__FORCETOC__
}}{{#switch: {{{Type|}}}
}}{{#switch: {{{Type|}}}
  | Country = {{Boost-200}} [[Category:Countries]]
  | Country = {{Boost-200}}
  | Topic = {{Boost-150}}
  | Topic = {{Boost-150}}
  |  
  |  
}}{{Rating
|WCAG={{{WCAG|}}}
|WCAG_Notes={{{WCAG_Notes|}}}
|Content={{{Content|}}}
|Content_Notes={{{Content_Notes|}}}
|Date_Change={{{Date_Change|}}}
|Importance={{{Importance|}}}
|Date_Ingest={{{Date_Ingest|}}}
|AI_Notes={{{AI_Notes|}}}
}}
}}
</includeonly>
</includeonly>

Revision as of 08:48, 16 January 2025

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

{{CountrySidebar
|ID=                 (FamilySearch Locality ID Number)
|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. This template defines the table "CountrySidebars". View table. A replacement table has been generated for this table; View replacement table.