Template:TestCountrySidebar: Difference between revisions
(Fixed Category:Template from being trascluded.) |
m (Protected "Template:TestCountrySidebar" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
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 "TestCountrySidebar" template, note this is used for testing the actual [[Template:CountrySidebar|CountrySidebar]] template. It should be called in the following format: | ||
<pre> | <pre> | ||
{{ | {{CountrySidebar | ||
|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 552: | Line 553: | ||
| {{#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|}} | ||
| | |}<!-- | ||
-->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!-- | -->[[Category:CountrySidebars]] [[Category:{{{Country|}}}]]<!-- | ||
-->{{DISPLAYTITLE:{{{Country|}}} {{# | -->{{DISPLAYTITLE:{{{Country|}}} {{#ifeq:{{{Type|}}}|Country|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 567: | Line 564: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
Revision as of 13:10, 29 October 2024
This is the "TestCountrySidebar" template, note this is used for testing the actual CountrySidebar template. It should be called in the following format:
{{CountrySidebar
|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.