User talk:Mwn3d: Difference between revisions

Content added Content deleted
(→‎Template:Language/Start and friends: This is how it's supposed to look.)
Line 62: Line 62:
What was wrong with the way they were implemented? I don't remember them looking broken when I left off with them last night; all that was left was implementing templates akin to [[Template:Language/Property/Generic]] and [[Template:Language/Property/URL]] for more specific things like BNF, HOPL, exec, site, gc, parampass, safety, strength, compat, express, checking, lang and lct. The more specific forms are useful because we can check against their absence or omittence akin to langauge/tasks, and put them as maintenance items in [[Template:Unimpl_Page]]. I'm also trying to get away from using parserfunctions so much; it makes some templates more difficult to maintain, IMHO. --[[User:Short Circuit|Michael Mol]] 04:11, 14 April 2010 (UTC)
What was wrong with the way they were implemented? I don't remember them looking broken when I left off with them last night; all that was left was implementing templates akin to [[Template:Language/Property/Generic]] and [[Template:Language/Property/URL]] for more specific things like BNF, HOPL, exec, site, gc, parampass, safety, strength, compat, express, checking, lang and lct. The more specific forms are useful because we can check against their absence or omittence akin to langauge/tasks, and put them as maintenance items in [[Template:Unimpl_Page]]. I'm also trying to get away from using parserfunctions so much; it makes some templates more difficult to maintain, IMHO. --[[User:Short Circuit|Michael Mol]] 04:11, 14 April 2010 (UTC)
:When I tried them out in [[Template:Language beta]] I got <nowiki>|}</nowiki> showing up sometimes and other times I had tables that never ended. When I moved things around to the way they are now it ended up looking right. So do you want a new template for every parameter? That doesn't seem practical. Also I don't really like the way the naming is going. It's getting too long too fast. I'm not sure what naming scheme would be better. If we want to check anything we will have to use parser functions. I guess I wasn't around to see the plan for this craziness. Was there a plan discussed or did I just go forward with the idea too quickly? --[[User:Mwn3d|Mwn3d]] 04:19, 14 April 2010 (UTC)
:When I tried them out in [[Template:Language beta]] I got <nowiki>|}</nowiki> showing up sometimes and other times I had tables that never ended. When I moved things around to the way they are now it ended up looking right. So do you want a new template for every parameter? That doesn't seem practical. Also I don't really like the way the naming is going. It's getting too long too fast. I'm not sure what naming scheme would be better. If we want to check anything we will have to use parser functions. I guess I wasn't around to see the plan for this craziness. Was there a plan discussed or did I just go forward with the idea too quickly? --[[User:Mwn3d|Mwn3d]] 04:19, 14 April 2010 (UTC)
:: Using subpages keeps things clear as to meaning and relationship, keeping the use and meaning of the wiki code clean and maintainable. Having a separate template for every property that needs to behave in a unique way allows the language description block to be built the same way people use [[Template:Mylang]] in their user pages. Also, those templates were designed as a replacement for the existing Template:Language; you should have something like:

<pre>
<nowiki>
{{Language/Start}}
{{Language/Property/Generic|key|value}}
{{Language/Property/Generic|key2/value2}}
{{Language/Property/URL|url|anchor name}}
{{Language/End}}
</nowiki>
</pre>

Presumably, the use of the template set in [[:Cateogory:Oz]] would look something like this:

<pre>
<nowiki>
{{Language/Start}}
{{Language/Property/URL|url|Official Site}}
{{Language/Property/Garbage Collected|yes]]
{{Language/Property/Parameter Passing|By reference}}
{{Language/Property/Type Safety|Safe}}
{{Language/Property/Type Strength|Strong}}
{{Language/Property/Type Compatibility|Structural}}
{{Language/Property/Type Expression|Implicit}}
{{Language/Property/Type Checking|Dynamic}}
{{Language/Property/URL|url|On the HOPL}}
{{Language/Property/LCT|Oz}}
{{Language/End}}
</nowiki>
</pre>

(URL could be made more specific for Official Site and/or HOPL, though I'm not too pleased with the current HOPL links; they rarely wind up pointing to the language in question.) Which would strike me as a bit clearer than

<pre>
<nowiki>
{{language|Oz
|site=http://www.mozart-oz.org
|checking=dynamic
|gc=yes
|LCT=yes
|strength=strong
|express=implicit
|safety=safe
|compat=structural
|parampass=reference}}
</nowiki>
</pre>

... Does that make sense? --[[User:Short Circuit|Michael Mol]] 04:34, 14 April 2010 (UTC)