Difference between revisions of "Template:Year"

From Wikispooks
Jump to navigation Jump to search
(extra params)
(image params)
Line 8: Line 8:
 
{{Year
 
{{Year
 
|description      = <500 word summary ''([[Property:Description]])''
 
|description      = <500 word summary ''([[Property:Description]])''
|{{GREEN|constitutes}} = What the document constitutes ''([[Property:Constitutes]])''<!--
+
|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
 +
|{{GREEN|constitutes}} = What the document constitutes ''([[Property:Constitutes]])''<!--
 
|{{GREEN|ON_constitutes}}  = What the document ON constitutes ''([[Property:ON_constitutes]])'' -->
 
|{{GREEN|ON_constitutes}}  = What the document ON constitutes ''([[Property:ON_constitutes]])'' -->
 
|{{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]])''
Line 26: Line 30:
 
|youtube = {{{youtube|}}}
 
|youtube = {{{youtube|}}}
 
}}
 
}}
 +
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}}
 +
| caption  = {{{image_caption|}}}
 
}}[[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Year}}{{Description|{{{description|}}}}}[[Category:Years]]</includeonly>
 
}}[[Has wikipediaPage2::https://en.wikipedia.org/wiki/{{PAGENAME}}| ]]{{SMWObjectHeader|Year}}{{Description|{{{description|}}}}}[[Category:Years]]</includeonly>

Revision as of 18:28, 18 August 2016

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.

The parameter is optional, but recommended.

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