TGB/Behaviors/SubmittingToTDN
From TDN
|
[edit] Adding a Link on the Behavior listingThe first step to adding a behavior is to create a link to it from the behavior listing page. You can edit that page by going to it and clicking on 'Edit' on the red bar in the upper right of the page. Now you need to either find an existing category that your behavior would fit in, or add a new category. If the category you want exists, find it in the edit box. It should look like this:
{{Template:BehaviorCategory|Effects}}
With the category name you want replacing 'Effects'. If the category you want to use doesn't exist, you can add it by copying the above line and pasting it at the end of the page before:
{{Template:HubFooter}}
And, of course, change 'Effects' to the name of your category. Now, to actually add the link to your behavior, copy this:
{{Template:Behavior|Behavior Name|Behavior Description}}
Below the category you are using. Replace 'Behavior Name' with the name of your behavior (make sure it's unique), and 'Behavior Description' with a simple description of what the behavior does. Now click on the 'Save Page' button to save and return to the updated page. [edit] Creating the Behavior PageCreating the page is as simple as clicking on the link that you created in the previous step. This will take you to the edit page for your behavior. Before you can add any content, you need to upload your behavior script file and, optionally, upload an image of your behavior in action. To upload the behavior file, you first need to zip it. In Winows XP, just right click on the file and go to Send To->Compressed (zipped) Folder. Then, click on the 'Upload file' link under 'Toolbox' on the left side of any TDN page. Select the zip file that you created and click on the 'Upload File' button. On the next page, it will give you a link to the file on TDN. Remember it. You can repeat this same process with an image file.
{{Template:TGBBehavior|
Behavior Name|
[[Image:URLToImage]]|
[URLToFile Behavior Name]|
Behavior Description|
}}
Replace 'Behavior Name' with the name of your behavior (in both places), 'URLToImage' with the link that TDN gave you after uploading your image file, and URLToFile with the link that TDN gave you after uploading your behavior zip file. Then, replace 'Behavior Description' with a description of what your behavior does and how to use it. That's it. Just press the 'Save Page' button and everything should be setup.
|



