Category:Examples of code: Difference between revisions
From IFWiki
m (cat change) |
mNo edit summary |
||
Line 7: | Line 7: | ||
Note: | Note: | ||
* [[:Category:Examples of Inform code]] is a subcategory of both [[:Category:Examples of code]] and [[:Category:Inform | * [[:Category:Examples of Inform code]] is a subcategory of both [[:Category:Examples of code]] and [[:Category:Inform tutorials]]. | ||
* [[:Category:Examples of TADS 3 code]] is a subcategory of both [[:Category:Examples of code]] and [[:Category:TADS 3 Tutorial]]. ) | * [[:Category:Examples of TADS 3 code]] is a subcategory of both [[:Category:Examples of code]] and [[:Category:TADS 3 Tutorial]]. ) | ||
Revision as of 10:11, 5 March 2006
This category is meant to encourage the creation of pages of IF coding examples in the IFWiki. Our model for this exercise is the Cloak of Darkness sample game. People will propose a short coding challenge or premise. And then they (or others) will write another page showing how to code that in a particular IF authoring system. Hopefully we'll get lots of examples. But the trick is how to organize it.
- First, create a category page for the coding premise or challenge. For example, suppose the premise is about restrictions on what the PC can smell. Create an appropriate name for the category with "(Example)" at the end, eg: Category:Smell restrictions (Example), put your coding premise in it, and at the end, put it in the Category:Examples of code category, which is this page.
- Second, if you want to write the actual code example for a premise, create a normal page with the same name as the premise, but with "(Inform example)" or "(TADS 3 example)" or whatever is appropriate at the end. For example:
- Smell restrictions (Inform example) is the Inform code example for the premise.
Smell restrictions (Inform example) is a member of both Category:Smell restrictions (Example) and Category:Examples of Inform code. - Smell restrictions (TADS 3 example) is the TADS 3 code example for the premise.
Smell restrictions (TADS 3 example) is a member of both Category:Smell restrictions (Example) and Category:Examples of TADS 3 code.
- Smell restrictions (Inform example) is the Inform code example for the premise.
Note:
- Category:Examples of Inform code is a subcategory of both Category:Examples of code and Category:Inform tutorials.
- Category:Examples of TADS 3 code is a subcategory of both Category:Examples of code and Category:TADS 3 Tutorial. )
Similar pages and categories can be made for other examples and authoring systems.
Discuss this on the Category talk:Examples of code page.
Subcategories
This category has the following 11 subcategories, out of 11 total.