Difference between revisions of "User talk:J McKalling"
J McKalling (Talk | contribs) m (→Character test) |
J McKalling (Talk | contribs) m |
||
Line 1: | Line 1: | ||
== Character test == | == Character test == | ||
− | {{infobox Character|gender=male|occupation=Administrator | + | {{infobox Character|gender=male|occupation=Administrator|nocat=true}} |
I'm rendering the character template for myself here just to test out how easy it works. It works, and it even automatically categorizes this page as intended. But I've used the feature to suppress categorization here, because it being on my talk page is just a test. | I'm rendering the character template for myself here just to test out how easy it works. It works, and it even automatically categorizes this page as intended. But I've used the feature to suppress categorization here, because it being on my talk page is just a test. | ||
Revision as of 21:35, 24 November 2012
Character test
J McKalling | |
---|---|
Race |
unknown [list all] |
Gender |
Male [list all] |
Size |
unknown [list all] |
Age |
unknown [list all] |
Magical |
unknown [list all] |
Adventure |
unknown [list all] |
Character | |
Alignment |
unknown [list all] |
Occupation |
Administrator |
I'm rendering the character template for myself here just to test out how easy it works. It works, and it even automatically categorizes this page as intended. But I've used the feature to suppress categorization here, because it being on my talk page is just a test.
I have proudly enabled and figured out the ParserFunctions extension and WikiEditor extension, and I just added the Variables extension. This means we can now use conditional statements like:
{{#if: {{{class|}}} | class="{{{class}}}" }}
To render something under some circumstances. And the Editor is now the same as the one from Wikipedia, it looks better and has better features. And variables to be able to call something for later use on the same page, for instance, specify somewhere at the beginning of the page:
{{#vardefine: lba | Little Big Adventure }}
And then use it at multiple places later on the same page with:
{{#var: lba }}
Which would be replaced by the value defined earlier. Instead of #var:, you can also use #var_final: to use the latest value stored in the value at render time. The values can even be substituted by other parser functions, template parameters, expressions, etc. Cool huh? Specifically, I needed this to support Categorizers with multiple choices of which a combination may be chosen, rather than just one option. It's just not very funny to write complex wiki code for such a simple matter.