Difference between revisions of "Template:Country topics/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(Replaced with current live code)
imported>Sardanaphalus
("below" formatting)
Line 7: Line 7:
 
|liststyle = background:transparent;
 
|liststyle = background:transparent;
  
|title =
+
  <!---------------------- Titlebar ----------------------->
  <!-------------------------------------------------------
+
|title = <!--
    ----------- Name ------------
+
------Name:-->{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
-->{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
+
                | [[{{{country|{{{territory|{{{region}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;|{{{titlename|{{{country|{{{territory|{{{region|<span style="white-space:nowrap;color:red;">[Required parameter missing!]</span>}}}}}}}}}}}}&nbsp;<!--(space between Name and "topics" word (if used))
    |[[{{{country|{{{territory|{{{region}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;<!--
+
            -->}}<!--
  -->|{{{titlename|{{{country|{{{territory|{{{region|<!--
+
--"topics":-->{{#if:{{{_notopicsword|}}} | |{{#ifexist:List of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related topics|[[List of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related topics|topics]]|topics}}}}
      --><span style="white-space:nowrap;color:red;">[Required parameter missing!]</span><!--
 
  -->}}}<!------->}}}<!----->}}}<!------->}}}&nbsp;<!--(space between Name and "topics" (if not suppressed))
 
-->}}<!--
 
  
    ---------- "topics" ----------
+
  <!------------------ Image (optional) ------------------->
-->{{#if:{{{_notopicsword|}}} | | {{#ifexist:List of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related topics|[[List of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related topics|topics]]|topics}}}}
 
 
 
  <!-------------------------------------------------------
 
    Image (optional)
 
  -------------------------------------------------------->
 
 
|imagestyle = {{{imagestyle|}}}
 
|imagestyle = {{{imagestyle|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
  
 
+
  <!-------------- "above" line (optional) ---------------->
  <!-------------------------------------------------------
 
    "above" line (optional)
 
  -------------------------------------------------------->
 
 
|abovestyle = {{{abovestyle|}}}
 
|abovestyle = {{{abovestyle|}}}
 
|above = {{{above|}}}{{{addtoabove|}}}
 
|above = {{{above|}}}{{{addtoabove|}}}
  
 
+
  <!------(optional custom group 1)------->
  <!------ Optional custom group 1 ------->
 
 
|group1style = {{{custom1style|}}}
 
|group1style = {{{custom1style|}}}
 
|group1 = {{{custom1|}}}
 
|group1 = {{{custom1|}}}
Line 40: Line 28:
 
|list1 = {{{list1|}}}
 
|list1 = {{{list1|}}}
  
 
+
  <!--===================================================
  <!--===================================================--
+
                          HISTORY
      HISTORY
+
    ===================================================-->
  ---===================================================-->
 
 
 
 
|group{{#if:{{{list1|}}}|2|1}} = <!---(#if: is required to ensure there's a list1 so that any image included is displayed (see {{Navbox}})--->
 
|group{{#if:{{{list1|}}}|2|1}} = <!---(#if: is required to ensure there's a list1 so that any image included is displayed (see {{Navbox}})--->
 
     <!---(groupname not displayed unless history provided)--->
 
     <!---(groupname not displayed unless history provided)--->
Line 51: Line 37:
 
     | History
 
     | History
 
     }}
 
     }}
 
 
|list{{#if:{{{list1|}}}|2|1}}style = background:transparent;<!--(for the sake of accessibility, ensure list's background is transparent regardless of whether it's an odd or even-numbered list)-->
 
|list{{#if:{{{list1|}}}|2|1}}style = background:transparent;<!--(for the sake of accessibility, ensure list's background is transparent regardless of whether it's an odd or even-numbered list)-->
 
|list{{#if:{{{list1|}}}|2|1}} = {{{history|}}}<!--(see group# comment above)-->
 
|list{{#if:{{{list1|}}}|2|1}} = {{{history|}}}<!--(see group# comment above)-->
  
 
+
  <!------(optional custom group 2)------->
  <!------ Optional custom group 2 ------->
 
 
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}}style = {{{custom2style|}}}
 
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}}style = {{{custom2style|}}}
 
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{custom2|}}}
 
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{custom2|}}}
Line 62: Line 46:
 
|list{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{list2|}}}
 
|list{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{list2|}}}
  
 
+
  <!--===================================================
  <!--===================================================--
+
                  GEOGRAPHY / Subdivisions
      GEOGRAPHY
+
    ===================================================-->
          (Subdivisions)
 
  ---===================================================-->
 
 
 
 
|group{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
 
|group{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
 
     <!---(groupname not displayed unless geography and/or subdivisions provided)--->
 
     <!---(groupname not displayed unless geography and/or subdivisions provided)--->
Line 74: Line 55:
 
       | Geography
 
       | Geography
 
     }}
 
     }}
 
 
|list{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
 
|list{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
 
     {{#if:{{{geography|}}}{{{subdivisions|}}}
 
     {{#if:{{{geography|}}}{{{subdivisions|}}}
Line 94: Line 74:
 
     }}
 
     }}
  
 
+
  <!------(optional custom group 3)------->
  <!------ Optional custom group 3 ------->
 
 
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}}style = {{{custom3style|}}}
 
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}}style = {{{custom3style|}}}
 
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{custom3|}}}
 
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{custom3|}}}
Line 101: Line 80:
 
|list{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{list3|}}}
 
|list{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{list3|}}}
  
 
+
  <!--===================================================
  <!--===================================================--
+
              POLITICS / Government / Military
      Politics
+
    ===================================================-->
          (Government)
 
          (Military)
 
  ---===================================================-->
 
 
 
 
|group{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} = <!---(not displayed unless politics and/or government and/or military provided)--->
 
|group{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} = <!---(not displayed unless politics and/or government and/or military provided)--->
 
     {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
 
     {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
Line 115: Line 90:
 
         }}
 
         }}
 
     }}
 
     }}
 
 
|list{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} =
 
|list{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} =
 
     {{#if:{{{politics|}}}{{{government|}}}{{{military|}}}
 
     {{#if:{{{politics|}}}{{{government|}}}{{{military|}}}
Line 137: Line 111:
 
     }}
 
     }}
  
 
+
  <!------(optional custom group 4)------->
  <!------ Optional custom group 4 ------->
 
 
|group7style = {{{custom4style|}}}
 
|group7style = {{{custom4style|}}}
 
|group7 = {{{custom4|}}}
 
|group7 = {{{custom4|}}}
Line 144: Line 117:
 
|list7 = {{{list4|}}}
 
|list7 = {{{list4|}}}
  
 
+
  <!--===================================================
  <!--===================================================--
+
            ECONOMY / Infrastructure / Transport
      ECONOMY
+
    ===================================================-->
          (Infrastructure)
 
          (Transport)
 
  ---===================================================-->
 
 
 
 
|group8 = <!---(not displayed unless economy, infrastructure and/or transport provided)--->
 
|group8 = <!---(not displayed unless economy, infrastructure and/or transport provided)--->
 
     {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
     {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
Line 156: Line 125:
 
       | Economy
 
       | Economy
 
     }}
 
     }}
 
 
|list8 =
 
|list8 =
 
     {{#if:{{{economy|}}}{{{infrastructure|}}}{{{transport|}}}
 
     {{#if:{{{economy|}}}{{{infrastructure|}}}{{{transport|}}}
Line 179: Line 147:
 
     }}
 
     }}
  
 
+
  <!------(optional custom group 5)------->
  <!------ Optional custom group 5 ------->
 
 
|group9style = {{{custom5style|}}}
 
|group9style = {{{custom5style|}}}
 
|group9 = {{{custom5|}}}
 
|group9 = {{{custom5|}}}
Line 186: Line 153:
 
|list9 = {{{list5|}}}
 
|list9 = {{{list5|}}}
  
 
+
  <!--===================================================
  <!--===================================================--
+
     SOCIETY/CULTURE / Demographics / Religion / Symbols
      CULTURE            or     SOCIETY
+
    ===================================================-->
          (Demographics)              (Culture)
 
          (Religion)                  (Demographics)
 
          (Symbols)                  (Religion)
 
                                      (Symbols)
 
  ---===================================================-->
 
 
 
 
|group10 =
 
|group10 =
 
     <!----If society provided, groupname is "Society":---->
 
     <!----If society provided, groupname is "Society":---->
Line 216: Line 177:
 
       }}
 
       }}
 
     }}
 
     }}
 
 
