Difference between revisions of "Template:Decade"
(test) |
|||
Line 1: | Line 1: | ||
<noinclude>{{WStemplate | <noinclude>{{WStemplate | ||
|categories = Object Templates | |categories = Object Templates | ||
− | |summary = This template provides a standard format for decade pages. | + | |summary = This template provides a standard format for decade pages. It should only be used on pages of the name NNNNs (e.g. [[1970s]]) |
|object = decade | |object = decade | ||
}} | }} | ||
Line 16: | Line 16: | ||
|{{ORANGE|wikipedia_protection}} = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])'' | |{{ORANGE|wikipedia_protection}} = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])'' | ||
}} | }} | ||
− | </poem></noinclude><includeonly><center>{{#substring: {{PAGENAME}}|0|-1}}} | + | </poem></noinclude><includeonly><center> |
+ | {{#expr: 0+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 1+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 2+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 3+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 4+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 5+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 6+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 7+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 8+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | {{#expr: 9+{{#substring: {{PAGENAME}}|0|-1}}}}} | ||
+ | </center>{{Infobox | ||
| above = <span class="fn">{{Infobox class icon}} {{{name|{{PAGENAME}}}}}</span>{{#if: {{{glossary|}}}| [[image:Glossary.png|link=WikiSpooks:Glossary|26px]]}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|https://en.wikipedia.org/wiki/{{PAGENAME}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|https://en.wikipedia.org/wiki/{{PAGENAME}}|Has wikipediaPage|wikipedia-icon.png}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}{{External icons | | above = <span class="fn">{{Infobox class icon}} {{{name|{{PAGENAME}}}}}</span>{{#if: {{{glossary|}}}| [[image:Glossary.png|link=WikiSpooks:Glossary|26px]]}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|https://en.wikipedia.org/wiki/{{PAGENAME}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|https://en.wikipedia.org/wiki/{{PAGENAME}}|Has wikipediaPage|wikipedia-icon.png}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}{{External icons | ||
|facebook = {{{facebook|}}} | |facebook = {{{facebook|}}} | ||
Line 32: | Line 43: | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}} | ||
| caption = {{{image_caption|}}} | | caption = {{{image_caption|}}} | ||
− | }}[[Start::1 January {{#substring: {{PAGENAME}}|0|-1}}]][[End::31 December {{#substring: {{PAGENAME}}|0|-1}}]][[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Decade}}{{Description|{{{description|}}}}}[[Category:Decades]]</includeonly> | + | }}[[Start::1 January {{#substring: {{PAGENAME}}|0|-1}}| ]][[End::31 December {{#substring: {{PAGENAME}}|0|-1}}| ]][[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Decade}}{{Description|{{{description|}}}}}[[Category:Decades]]</includeonly> |
Revision as of 04:59, 15 September 2016
![]() |
Concept • Document • Employment • Event • Group • Person • Publication • Website |
This template provides a standard format for decade pages. It should only be used on pages of the name NNNNs (e.g. 1970s)
Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameterswere formerly available, but have been upgraded. Some may still work, but do not use these.
See decade for a list of pages that use this template.
Parameters are optional, but recommended, especially description and image.
{{Decade
|description = <500 word summary (Property:Description)
|image= An image for the publication (Recommended, for example the cover if the publication is a book)
|image_alt = Alt text for the image
|image_width = The default value is "250px"
|image_caption = Caption for the image
|constitutes = What the decade constitutes (Property:Constitutes)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
}}