×
Namespaces

Variants
Actions

Sandbox/Hamishwillee/WikiTests/Extensions

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
FNWiki
Article
Created: hamishwillee (26 Apr 2011)
Last edited: hamishwillee (10 Sep 2013)

This is a sandbox page for hamishwillee . Please do not edit or delete without permission. It includes tests of some of the wiki extensions


Contents

Hiding sections in category pages

, , ,

Also

Page Categories

Not yet delivered: 1203

Categories

Test categories in current page (should be FNWiki)

{{Categories:}}

Test categories in specified page: How to scroll a customized list box without using a scroll bar

{{Categories:How to scroll a customized list box without using a scroll bar}}

Result: XXSymbian C++ | Code Examples | UI | S60 5th EditionXX


Test categories in specified page: Listening asynchronously for incoming SMS messages in Java ME

{{Categories:Listening asynchronously for incoming SMS messages in Java ME}}

Result: XXSMS on Java ME | Symbian | Series 40 | S60 3rd Edition (initial release) | Series 40 3rd Edition FP1 | Series 40 6th Edition FP1 | Series 40 5th Edition (initial release) | Series 40 5th Edition FP1 | Series 40 3rd Edition FP2 | Series 40 6th Edition (initial release) | Series 40 Developer Platform 1.0 | Series 40 Developer Platform 1.1 | Series 40 Developer Platform 2.0 | S60 3rd Edition FP1 | S60 3rd Edition FP2 | S60 5th Edition | Symbian^3 | Symbian Anna | Nokia Belle | Code Examples | Java Runtime 2.3 for Symbian | Nokia Asha Platform 1.0 | WMA 2.0 (JSR-205)XX


Test categories coming out of a DPL query

{{#dpl:
|category=Windows Phone
|count=5
|format=,,\n* %PAGE% XX - {{Categories:%PAGE%}},
}}
  • All About Designing apps for Big Screen Windows Phone XX -
  • Apps with undocumented URI schemes XX -
  •  :Category:App Marketing for Windows Phone XX -
  •  :Category:Competitions on Windows Phone XX -
  •  :Category:General Programming on Windows Phone XX -


Test existence of a category

{{#pos:{{Categories:How to scroll a customized list box without using a scroll bar}}|Symbian_C++}}

12

{{#pos:{{Categories:How to scroll a customized list box without using a scroll bar}}|Symbian C++}}

24


isCategory

Test categories if category true in current page (should be FNWiki)

{{isCategory|Symbian C++}}
{{isCategory|Symbian_C++}}
{{isCategory|FNWiki}}


All version tests (if plugin was working should nothing here, but can copy paste into another page for more rigorous testing). Will work now because the #if detects the text rather than returning nothing. The lists below is based off Template:VersionHint:
Windows Phone 8, Windows Phone 7.5, Nokia Asha Platform 1.0, Series 40 DP 2.0, Series 40 DP 1.1, Series 40 DP 1.0, Series 40 6th Edition FP1, Series 40 6th Edition (initial release), Series 40 5th Edition FP1, Series 40 5th Edition (initial release), Series 40 3rd Edition FP2, Series 40 3rd Edition FP1, Series 40 3rd Edition (initial release), Series 40 2nd Edition, Series 40 1st Edition, Nokia Belle, Symbian Anna, Symbian^3, S60 5th Edition, S60 3rd Edition FP2, S60 3rd Edition FP1, S60 3rd Edition (initial release), S60 2nd Edition FP3, S60 2nd Edition FP2, S60 2nd Edition FP1, S60 2nd Edition (initial release), S60 1st Edition,

New Article Templates

Extension is Extension:NewArticleTemplates.

Boilerplate text is specified in these pages

Open (but DONT SAVE) links below to confirm default text is in place (if defined above)


Documentation (internal) https://projects.fifeventures.co.uk/trac/fnpiazza/wiki/Piazza11.4ReleaseNotes#Boilerplateforarticlesnotes

Toggle Display 2

PROPOSED that this be removed: #1393

Extension is Extension:ToggleDisplay2

Simplest usage:

<toggledisplay>Text that is hidden</toggledisplay>
[show details]

New hide and showtext

<toggledisplay showtext="Expandamatic" hidetext="hide-amatic">Text that is hidden</toggledisplay>
Expandamatic

With CSS parameters on link

<toggledisplay linkstyle="font-size:bigger">Text that is hidden</toggledisplay>
[show details]

Sub page support

Extension is Extension:SubPageList3. Can see sub pages at work: (backtrack below title):

Enabled on

Not enabled on

Below are random tests of lists

Sandbox/Hamishwillee/WikiTests/Extensions has no subpages to list.
Tools:A has no subpages to list.
Error [Subpage List 3]: Unknown value for option parent.FNWiki:A test page has no subpages to list.


Error [Subpage List 3]: Unknown value for option parent.FNWiki:A test page has no subpages to list.

Parser Functions

Extension Extension:ParserFunctions (with enabled Extension:StringFunctions)


6

{{#len:string}}

11

{{#pos:this is my test string|test|2}}

ng

{{#sub:string|4|2}}

Thwas was a replacement string

{{#replace:This is a replacement string|is|was}}

you returns you.

{{#explode:And if you tolerate this| |2}} returns you.

Code returns Code.

{{#explode:String/Functions/Code|/|-1}} returns Code.

Percentage returns Percentage.

{{#explode:Split%By%Percentage%Signs|%|2}} returns Percentage.

{{#urlencode:Sandbox/Hamishwillee/WikiTests/Extensions }}

{{#urlencode:{{PAGENAME}} }}

{{#urlencode:Sandbox/Hamishwillee/WikiTests/Extensions }}

{{#urldecode: {{#urlencode:{{PAGENAME}} }}  }}
{{#ifeq: beer|notbeer|arequql|NOT}}

NOT

THESE two from Extension:StringFunctions are not supported {{#urlencode:value}} value

Instead use bare format for urlencode: Sandbox/Hamishwillee/WikiTests/Extensions

{{urlencode:{{PAGENAME}} }}

Sandbox%2FHamishwillee%2FWikiTests%2FExtensions

{{urlencode:{{PAGENAME}}|QUERY }}

Sandbox%2FHamishwillee%2FWikiTests%2FExtensions

{{urlencode:{{PAGENAME}}|WIKI} }}

Sandbox%2FHamishwillee%2FWikiTests%2FExtensions

x+y+z+%C3%A1+%C3%A9 x%20y%20z%20%C3%A1%20%C3%A9

Test how much we need urldecode (essentially shows that you can pass in URL encoded pagename and it will be treated as "proper" pagename

using cat

usingurldecode

using otherurl

using lang-CN


Video extensions

Extension:EmbedVideo

Extension is Extension:EmbedVideo.


Extension:MediaPlayer

Extension:MediaPlayer supports Lumia 920 browser

The media player is loading...

test videos

CategoryTree

http://www.mediawiki.org/wiki/Extension:CategoryTree

mode - categories


mode - parents


mode - pages

Symbian


mode - all

Games


mode.categories with showcount

Symbian(1989 Pages)
[×] Device Specification(4 Pages)
[×] ESWT API(17 Pages)
Games(57 Pages)
[×] Java Runtime 1.3 for S60(5 Pages)
[×] Java Runtime 1.4 for S60(13 Pages)
[×] Java Runtime 2.3 for Symbian(53 Pages)
[×] Remote Device Access(13 Pages)
[×] Self Signed(8 Pages)
Symbian Platform Versions(0 Pages)
[×] Symbian Signed(101 Pages)
[×] Training(4 Pages)