|list10 =
 
|list10 =
 
     {{Navbox |child
 
     {{Navbox |child
Line 256: Line 216:
 
     }}
 
     }}
  
 
+
  <!------(optional custom group 6)------->
  <!------ Optional custom group 6 ------->
 
 
|group11style = {{{custom6style|}}}
 
|group11style = {{{custom6style|}}}
 
|group11 = {{{custom6|}}}
 
|group11 = {{{custom6|}}}
Line 263: Line 222:
 
|list11 = {{{list6|}}}
 
|list11 = {{{list6|}}}
  
 
+
  <!------(optional custom group 7)------->
  <!------ Optional custom group 7 ------->
 
 
|group12style = {{{custom7style|}}}
 
|group12style = {{{custom7style|}}}
 
|group12 = {{{custom7|}}}
 
|group12 = {{{custom7|}}}
Line 271: Line 229:
  
  
  <!------ Optional custom group 8 ------->
+
  <!------(optional custom group 8)------->
 
|group13style = {{{custom8style|}}}
 
|group13style = {{{custom8style|}}}
 
|group13 = {{{custom8|}}}
 
|group13 = {{{custom8|}}}
Line 277: Line 235:
 
|list13 = {{{list8|}}}
 
|list13 = {{{list8|}}}
  
 
+
  <!--===================================================
 
