Odp:Development
From Odp
(Difference between revisions)
(→Tests and Other) |
|||
Line 14: | Line 14: | ||
These two links are equivalent: [http://ontologydesignpatterns.org/index.php/Odp:Development with www] , [http://ontologydesignpatterns.org/index.php/Odp:Development without www] | These two links are equivalent: [http://ontologydesignpatterns.org/index.php/Odp:Development with www] , [http://ontologydesignpatterns.org/index.php/Odp:Development without www] | ||
- | ==Testing UrlGetParameter extension== | + | ===Testing UrlGetParameter extension=== |
<pre> | <pre> | ||
{{#urlget:paramname|default}} | {{#urlget:paramname|default}} | ||
Line 22: | Line 22: | ||
Value is: {{#urlget:param|no param}} | Value is: {{#urlget:param|no param}} | ||
- | ==Testing RightFunctions extension== | + | ===Testing RightFunctions extension=== |
<pre> | <pre> | ||
Line 73: | Line 73: | ||
</pre> | </pre> | ||
- | ==Testing ImageMap extension== | + | ===Testing ImageMap extension=== |
Details about this extension can be found [http://www.mediawiki.org/wiki/Extension:ImageMap here]. | Details about this extension can be found [http://www.mediawiki.org/wiki/Extension:ImageMap here]. | ||
Line 89: | Line 89: | ||
</imagemap> | </imagemap> | ||
- | ==Testing Variables extension== | + | ===Testing Variables extension=== |
Details about this extension can be found [http://www.mediawiki.org/wiki/Extension:Variables here] | Details about this extension can be found [http://www.mediawiki.org/wiki/Extension:Variables here] | ||
Line 103: | Line 103: | ||
Value of A is '''{{#var:A}}''' and value of B is '''{{#var:B}}''' | Value of A is '''{{#var:A}}''' and value of B is '''{{#var:B}}''' | ||
- | ==Testing template [[Template:Definition|Definition]]== | + | ===Testing template [[Template:Definition|Definition]]=== |
{{Definition | {{Definition | ||
|Title of definition | |Title of definition |
Revision as of 09:41, 6 June 2008
This page is used to discuss new features between ODP administrators, testing templates or new extensions.
Contents |
ToDo List
Done List
- News procedure added from page Odp:News
- www.ontologydesignpatterns.org is now redirected to ontologydesignpatterns.org
- Review's procedure related to VersionID of the article
- Extension ReplaceText installed, go to see it
Tests and Examples
Testing www and non-www url
These two links are equivalent: with www , without www
Testing UrlGetParameter extension
{{#urlget:paramname|default}}
Try adding param=value to the current URL.
Value is: no param
Testing RightFunctions extension
{{#ifright:right|then|else}}
{{#ifallowed:user|right|then|else}}
{{#switchright:right1=result1|right2|right3=result2 and 3|right4=result4|default (or #default=default if the default text contains =)}}
{{#userrights:}} (for current user) or {{#userrights:user}}
'''Warning!''' do not use it. {{#usergroup:}} (for current user) or {{#usergroup:user}}
{{#ifgroup:group|then|else}} (for current user) or {{#ifgroup:group|then|else|user}} (for other users)
{{#switchgroup:group1=result1|group2|group3=result2 and 3|group4=result4|default (or #default=default if the default text contains =)}}
{{#ifpageright:right|then|else|page}} for testing other pages or {{#ifpageright:right|then|else}} for testing the current page.
{{#ifpageallowed:user|right|then|else|page}} for testing other pages or {{#ifpageallowed:user|right|then|else}} for testing the current page.
{{#ifprotected:then|else|page}} for testing other pages, or {{#ifprotected:then|else}} for testing the current page or (for example) {{#ifprotected:then|else|page|fns}} for testing only certain types of protection.
{{#getrestrictions:right|page}} for testing other pages, or {{#getrestrictions:right}} for testing the current page or {{#getrestrictions:right|page|true}} for listing all restrictions instead of just the highest one.
Testing ImageMap extension
Details about this extension can be found here.
ImageMap extension is installed. BUT IT DOES NOT WORK ALREADY
Testing Variables extension
Details about this extension can be found here
Syntax:
{{#vardefine:A|value of A}} {{#vardefine:B|1000}} Value of A is '''{{#var:A}}''' and value of B is '''{{#var:B}}'''
Result:
Value of A is value of A and value of B is 1000