User:Fritigern/BrainStorm

From OpenSimulator

< User:Fritigern(Difference between revisions)
Jump to: navigation, search
(Quick tests. To be ignored!)
m (Plans and Ideas)
 
(26 intermediate revisions by one user not shown)
Line 8: Line 8:
  
 
----
 
----
== ToDo  ==
+
== Plans and Ideas ==
 +
These are not on the todo list (yet), because they have not yet moved beyond the "idea" stage.
 +
* Write some end-user guides. Like [[quickstart]] guides for various actions (how to set up a server, how to clone the Git repo and build, etc). Everything should be very simple, and easy to understand. No technical stuff, just the procedure. Right now, the wiki is still confusing to many people who are looking for just some basic info.
  
The following will use '''[[OSSL Implemented]]''' as a starting point
+
* [[OSSL_Script_Library|OSSL-specific script library]]. No such thing exists on the internet yet. (if it does, then i have missed it)
 +
* Portals. First to come to mind would be a [[scripting portal]] and a [[developer portal]]. I'm sure there can be more then just these two.
 +
* [[User:Fritigern/OSSL_Constants]]
 +
* [[User:Fritigern/Compatible Viewers]]
 +
 
 +
== ToDo  ==
 +
* Write a stub on [[Collada Mesh]]es. Included should be a list of (free) software that can be used to create collada [[mesh]]. (Also redirect "mesh" to "collada mesh"!)
  
:*<strike>Check all OSSL functions for example scripts. If no example, add to </strike><strike>[[:Category:OSSL functions without example]]</strike> -- '''Done'''.
+
*We have a comprehensive list of OSSL functions, but where is the documentation of the OSSL Constants? Well, here, i hope. => [[User:Fritigern/OSSL Constants]]
:*<strike>Check all OSSL functions for threat level. If no thread level, add to [[:Category:OSSL functions without threat level]]</strike> -- '''Done'''
+
:*<strike>Check all OSSL functions for function syntax. If no usage key, add to [[:Category:OSSL functions without function syntax]]</strike> -- '''Done'''
+
:*<s>Correct as many of these articles as possible.</s> -- '''Done'''
+
:*<s>Check all OSSL functions for uniformity.</s> -- '''Done'''
+
:*<s>Make [[Template:Osslfunc|a nice looking page template]], to be used on OSSL function pages, and apply this template to all OSSL functions.</s> -- '''Done'''
+
:*<s>If no comments/notes/info/documentation, then add to [[:Category:OSSL_functions_without_notes]]</s> -- '''Done'''
+
:*Make [[Template:Osslfunc]] a little fancier. Threat level should have a different background color for each level. If threat level is an unknown string, have it show the available valid options. (Might need an additional Threat Level template to diminish complexity of <nowiki>{{osslfunc}}</nowiki>)
+
  
 
----
 
----
Line 51: Line 52:
  
 
==Templates==
 
==Templates==
=== OSSL Function Template ===
 
'''Advantages:'''
 
*Much simpler page source, making it easier to maintain, and/or make additions.
 
*'''''All''''' pages that are based on this template will be updated in one fell swoop at the moment the template is updated. This is very useful when more fields are required in the OSSL function pages, or if the design should be changed.
 
*Using this template also ensures that all OSSL function pages will be uniform in appearance at all times
 
*The template is also a smart one. It will automatically add a page to the relevant "missing" category, if any of the info is missing.
 
*It can pinpoint problem with missing info from the template.
 
*More fields can be added. However, all pages using the template will need to be either manually updated, or use a bot to add the new field(s).
 
*The template can be extended with relative ease, adding more functionality, and automation.
 
 
 
'''Drawbacks:'''
 
*When creating a new OSSL function article, the user will have to copy and paste the page template over to the new page.
 
*The pasted code can easily get damaged (thus rendering it non-functional) by deleting or altering parts of the pasted page template
 
 
 
'''Wishlist for the template:'''
 
* Automatic source formatting, adding <nowiki><source lang="lsl">{{{function_syntax}}}</source></nowiki> did not give the desired results. It would display as <source lang="lsl">{{{function_syntax}}}</source> instead of <source lang="lsl">osAnyFunction()</source>
 
