User:Fritigern/BrainStorm

From OpenSimulator

< User:Fritigern(Difference between revisions)
Jump to: navigation, search
m (OSSL Function Template)
m (Plans and Ideas)
 
(35 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]]
  
:*<strike>Check all OSSL functions for example scripts. If no example, add to </strike><strike>[[:Category:OSSL functions without example]]</strike> -- '''Done'''.
+
== ToDo  ==
:*<strike>Check all OSSL functions for threat level. If no thread level, add to [[:Category:OSSL functions without threat level]]</strike> -- '''Done'''
+
* 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 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'''
+
:*Make [[Template:Osslfunc|a nice looking page template]], to be used on OSSL function pages, and apply this template to all OSSL functions. -- '''In Progress'''
+
  
 +
*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]]
  
 
----
 
----
Line 28: Line 30:
  
 
== Quick tests. To be ignored! ==
 
== Quick tests. To be ignored! ==
nothing at the moment...
+
 
 +
{| border="1" cellpadding=5,5,10,10
 +
|+[[Threat level]]
 +
|-style="background:#00FF00;"
 +
| None
 +
|-style="background:#24DA00;"
 +
| Nuisance
 +
|-style="background:#48B600;"
 +
| VeryLow
 +
|-style="background:#6D9100;"
 +
| Low
 +
|-style="background:#916D00;"
 +
| Moderate
 +
|-style="background:#B64800;"
 +
| High
 +
|-style="background:#DA2400;"
 +
| VeryHigh
 +
|-style="background:#FF0000;"
 +
| Severe
 +
|}
  
 
==Templates==
 
==Templates==
=== OSSL Function Template ===
 
This is based off of the band template that i made for the [http://www.automatapedia.com Automatapedia], several years ago. The advantage of this template is that '''''all''''' pages that are based on this template, will be updated in one fell swoop, 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.
 
 
<s>The page [[User:Fritigern/BrainStorm/Testpage]] will make use of this template until the template is ready to be deployed.</s> -- '''Deleted page and deploying template.'''
 
 
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.
 
 
Wishlist for the template:
 
* Automatic source formatting, adding <nowiki><source lang="lsl">{{{function_syntax}}}</source></nowiki> did not give the desired results. Instead, it would simply show <source lang="lsl">{{{function_syntax}}}</source> instead of <source lang="lsl">osAnyFunction()</source>. I need to look into this some more.
 
 
 
----
 
 
 
{{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 103: 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