Template:TestCountrySidebar: Difference between revisions
No edit summary |
(Fixed Category:Template from being trascluded.) |
||
| (7 intermediate revisions by 2 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= (full name, i.e. "Côte d'Ivoire") | |Country= (full name, i.e. "Côte d'Ivoire") | ||
|Name= (name with restricted characters removed, i.e. "Côte dIvoire") | |Name= (name with restricted characters removed, i.e. "Côte dIvoire") | ||
| Line 80: | Line 80: | ||
--><!--{{#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> }}--> | ||
{| 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)----------------------> | ||
| Line 553: | Line 552: | ||
| {{#ifexpr:{{#arraysize:localResources}}<4 | |style="column-count:2; -webkit-column-count:2; -moz-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|}}}]]<!-- | -->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!-- | ||
-->{{DISPLAYTITLE:{{{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|}}} | -->__NOCACHE__{{#switch: {{{Getting Started|}}}{{{Records|}}}{{{Background|}}}{{{Cultural Groups|}}}{{{Local Resources|}}} | ||
| <!-- Case for Country page (i.e. no Topic) --> | | <!-- Case for Country page (i.e. no Topic) --> | ||
| Line 564: | Line 567: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude>[[Category:Template]]</noinclude> | |||
Latest revision as of 20: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.