Difference between revisions of "Template:HelpSection"
Jump to navigation
Jump to search
(Update to use Template:Site Banner) |
(Set Property:Has image as per image param) |
||
Line 1: | Line 1: | ||
<noinclude>[[Category:Semantic Templates]][[Category:WikiSpooks Templates]]'''This started as just displaying an icon at the top of help sections, but is evolving into a semantic template.'''<br/> | <noinclude>[[Category:Semantic Templates]][[Category:WikiSpooks Templates]]'''This started as just displaying an icon at the top of help sections, but is evolving into a semantic template.'''<br/> | ||
− | Currently this does | + | Currently this does 5 things: |
# Makes an 100px icon on the right. The parameters is 'image' to chance to vary the icon from the default help icon. | # Makes an 100px icon on the right. The parameters is 'image' to chance to vary the icon from the default help icon. | ||
+ | # Sets [[Property::Has image]] and [[Property::Has image2]] | ||
# Includes [[Template:Site Banner]] so that template can display atop all Help Section pages. | # Includes [[Template:Site Banner]] so that template can display atop all Help Section pages. | ||
# Sets [[Property:Has objectClass2|Has objectClass2]]="WikispooksPage", for display of changes on the main page | # Sets [[Property:Has objectClass2|Has objectClass2]]="WikispooksPage", for display of changes on the main page | ||
Line 7: | Line 8: | ||
<br/> | <br/> | ||
Usage:<br/> | Usage:<br/> | ||
− | :{{t|<nowiki>{{HelpSection}}</nowiki>}} or {{t|<nowiki>{{HelpSection|image=my_help_image.jpg}}</nowiki>}} or {{t|<nowiki>{{HelpSection|image=my_help_image.jpg|link=my_link_page}}</nowiki>}}</noinclude><includeonly>{{Site Banner}}{{#if: {{{image|}}} | [[image:{{{image|}}}|100px|link={{{link|}}}|right]] | [[image:Help.png|100px|link={{{link|}}}|right]] }}[[Has objectClass2::WikispooksPage| ]]{{SMWDefaultMarkup}}</includeonly> | + | :{{t|<nowiki>{{HelpSection}}</nowiki>}} or {{t|<nowiki>{{HelpSection|image=my_help_image.jpg}}</nowiki>}} or {{t|<nowiki>{{HelpSection|image=my_help_image.jpg|link=my_link_page}}</nowiki>}}</noinclude><includeonly>{{Site Banner}}{{#if: {{{image|}}} | [[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]][[image:{{{image|}}}|100px|link={{{link|}}}|right]] | [[image:Help.png|100px|link={{{link|}}}|right]] }}[[Has objectClass2::WikispooksPage| ]]{{SMWDefaultMarkup}}</includeonly> |
Revision as of 15:57, 6 January 2018
This started as just displaying an icon at the top of help sections, but is evolving into a semantic template.
Currently this does 5 things:
- Makes an 100px icon on the right. The parameters is 'image' to chance to vary the icon from the default help icon.
- Sets Has image and Has image2
- Includes Template:Site Banner so that template can display atop all Help Section pages.
- Sets Has objectClass2="WikispooksPage", for display of changes on the main page
- Calls Template:SMWDefaultMarkup to sef default SMW properties such as page size, name etc.
Usage:
- {{HelpSection}} or {{HelpSection|image=my_help_image.jpg}} or {{HelpSection|image=my_help_image.jpg|link=my_link_page}}