Difference between revisions of "Template:Year"

From Wikispooks
Jump to navigation Jump to search
(set image property)
(Fix |image, which was showing but not setting in the RDF)
 
(16 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
|image= An image for the publication (Recommended, for example the cover if the publication is a book)
 
|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_alt              = Alt text for the image
|image_width = The default value is "250px"
+
|image_width = The default value is "300px"
 
|image_caption      = Caption for the image
 
|image_caption      = Caption for the image
 
|{{GREEN|constitutes}}  = What the year constitutes ''([[Property:Constitutes]])''<!--
 
|{{GREEN|constitutes}}  = What the year constitutes ''([[Property:Constitutes]])''<!--
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>[[{{#expr: {{PAGENAME}}-10}}]] < [[{{#expr: {{PAGENAME}}-9}}]] < [[{{#expr: {{PAGENAME}}-8}}]] < '''[[{{#expr: {{PAGENAME}}-7}}]] < [[{{#expr: {{PAGENAME}}-6}}]] < <big>[[{{#expr: {{PAGENAME}}-5}}]] < [[{{#expr: {{PAGENAME}}-4}}]] <[[{{#expr: {{PAGENAME}}-3}}]] < [[{{#expr: {{PAGENAME}}-2}}]] < <big>[[{{#expr: {{PAGENAME}}-1}}]] < {{PAGENAME}} > [[{{#expr: {{PAGENAME}}+1}}]]</big> > [[{{#expr: {{PAGENAME}}+2}}]] > [[{{#expr: {{PAGENAME}}+3}}]] > [[{{#expr: {{PAGENAME}}+4}}]] > [[{{#expr: {{PAGENAME}}+5}}]]</big> > [[{{#expr: {{PAGENAME}}+6}}]] > [[{{#expr: {{PAGENAME}}+7}}]]''' > [[{{#expr: {{PAGENAME}}+8}}]] > [[{{#expr: {{PAGENAME}}+9}}]] > [[{{#expr: {{PAGENAME}}+10}}]]</center>{{Infobox
+
</poem></noinclude><includeonly><center>[[{{#expr: {{PAGENAME}}-10}}]] < [[{{#expr: {{PAGENAME}}-9}}]] < [[{{#expr: {{PAGENAME}}-8}}]] < '''[[{{#expr: {{PAGENAME}}-7}}]] < [[{{#expr: {{PAGENAME}}-6}}]] < <big>[[{{#expr: {{PAGENAME}}-5}}]] < [[{{#expr: {{PAGENAME}}-4}}]] <[[{{#expr: {{PAGENAME}}-3}}]] < [[{{#expr: {{PAGENAME}}-2}}]] < <big>[[{{#expr: {{PAGENAME}}-1}}]] < {{PAGENAME}} > [[{{#expr: {{PAGENAME}}+1}}]]</big> > [[{{#expr: {{PAGENAME}}+2}}]] > [[{{#expr: {{PAGENAME}}+3}}]] > [[{{#expr: {{PAGENAME}}+4}}]] > [[{{#expr: {{PAGENAME}}+5}}]]</big> > [[{{#expr: {{PAGENAME}}+6}}]] > [[{{#expr: {{PAGENAME}}+7}}]]''' > [[{{#expr: {{PAGENAME}}+8}}]] > [[{{#expr: {{PAGENAME}}+9}}]] > [[{{#expr: {{PAGENAME}}+10}}]]</center><hr/>{{Infobox
| above  = <span class="fn">{{Infobox class icon}}&nbsp;{{{name|{{PAGENAME}}}}}</span>{{#if: {{{glossary|}}}|&nbsp;[[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">[[image:Decade.png|26px|link=Decade]]&nbsp;<small>(&nbsp;[[{{#sub: {{PAGENAME}}|0|-1}}0s]]:&nbsp;)</small>&nbsp;&nbsp;&nbsp;&nbsp;{{Infobox class icon}}&nbsp;{{{name|{{PAGENAME}}}}}</span>{{#if: {{{glossary|}}}|&nbsp;[[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|}}}
 
|historycommons = {{{historycommons|}}}
 
|historycommons = {{{historycommons|}}}
Line 30: Line 30:
 
|youtube = {{{youtube|}}}
 
|youtube = {{{youtube|}}}
 
}}
 
}}
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}}
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=300px|alt={{{image_alt|}}}}}
 
| caption  = {{{image_caption|}}}
 
| caption  = {{{image_caption|}}}
}}[[Has image::{{{image|}}}| ]][[Has image2::{{{image|}}}| ]][[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Year}}{{Description|{{{description|}}}}}[[Category:Years]]</includeonly>
+
| label123    = Subpage{{MaybePlural|{{{SubpageList|}}}}}
 +
| data123    = {{SubpageList}}
 +
|below ={{{description|}}}
 +
}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::Image:{{{image|}}}| ]]}}[[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Year}}[[Category:Years]]</includeonly>

Latest revision as of 14:05, 18 December 2019

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template provides a standard format for year pages.

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 parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

See year for a list of pages that use this template.

Parameters are optional, but recommended, especially description and image.

{{Year
|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 "300px"
|image_caption = Caption for the image
|constitutes = What the year constitutes (Property:Constitutes)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
}}