Difference between revisions of "Template:Skin-specific Variables"

From LongJump Support Wiki
imported>Aeric
 
imported>Aeric
Line 18: Line 18:
| colspan="4" style="border-top-style:none" align="center"| '''Booleans'''
| colspan="4" style="border-top-style:none" align="center"| '''Booleans'''
|-
|-
| '''ShowWhitepapers''' || Show whitepapers?<br>(All say "LongJump".) || {{ShowWhitepapers}} (empty=false) || <tt><nowiki>{{#if {{ShowWhitepapers}} | ...}}</nowiki></tt>
| '''ShowWhitepapers''' || Show whitepapers? || {{ShowWhitepapers}} (empty=false) || <tt><nowiki>{{#if {{ShowWhitepapers}} | ...}}</nowiki></tt>
|-
|-
| '''ShowOutlookSync''' || Show info related to Outlook Sync & Email Edition Plugin? || {{ShowOutlookSync}} (empty=false) || <tt><nowiki>{{#if {{ShowOutlookSync}} | ...}} </nowiki></tt>
| '''ShowOutlookSync''' || Show info related to Outlook Sync & Email Edition Plugin? || {{ShowOutlookSync}} (empty=false) || <tt><nowiki>{{#if {{ShowOutlookSync}} | ...}} </nowiki></tt>

Revision as of 00:57, 29 June 2011

Variables and Their Usage

These variables are defined for each skin in LocalSettings.php.
They are case-insensitive.

Variable Name Definition Value in Current Domain Usage
Skin Abbreviated name LJ {{#if {{Skin}}|name|...|...else...}}
BrandLabel Label used in GUI
(Eclipse, Outlook,...)
LongJump {{BrandLabel}}
EnterpriseBrand Name of the platform LongJump Platform {{EnterpriseBrand}}
TrainingLink A link for training sessions. http://www.longjump.com/index.php?option=com_eventlist&view=eventlist&Itemid=178 {{#if {{TrainingLink}} | [{{TrainingLink}} Platform Training]}}
 
Booleans
ShowWhitepapers Show whitepapers? true (empty=false) {{#if {{ShowWhitepapers}} | ...}}
ShowOutlookSync Show info related to Outlook Sync & Email Edition Plugin? true (empty=false) {{#if {{ShowOutlookSync}} | ...}}
ShowDevInfo Show info for developers? Template:ShowDevInfo (empty=false) {{#if {{ShowDevInfo}} | ...}}
ShowIsvInfo Show info only ISV care about? true (empty=false) {{#if {{ShowIsvInfo}} | ...}}
ShowMspInfo Show info only MSPs care about? true (empty=false) {{#if {{ShowMspInfo}} | ...}}
 
Boolean Inversions
HideWhitepapers Hide whitepapers?
(All say "LongJump".)
Template:HideWhitepapers (empty=false) {{#if {{HideWhitepapers}} | ...}}
HideOutlookSync Hide info related to Outlook sync? Template:HideOutlookSync (empty=false) {{#if {{HideOutlookSync}} | ...}}
HideDevInfo Hide info for developers? Template:HideDevInfo (empty=false) {{#if {{HideDevInfo}} | ...}}
HideIsvInfo Hide info only ISV care about? Template:HideIsvInfo (empty=false) {{#if {{HideIsvInfo}} | ...}}
HideMspInfo Hide info only MSPs care about? Template:HideMspInfo (empty=false) {{#if {{HideMspInfo}} | ...}}

Notepad.png

Note: We could also define a "WhitepapersLink", the same way we specify "TrainingLink". We could then use that link, if it exists, in preference to the standard Template:DOCHOST link.

Variable Combinations

Use this pattern to conditionalize information intended only for Service Providers (both ISVs and MSPs):
{{#if: {{ShowIsvInfo}} {{ShowMspInfo}} |
__Info for all Service Providers (LJ and ISV domains)__
}}
Use this pattern if it is necessary to distinguish information intended for ISVs only (even if it mentions MSPs) from information intended for MSPs only:
{{#if: {{ShowIsvInfo}} |
__ISV info (ISV DOMAIN) __
}}
{{#if: {{HideIsvInfo}} |
{{#if: {{ShowMspInfo}} |
__MSP info (LJ DOMAIN)__
}}}}