+
              Outline / Index / Bibliography
  <!-------------------------------------------------------
+
      Book / Category / Commons / Portal / WikiProject
  "below" section  Outline, Index, Bibliography then
+
    ===================================================-->
                    Book, Category, Commons, Portal,
 
                    WikiProject links (if available /
 
                    provided (Commons) / not suppressed)
 
  -------------------------------------------------------->
 
 
|belowstyle = {{{belowstyle|}}}
 
|belowstyle = {{{belowstyle|}}}
 
|below =
 
|below =
 
     {{#if:{{{_nobelow|}}} |<!--then omit "below" line, else:-->
 
     {{#if:{{{_nobelow|}}} |<!--then omit "below" line, else:-->
 
 
     | {{#if:{{{below|}}} |<!--then use-->{{{below}}}<!--line provided, else:-->
 
     | {{#if:{{{below|}}} |<!--then use-->{{{below}}}<!--line provided, else:-->
 +
        | {{Navbox |child |bodyclass=hlist |bodystyle=background:transparent; |liststyle=padding:0.15em;line-height:1.2em;
  
        | {{Navbox |child |bodyclass=hlist |bodystyle=background:transparent;
+
            <!-------- Outline/Index/Bibliography -------->
 
           |list1 = <!--
 
           |list1 = <!--
            --------------------------------------
 
            Outline, Index, Bibliography links
 
            --------------------------------------
 
 
             -->{{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             -->{{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                 |* [[Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Outline]]
 
                 |* [[Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Outline]]
Line 310: Line 261:
 
                 |* [[Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Bibliography]]
 
                 |* [[Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Bibliography]]
 
               }}
 
               }}
 +
 +
            <!----- Book/Cat/Commons/Portal/WikiProj ----->
 
           |list2style = background:transparent;font-weight:bold;
 
           |list2style = background:transparent;font-weight:bold;
 
           |list2 = <!--
 
           |list2 = <!--
            ----------------------------------------------
 
            Book, Category, Commons, Portal, WikiProject
 
            ----------------------------------------------
 
 
             -->{{#ifexist:Book:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             -->{{#ifexist:Book:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                 |* <!--{{icon|Book}}--> [[Book:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Book]]
 
                 |* <!--{{icon|Book}}--> [[Book:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Book]]
Line 330: Line 280:
 
                 |* <!--{{icon|WikiProject}}--> [[Wikipedia:WikiProject {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}|WikiProject]]
 
                 |* <!--{{icon|WikiProject}}--> [[Wikipedia:WikiProject {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}|WikiProject]]
 
               }}
 
               }}
      <!-- |list3 = <!--
+
 
            -----------------------
+
            <!----------- addtobelow (optional) ---------->
            addtobelow (optional)
+
      <!-- |list3 = {{#if:{{{addtobelow|}}} |{{{addtobelow}}} }} -->
            -----------------------
 
            -->{{#if:{{{addtobelow|}}} |{{{addtobelow}}} }}
 
 
           }}<!--
 
           }}<!--
 
+
     -->}}<!--
     -->}}<!--(end #if:{{{below|}}})
+
  -->}}
 
 
  -->}}<!--(end #if:{{{_nobelow|}}})-->
 
 
 
  
 
}}
 
}}

Revision as of 12:48, 16 March 2014

Lua error in Module:Navbar at line 62: Invalid title {{{titlename}}} topics.