Difference between revisions of "User talk:J McKalling"

From Twinsuniverse
Jump to: navigation, search
m
m
Line 1: Line 1:
 
== Character test ==
 
== Character test ==
{{infobox Character|gender=male|occupation=Administrator|nocat=true}}
+
{{infobox Character
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.
+
|gender=male
 +
|occupation=Administrator
 +
|nocat=true
 +
}}
 +
I have proudly enabled and figured out the [[mw:Extension:ParserFunctions|ParserFunctions extension]] and [[mw:Extension:WikiEditor|WikiEditor extension]], and I just added the [[mw:Extension:Variables|Variables extension]].
  
I have proudly enabled and figured out the [[mw:Extension:ParserFunctions|ParserFunctions extension]] and [[mw:Extension:WikiEditor|WikiEditor extension]], and I just added the [[mw:Extension:Variables|Variables extension]]. This means we can now use conditional statements like:
+
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. So the used code is:
  
  <nowiki>{{#if: {{{class|}}} | class="{{{class}}}" }}</nowiki>
+
  <nowiki>{{infobox Character
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:
+
|gender=male
 
+
|occupation=Administrator
  <nowiki>{{#vardefine: lba | Little Big Adventure }}</nowiki>
+
  |nocat=true
And then use it at multiple places later on the same page with:
+
}}</nowiki>
 
+
<nowiki>{{#var: lba }}</nowiki>
+
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.
+

Revision as of 04:17, 25 November 2012

Character test

J McKalling

No image was specified for this article

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 have proudly enabled and figured out the ParserFunctions extension and WikiEditor extension, and I just added the Variables extension.

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. So the used code is:

{{infobox Character
 |gender=male
 |occupation=Administrator
 |nocat=true
}}