::After doing some research, it appears that [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi  GeShi] in its current form can not deal with this scenario.
 
 
----
 
====Usage====
 
----
 
 
 
{{Template:osslfunc}}
 
 
----
 
 
This template is to be used as follows:
 
 
<nowiki>{{osslfunc|</nowiki>
 
threat_level = THREAT LEVEL
 
|
 
function_syntax = FUNCTION SYNTAX
 
|
 
ossl_example = EXAMPLE CODE
 
|
 
additional_info = ANY ADDITIONAL INFO AND NOTES
 
|
 
}}
 
  
 
===Deprecation template.===
 
===Deprecation template.===
Line 134: Line 94:
 
[[Image:List_gray.png|200px|thumb|left|List icon]]
 
[[Image:List_gray.png|200px|thumb|left|List icon]]
 
[[Image:Disambig_gray.png|200px|thumb|left|Disambiguation icon]]
 
[[Image:Disambig_gray.png|200px|thumb|left|Disambiguation icon]]
 +
 +
== Securing some code ==
 +
 +
Didn't want this code to get lost after turning the containing page into a redirect.
 +
 +
<source lang="lsl">
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
    string drawList = "";
 +
    drawList = osDrawLine (drawList, 10,20,240,20);
 +
    drawList = osMovePen (drawList, 50,100);
 +
    drawList = osDrawImage(drawList, 100,100,"http://openlifegrid.com/Portals/0/Repository/wowpr2.jpg" );
 +
    drawList = osSetPenSize (drawList, 1);
 +
    drawList = osMovePen (drawList, 50,70);
 +
    drawList = osDrawEllipse (drawList, 20,20);
 +
    drawList = osMovePen(drawList, 90,70);
 +
    drawList = osDrawRectangle (drawList, 20,20 );
 +
    drawList = osMovePen (drawList,130,70);
 +
    drawList = osDrawFilledRectangle(drawList, 20,20);
 +
    drawList = osSetFontSize (drawList, 12 );
 +
    drawList = osMovePen (drawList,15,32);
 +
    string regionName = llGetRegionName();
 +
    drawList = osDrawText (drawList, "Hello and welcome to " + regionName );
 +
    drawList = osSetFontSize (drawList, 7);
 +
    drawList = osSetPenColour (drawList, "blue");
 +
    drawList = osMovePen (drawList, 70,220);
 +
    drawList = osDrawText (drawList, "The End");
 +
    osSetDynamicTextureData("", "vector", drawList, "", 0);
 +
    }
 +
}
 +
</source>
 +
 +
 +
----
 +
=== A text box test ===
 +
A little idea i had for the some of the pages. Dunno if it will work or not....
 +
 +
{{Layout_box2|1=
 +
 +
'''Scripting:'''
 +
* [[:Category:OSSL_Functions|OSSL Functions]] -- [[OSSL Script Library]] -- [[OSSLNPC|NPCs/Bots]] -- [[Dynamic textures]]
 +
}}
 +
 +
=== Footerbox template ===
 +
A template, to be inserted at the end of notable pages. Criteria yet to be determined, but should help users find more, and related info fast.
 +
 +
Template should be flexible, and allow a format like this (first draft!):
 +
 +
<nowiki>
 +
{{footerbox
 +
|title=Related Pages
 +
|word=Green
 +
|list=[[grass]], [[pesto]], [[wasabi]], [[pea soup]], [[Sea Monsters]]
 +
}}</nowiki>
 +
 +
The output should look roughly like this:
 +
 +
{|style="background-color: #eeffee; border: 1px solid #008800; margin: 5px; padding: 5px; font-size:x-small; color:#000; width:99%;"
 +
|-style="text-align:center; background-color: #00aa00; color:#ffffff;font-size:small; font-weight:bold;"
 +
|Related Pages
 +
|-
 +
|'''More articles related to Green''' :
 +
|-
 +
|[[Grass]] -- [[Pesto]] -- [[Wasabi]] -- [[Pea Soup]] -- [[Sea Monsters]]
 +
|}
 +
 +
