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.
User:Amisibastet/temp
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
[[#switch: {{{1}}}
|even
|Even=|style='background: {{{2}}};' | {{{4}}}
|style='background: {{{3}}};' | {{{5}}}
|style='background: {{{2}}};' | {{{6}}}
|style='background: {{{3}}};' | {{{7}}}
|style='background: {{{2}}};' | {{{8}}}
|style='background: {{{3}}};' | {{{9}}}
|style='background: {{{2}}};' | {{{10}}}
|style='background: {{{3}}};' | {{{11}}}
|style='background: {{{2}}};' | {{{12}}}
|style='background: {{{3}}};' | {{{13}}}
|odd
|Odd=|style='background: {{{3}}};' | {{{4}}}
|style='background: {{{2}}};' | {{{5}}}
|style='background: {{{3}}};' | {{{6}}}
|style='background: {{{2}}};' | {{{7}}}
|style='background: {{{3}}};' | {{{8}}}
|style='background: {{{2}}};' | {{{9}}}
|style='background: {{{3}}};' | {{{10}}}
|style='background: {{{2}}};' | {{{11}}}
|style='background: {{{3}}};' | {{{12}}}
|style='background: {{{2}}};' | {{{13}}}
|Please use 'even' or 'odd' in the 2nd variable]]