Difference between revisions of "Template:List of sovereign states strapline"

From blackwiki
Jump to navigation Jump to search
imported>Ludde23
imported>Plastikspork
(Nested noinclude tags)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div>
+
{{List of sovereign states strapline/box
'''[[Lists of sovereign states by year|Sovereign states by year]]'''{{·}}
+
| year = {{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0
[[List of sovereign states in <!--
+
  |{{#expr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} * -1}} BC
   --><includeonly>{{#expr:</includeonly>{{{1}}}-1<includeonly>}}</includeonly>]]{{·}}
+
  |{{{year|{{{1|{{CURRENTYEAR}}}}}}}}
[[<includeonly>{{{1}}}|</includeonly>Events of {{{1}}}]]{{·}}
+
  }}
[[List of sovereign states in <!--
+
| prev_year = {{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0
  --><includeonly>{{#expr:</includeonly>{{{1}}}+1<includeonly>}}</includeonly>]]
+
  |{{#expr:({{{year|{{{1|{{CURRENTYEAR}}}}}}}} * -1) + 1}} BC
</div><noinclude>
+
  |{{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} = 1
<br/>{{intricate template}}
+
    |1 BC
 +
    |{{#expr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} - 1}}
 +
    }}
 +
  }}
 +
| next_year = {{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} = -1
 +
  |1
 +
   |{{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0
 +
    |{{#expr:({{{year|{{{1|{{CURRENTYEAR}}}}}}}} * -1) - 1}} BC
 +
    |{{#expr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} + 1}}
 +
    }}
 +
  }}
 +
| century  = {{Ordinal|{{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0|{{#expr:ceil (({{{year|{{{1|{{CURRENTYEAR}}}}}}}} * -1) / 100)}}|{{#expr:ceil ({{{year|{{{1|{{CURRENTYEAR}}}}}}}} / 100)}}}}}} century {{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0|BC}}
 +
| sort_year = {{#ifexpr:{{{year|{{{1|{{CURRENTYEAR}}}}}}}} < 0
 +
  |-{{padleft:{{#expr:10000+{{{year|{{{1|{{CURRENTYEAR}}}}}}}} }}|5}}
 +
  |{{padleft:{{{year|{{{1|{{CURRENTYEAR}}}}}}}}|4}}
 +
  }}
 +
| _nocat    = <noinclude>true</noinclude>
 +
}}<noinclude>
 +
{{intricate template}}
 +
{{documentation|content=
 +
This template is designed to be used with List of sovereign states by year articles.
 +
 
 +
== Usage ==
 +
: <code>{{tld|{{BASEPAGENAME}}|YYYY}}</code> for years 1, 2, ..., present
 +
: <code>{{tld|{{BASEPAGENAME}}|-YYY}}</code> for years 1 BC, 2 BC, ...
 +
 
 +
== Example ==
 +
Use <code>{{tld|{{BASEPAGENAME}}|1848}}</code> in [[List of sovereign states in 1848]].
 +
 
 +
See what links to this template for live examples.
 +
 
 +
== Categories ==
 +
This template will automatically add the transcluding page to the following categories
 +
* <code><nowiki>[[Category:YYYY-related lists]]</nowiki></code>, if it exists, otherwise
 +
** <code><nowiki>[[Category:YYYY]]</nowiki></code>, plus
 +
** <code><nowiki>[[Category:YYY0s-related lists]]</nowiki></code>, if it exists
 +
* <code><nowiki>[[Category:Lists of sovereign states by year]]</nowiki></code>
 +
* <code><nowiki>[[Category:YYYY in international relations]]</nowiki></code>
 +
To disable this feature (for demonstration pages) use {{para|_nocat|true}}.
 +
 
 +
== See also ==
 +
* {{tl|SLBY}}
  
 
[[Category:Country templates| ]]
 
[[Category:Country templates| ]]
</noinclude>
+
}}</noinclude>
<includeonly>
 
[[Category:{{{1}}}|Sovereign states]]
 
[[Category:{{{1}}} in international relations|Sovereign states]]
 
[[Category:Lists of sovereign states by year|{{{1}}}]]</includeonly>
 

Latest revision as of 01:33, 27 April 2020

Sovereign states by year
List of sovereign states in 2024 Events of 2025 List of sovereign states in 2026
Template documentation

This template is designed to be used with List of sovereign states by year articles.

Usage

{{List of sovereign states strapline|YYYY}} for years 1, 2, ..., present
{{List of sovereign states strapline|-YYY}} for years 1 BC, 2 BC, ...

Example

Use {{List of sovereign states strapline|1848}} in List of sovereign states in 1848.

See what links to this template for live examples.

Categories

This template will automatically add the transcluding page to the following categories

  • [[Category:YYYY-related lists]], if it exists, otherwise
    • [[Category:YYYY]], plus
    • [[Category:YYY0s-related lists]], if it exists
  • [[Category:Lists of sovereign states by year]]
  • [[Category:YYYY in international relations]]

To disable this feature (for demonstration pages) use |_nocat=true.

See also