Footerbox shall be intended to be included in other templates, so that Template:Purple, or Template:Fish_products will have a similar layout, whilst reducing complexity of the use of those templates. I.E. all that the user will have to do, would be to include <nowiki>{{Purple}}</nowiki> or <nowiki>{{Fish_products}}</nowiki> at the end of their article.
 +
 +
==== The Template ====
 +
<nowiki>
 +
{{footerbox
 +
|background =
 +
|border =
 +
|headercolor =
 +
|title=
 +
|word=
 +
|list=
 +
}}
 +
</nowiki>
 +
 +
==== The Template In Action ====
 +
 +
{{footerbox
 +
|background = #eeffee
 +
|border = #008800
 +
|headercolor = #00aa00
 +
|title=Related Pages
 +
|word=Green
 +
|list=[[grass]], [[pesto]], [[wasabi]], [[pea soup]], [[Sea Monsters]]
 +
}}
 +
 +
{{footerbox
 +
|background = #ffffee
 +
|border = #ff8800
 +
|headercolor = #ffaa00
 +
|title=Scripting
 +
|word=scripting
 +
|list=[[Scripting Documentation]] -- [[OSSL_Implemented]] -- [[LSL Status]] -- [[:Category:Scripting]] -- [[OS Scripting Tutorial]] -- [[ScriptEngines|Script Engines]]
 +
}}
 +
 +
==== The Template As An Inclusion ====
 +
 +
{{scripting}}
 +
 +
{{physics}}
 +
 +
 +
== Template Hidden ==
 +
'''Notes:'''
 +
*For documentation, see [[Template:Hidden]].
 +
