The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Amisibastet/temp"

From A Tale in the Desert
Jump to navigationJump to search
(gotta save at some points for testing purposes)
m
Line 35: Line 35:
  
 
</noinclude>
 
</noinclude>
[[#switch: {{{1}}}
+
{{#switch: {{{1}}}
 
|even
 
|even
 
|Even={{!}}style='background: {{{2}}};' {{!}} {{{4}}}
 
|Even={{!}}style='background: {{{2}}};' {{!}} {{{4}}}
Line 58: Line 58:
 
{{!}}style='background: {{{3}}};' {{!}} {{{12}}}
 
{{!}}style='background: {{{3}}};' {{!}} {{{12}}}
 
{{!}}style='background: {{{2}}};' {{!}} {{{13}}}
 
{{!}}style='background: {{{2}}};' {{!}} {{{13}}}
|Please use 'even' or 'odd' in the 2nd variable]]
+
|Please use 'even' or 'odd' in the 2nd variable}}

Revision as of 18:56, 22 February 2009

Usage

This template will generate a table row. I'm not sure how useful that sounds at the moment, but I'm willing to go with that idea for a bit.
How neat, I *can* pass a template in a variable. Now... how to use this awsome power... muhahhahaha! mmm it'd be tastier with a loop...... back to the researching/studying!

sigh i should just leave links here for where to find the info i'm finding useful, it's not like I don't refer back to it more often than i'd like

http://semantic-mediawiki.org/wiki/Semantic_MediaWiki

http://semantic-mediawiki.org/wiki/Help:Selecting_pages

Anyway

here's a thought for making this somewhat useful

I was thinking of the alternating background deal

which can become convoluted

so, I'd need an even or an odd for which background color goes first

and without currently knowing a looping thing, I'll just have to do it with if statements & give it a limited number of cells

yea, that'll work, it won't work perfectly, but it'll work

for simplicity sake I'm going to leave the row marker out for now


usage

{{ template | even/odd | background1 | background 2 | data | data | data | data | data | data | data | data | data | data }}

It takes in up to 10 data cells (why 10? because, that's why)

I wonder if I can give it numbers hmm, might work better if i rearrange it for that tho, bah! but that messes up the rest ... or, not at all if the backgrounds & even/odd are named hmm


Please use 'even' or 'odd' in the 2nd variable