Category:Examples of code: Difference between revisions

From IFWiki

mNo edit summary
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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.


# The coding challenge/premise pages should go in the [[:Category:Example premises]] category, which will be a subcategory here.
# 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)|Smell restrictions (example)]], put your coding premise in it, and at the end, put it in the [[:Category:Examples of code|Examples of code]] category, which is this page.
# The actual code examples should go in the category appropriate to their [[authoring system]], and will also be subcategories here. For example:
# 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:
#* [[:Category:Examples of Inform code]] will list the Inform code examples, and be a subcategory of [[:Category:Inform Tutorial]]
#* [[Smell restrictions (Inform 6 example)]] is the Inform 6 code example for the premise.<br>[[Smell restrictions (Inform 6 example)]] is a member of both the [[:Category:Smell restrictions (example)|Smell restrictions (example)]] and [[:Category:Examples of Inform 6 code|Examples of Inform 6 code]] categories.
#* [[:Category:Examples of TADS 3 code]] will list the TADS 3 code examples, and be a subcategory of [[:Category:TADS 3 Tutorial]]
#* [[Smell restrictions (TADS 3 example)]] is the TADS 3 code example for the premise.<br>[[Smell restrictions (TADS 3 example)]] is a member of both the [[:Category:Smell restrictions (example)|Smell restrictions (example)]] and [[:Category:Examples of TADS 3 code|Examples of TADS 3 code]] categories.
# The cross-platform example as a whole should also get its own subcategory here. For example, suppose the premise is about restrictions on what the PC can smell. You would create a subcategory called [[:Category:Smell restrictions (Example)]].
#* The page [[Smell restrictions (Example premise)]] should be listed under both [[:Category:Smell restrictions (Example)]] and [[:Category:Example premises]].
#* The Inform example would be called [[Smell restrictions (Inform example)]] and listed under both [[:Category:Smell restrictions (Example)]] and [[:Category:Examples of Inform code]].
#* The TADS 3 example would be called [[Smell restrictions (TADS 3 example)]] and listed under both [[:Category:Smell restrictions (Example)]] and [[:Category:Examples of TADS 3 code]].


Note:
* [[:Category:Examples of Inform 6 code|Examples of Inform 6 Code]] is a subcategory of both [[:Category:Examples of code|Examples of code]] and [[:Category:Inform 6 tutorials|Inform 6 tutorials]].
* [[:Category:Examples of TADS 3 code|Examples of TADS 3 code]] is a subcategory of both [[:Category:Examples of code|Examples of code]] and [[:Category:TADS 3 tutorials|TADS 3 tutorials]].


Discuss this on the [[:Category talk:Examples of code]] page.
Similar pages and categories can be made for other examples and authoring systems.


[[Category:Tutorial]]
Discuss this on the this page's [[:Category talk:Examples of code|discussion page]].
 
[[Category:Tutorials]]

Latest revision as of 06:27, 13 January 2009

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.

  1. 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: Smell restrictions (example), put your coding premise in it, and at the end, put it in the Examples of code category, which is this page.
  2. 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:

Note:

Similar pages and categories can be made for other examples and authoring systems.

Discuss this on the this page's discussion page.