Template talk:LSL Function/warning

From Second Life Wiki
< Template talk:LSL Function
Revision as of 20:59, 27 March 2008 by Strife Onizuka (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Can someone explain this?

I'm having a really, really difficult time understanding how this template works. In particular, what is the role of the {{!}} template? -- Rob Linden 13:57, 26 March 2008 (PDT)

The {{!}} template is a workaround for including the pipe character in template parameters. The pipe character is the seperator used between template parameters, so it must be escapaed if you want to embed a table as a template parameter.
What this template does is insert a block after the {{LSL Header}} on most LSL pages. This works because the LSL templates inline the {{#var:header}} value (which is what this template modifies). The design of the templates allow for other templates to set values to specific sections without requiring the base templates to be modified. It's a scalable solution to maintaining consistent style while allowing for extendability to that style but not requiring every feature combination needing to be parsed. -- Strife Onizuka 14:57, 26 March 2008 (PDT)
When you see {{!}} just think | (pipe). -- Strife Onizuka 15:12, 26 March 2008 (PDT)
Hmm....ok, I get the {{!}} bit. I'm still having trouble with this:
Where is {{{inline}}} set? -- Rob Linden 15:20, 26 March 2008 (PDT)
You set "inline" if you don't want to write {{#var:header}} if you page doesn't use {{#var:header}}. There are no pages that depend upon this but there might be a couple really old templates that do. Despite this it should be safe to remove this feature since generally speaking we don't use any of the really old templates. -- Strife Onizuka 20:59, 27 March 2008 (PDT)