*Templates taken from http://en.wikipedia.org/wiki/Template:Hidden
 +
 +
{{hidden|Title|Content}}
 +
 +
 +
{{hidden|Hideable Div|This is an example of a hidable div. To be able to use these, it's nescessary to have the supporting files on the server. Most likely the CSS file, and some javascript.}}
 +
 +
 +
{{Hidden
 +
|header=Testing Hidden Divs
 +
|content=This is a test of the hidden template, as it exists on http://en.wikipedia.org/wiki/Template:Hidden
 +
|style=
 +
|headerstyle=
 +
|contentstyle=
 +
|fw1=
 +
|fw2=
 +
|bg1=
 +
|bg2=
 +
|ta1=
 +
|ta2=
 +
}}
 +
 +
 +
{{hidden
 +
| style = border:1px dashed red; width: 50%;
 +
| headerstyle = background: #ccccff; font-size: 110%;
 +
| contentstyle = text-align: center; color:green;
 +
| header = Title text here
 +
| content = Body text line 1<br />Body text line 2<br />Body text line 3
 +
}}

Latest revision as of 01:21, 12 February 2012

Contents

[edit] BrainStorm

Welcome to Friti's BrainStorm. This page will be basically a combination of a sandbox, and a development page. Pages created and edited here may or may not make it into the the official wiki content.

Also to be found here are some experiments which may or may not lead to something.

The purpose of this is to increase my own knowledge of wiki-related matters (editing, techniques, etc) and to lift the OpenSim wiki to a higher level. In the process, this will also allow me to clean up my user page ;-)


[edit] Plans and Ideas

These are not on the todo list (yet), because they have not yet moved beyond the "idea" stage.

  • Write some end-user guides. Like quickstart guides for various actions (how to set up a server, how to clone the Git repo and build, etc). Everything should be very simple, and easy to understand. No technical stuff, just the procedure. Right now, the wiki is still confusing to many people who are looking for just some basic info.

[edit] ToDo

  • Write a stub on Collada Meshes. Included should be a list of (free) software that can be used to create collada mesh. (Also redirect "mesh" to "collada mesh"!)
  • We have a comprehensive list of OSSL functions, but where is the documentation of the OSSL Constants? Well, here, i hope. => User:Fritigern/OSSL Constants

[edit] New pages

[edit] Quick tests. To be ignored!

Threat level
None
Nuisance
VeryLow
Low
Moderate
High
VeryHigh
Severe

[edit] Templates

[edit] Deprecation template.

Purpose: To be used on the pages of deprecated functions. New page is to be created with replacement function. Suggest copying over the content of the page of the deprecated function, and make modifications in the content of the new page.
Usage: {{deprecate|<MM DD YYYY>|<newname>}}
Example: {{deprecate|Nov. 21 1997|Friti}}
Result:


[edit] 3rd Party template.

Purpose: To be used on pages dealing with 3rd party add-ons, modules, and so forth, so as to clearly, uniformly, and effortlessly mark them as 3rd party software.
Usage: {{thirdparty}}
Example: {{thirdparty}}
Result:


[edit] Multicol template

Imported from Wikipedia and very useful for making large lists appear in multiple columns, and thus reduce scrolling. And example would be OSSL_Implemented.

[edit] Multicol applied

This is some text.

This is some text too.

And here's some more text.

And whoa! Even more text!!!


[edit] Disambiguation Template

Importing the disambiguation template from Wikipedia to our own wiki.





[edit] Image test

List icon
Disambiguation icon

[edit] Securing some code

Didn't want this code to get lost after turning the containing page into a redirect.

default
{
    state_entry()
    {
    string drawList = "";
    drawList = osDrawLine (drawList, 10,20,240,20);
    drawList = osMovePen (drawList, 50,100);
    drawList = osDrawImage(drawList, 100,100,"http://openlifegrid.com/Portals/0/Repository/wowpr2.jpg" );
    drawList = osSetPenSize (drawList, 1);
    drawList = osMovePen (drawList, 50,70);
    drawList = osDrawEllipse (drawList, 20,20);
    drawList = osMovePen(drawList, 90,70);
    drawList = osDrawRectangle (drawList, 20,20 );
    drawList = osMovePen (drawList,130,70);
    drawList = osDrawFilledRectangle(drawList, 20,20);
    drawList = osSetFontSize (drawList, 12 );
    drawList = osMovePen (drawList,15,32);
    string regionName = llGetRegionName();
    drawList = osDrawText (drawList, "Hello and welcome to " + regionName );
    drawList = osSetFontSize (drawList, 7);
    drawList = osSetPenColour (drawList, "blue");
    drawList = osMovePen (drawList, 70,220);
    drawList = osDrawText (drawList, "The End");
    osSetDynamicTextureData("", "vector", drawList, "", 0);
    }
}



[edit] A text box test

A little idea i had for the some of the pages. Dunno if it will work or not....

[edit] Footerbox template

A template, to be inserted at the end of notable pages. Criteria yet to be determined, but should help users find more, and related info fast.

Template should be flexible, and allow a format like this (first draft!):

 {{footerbox
 |title=Related Pages
 |word=Green
 |list=[[grass]], [[pesto]], [[wasabi]], [[pea soup]], [[Sea Monsters]]
 }}

The output should look roughly like this:

Related Pages
More articles related to Green :
Grass -- Pesto -- Wasabi -- Pea Soup -- Sea Monsters

Footerbox shall be intended to be included in other templates, so that Template:Purple, or Template:Fish_products will have a similar layout, whilst reducing complexity of the use of those templates. I.E. all that the user will have to do, would be to include {{Purple}} or {{Fish_products}} at the end of their article.

[edit] The Template

 {{footerbox
 |background =
 |border =
 |headercolor =
 |title=
 |word=
 |list=
 }}
 

[edit] The Template In Action

Related Pages
More articles related to Green:
grass, pesto, wasabi, pea soup, Sea Monsters


Scripting
More articles related to scripting:
Scripting Documentation -- OSSL_Implemented -- LSL Status -- Category:Scripting -- OS Scripting Tutorial -- Script Engines


[edit] The Template As An Inclusion

Scriptingv · d · e
More articles related to scripting:
Scripting Documentation -- OSSL_Implemented -- LSL Status -- Category:Scripting -- OS Scripting Tutorial -- Script Engines


Physics Enginev · d · e
More articles related to physics:
Physics -- PhysicsEngines -- NINJA Physics -- Physics Engine Interface -- Feature Matrix -- Distributed Scene Graph -- Collada Mesh


[edit] Template Hidden

Notes:




Personal tools
General
About This Wiki