Difference between revisions of "User:Aeric/tests"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 3: Line 3:
''See also:''
''See also:''
:* [{{SERVER}}/{{SCRIPTPATH}}/wiki_tests.php {{SCRIPTPATH}}/wiki_tests.php]
:* [{{SERVER}}/{{SCRIPTPATH}}/wiki_tests.php {{SCRIPTPATH}}/wiki_tests.php]
==Category Insertions==
{{CategoryContents}}


==Magic Words for Links ==
==Magic Words for Links ==

Revision as of 20:37, 1 May 2013

Tests.

See also:

Category Insertions

Category Aeric/tests not found

Magic Words for Links

Server ({{SERVER}}) https://agileappscloud.info
Script path ({{SCRIPTPATH}}) /aawiki-src
Hardcoded path http://lj.platformatyourservice.com/wiki/download
Variablized path
({{SERVER}}{{SCRIPTPATH}}/download)
https://agileappscloud.info/aawiki-src/download

Skin-Specific Variables

Template:Skin-specific Variables

Variablized Link

  • TrainingLink is used [ here].
  • Conditional link: DNE

Nested Conditionals

Test of nested conditionals. Display site prefix: LJ

Style for Rollovers

Original TEST of rollover help. New  TEST  of rollover.

CSS Styles

Original

  <span title="Rollover text to display" 
        class="terminologydef" style="cursor:help">TEST</span>
  of rollover help.
  where:
     cursor:help style = built-in HTML style attribute for rollover
     terminologydef class =  
        .terminologydef {border-bottom: 1px dashed green;}
      --defined in terminology.php, which puts the css definition into the page
      --or place desired definition in MediaWiki:Common.css

New

  • HTML code
<span title="Rollover text to display" 
      class="rollover" style="cursor:help"> TEST </span> 
of rollover help.
  • Added to MediaWiki:Common.css
.rollover {
  border-top:    1px solid blue; 
  border-bottom: 1px solid blue; 
  border-left:   1px solid blue; 
  border-right:  1px solid blue; 
  background:    yellow;
}

Conditional Category Test

  • Category tags can be conditionalized with the #if of #ifeq test.
  • This page has:
    • A category that always appears (the unconditionalized category)
    • A category that only appears when ShowWhitepapers is true,, using #if.
    • A category that only appears in the ISV domain, using #ifeq.

So:

Domain Categories
LJ 2 categories (whitepapers & unconditional)
ISV 2 categories (ISV & unconditional)
CUSTOM 1 category (unconditional)

Code:

{{#if: {{ShowWhitepapers}} | [[Category:Conditional Whitepapers Category]] }}
{{#ifeq: {{EnterpriseBrand}} | Platform | [[Category:Conditional ISV Category]] }}
[[Category:Unconditional Category]]

Categories:

  • No whitepapers category
  • No ISV category