User talk:Aichon: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
Line 147: Line 147:
:Well, starting at the "highest level" templates (I call them that, because they are built on other templates), you might be referring to {{tl|if}} or {{tl|if equal}}. The former checks if variable 1 is defined, and, if so, it outputs variable 2. If it's not defined, it outputs variable 3. The latter template checks to see if variables 1 and 2 equal each other. If they do, then it outputs variable 3, otherwise it outputs variable 4. If we go "lower", there's also {{tl|ifdef}} and {{tl|ifndef}}. The first checks to see if variable 1 is defined, and then outputs variable 2 if it is, while the second outputs variable 2 if variable 1 is not defined. Lower still is just using default values for variables in templates, though that kinda works more in the if not this then that sense. Oh, and {{tl|switch}} might be useful for you too. If none of those float your boat, you might also check some of my sandboxes for AND, OR, and XOR logical operators that I wrote a long time ago, but haven't found a use for yet. {{User:Aichon/Signature}} 00:24, 10 August 2010 (BST)
:Well, starting at the "highest level" templates (I call them that, because they are built on other templates), you might be referring to {{tl|if}} or {{tl|if equal}}. The former checks if variable 1 is defined, and, if so, it outputs variable 2. If it's not defined, it outputs variable 3. The latter template checks to see if variables 1 and 2 equal each other. If they do, then it outputs variable 3, otherwise it outputs variable 4. If we go "lower", there's also {{tl|ifdef}} and {{tl|ifndef}}. The first checks to see if variable 1 is defined, and then outputs variable 2 if it is, while the second outputs variable 2 if variable 1 is not defined. Lower still is just using default values for variables in templates, though that kinda works more in the if not this then that sense. Oh, and {{tl|switch}} might be useful for you too. If none of those float your boat, you might also check some of my sandboxes for AND, OR, and XOR logical operators that I wrote a long time ago, but haven't found a use for yet. {{User:Aichon/Signature}} 00:24, 10 August 2010 (BST)
::You're right, this is all far too complex. I'm working on a far simpler way.--{{User:Yonnua Koponen/signature2‎}} 00:28, 10 August 2010 (BST)
::You're right, this is all far too complex. I'm working on a far simpler way.--{{User:Yonnua Koponen/signature2‎}} 00:28, 10 August 2010 (BST)
:::What always puzzled me, is I see their usage, and understand what they're supposed to be doing, but what I don't get, or can't see, is what they're actually doing. -{{User:Poodle of doom/sig 2}} 00:50, 10 August 2010 (BST)

Revision as of 23:50, 9 August 2010

Aichon:Talk
Aichon
ˈīˌkän :Talk