Rosetta Code:Village Pump/Language template enhancements: Difference between revisions

→‎Citations: See created templates.
(→‎Citations: Idea for dealing with the template "blowing up")
(→‎Citations: See created templates.)
Line 34:
I just added [[Template:Cite]] which could be used for citations in anything, but in particular I wanted to use it for citations in language template parameters. I'm thinking about adding "expresscite", "gccite", and other similar (optional) parameters to the template to allow people to link to their sources right next to the information. I'm worried that it will not be used much and that the language template is blowing up now. Thoughts? --[[User:Mwn3d|Mwn3d]] 17:30, 12 April 2010 (UTC)
: Regarding the template "blowing up," What about structuring [[Template:Language]] in a fashion similar to [[Template:mylang]]? That would allow the addition of arbitrary key-value pairs with a basic member template, and more specific ones for specialized keys like standards, paradigms, presence of garbage collection, etc. I'll admit I don't muck with the template's parameters much because I find the ParserFunctions code generally daunting. Breaking that apart would make it easier to add/remove components to the description block. --[[User:Short Circuit|Michael Mol]] 19:13, 12 April 2010 (UTC)
: I created [[Template:Language/Start]], [[Template:Language/End]], [[Template:Language/Property/Generic]] and [[Template:Language/Property/URL]]. Obviously, that doesn't come close to representing the full set of features that [[Template:Language]] currently manages, but it's a start, it may be easier to use, and it's easily extensible. Thoughts? --[[User:Short Circuit|Michael Mol]] 04:49, 13 April 2010 (UTC)