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
(New page: <includeonly>== AmisiBastet's Required By == *{{#ask: [[requires::{{SUBPAGENAME}}]]}}</includeonly> <noinclude> Ok so I'm trying to test out this ask function thing... parcer function... w...)
 
m
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>== AmisiBastet's Required By ==
 
*{{#ask: [[requires::{{SUBPAGENAME}}]]}}</includeonly>
 
 
<noinclude>
 
<noinclude>
Ok so I'm trying to test out this ask function thing... parcer function... whatever it actually is.
+
links i might want to read up on if i get back around to working on things like this
 +
*http://en.wikipedia.org/wiki/Template:Navbox#Style_parameters
 +
=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.<br>
 +
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!
  
The media wiki help pages can be confusing & I've found nowhere that actually explains what I can and can't do with the <nowiki>#ASK</nowiki> tag thing. To be honest, I don't even know if I needed that nowiki I put around the ask there lol
+
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
  
So, I'm creating a temp template in my namespace so that I can mess around with a list of generated stuff here in the hopes of working out how to make it do what I want it to... er actually, mostly what I'd like this to do right now is a bulleted list rather than a comma list.
+
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==
 +
<nowiki>{{ template | even/odd | background1 | background 2 | data | data | data | data | data | data | data | data | data | data }}</nowiki>
 +
 
 +
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
 +
 
 +
</noinclude>
 +
{{#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}}
 +
<noinclude>
 +
----
 +
so I was thinking.. the whole 'Research/Saqqarah' thing sucks...... and I can't work out how to make it not show that...
 +
 
 +
Or can I
 +
 
 +
yea I've a few ideas
 +
Though I haven't gotten them working just yet
 +
 
 +
But this latest idea was mmm convoluted I suppose.
 +
The first part of the problem is that it uses an ask statement which returns pages & the main namespace has the subpages thing turned off. So it treats subpages as pagenames rather than as subpages.
 +
 
 +
But I can hand the results to a template to produce the results in a format that I actually want. I wonder how much of a pain that'll be.
 +
 
 +
{{#ask: [[Researched::+]] [[Research/Adn]]
 +
|format=template
 +
|Template=:User:Amisibastet/temp/2}}
 +
 
 +
 
 +
it's not going so well yet
 +
 
 +
can't really tell what is being handed to the template
 +
so i can't do a #switch on it
 +
</noinclude>
 +
{| border=2 style='background:transparent'
 +
|-
 +
|
 +
{| style='background:transparent' cellpadding=10 cellspacing=20 border=0
 +
|+'''First Run'''
 +
|-
 +
|
 +
# {{{c1x}}}, {{{c1y}}}
 +
{{{c1x}}}, {{{c1y}}},{{{d1}}} {{{c1x}}}, {{{c1y}}}
 +
|}
 +
|}
 +
 
 +
----
 +
 
 +
{{#ask: [[PointOfInterest::+]]
 +
|?PointOfInterest
 +
}}

Latest revision as of 00:48, 12 April 2009

links i might want to read up on if i get back around to working on things like this

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


so I was thinking.. the whole 'Research/Saqqarah' thing sucks...... and I can't work out how to make it not show that...

Or can I

yea I've a few ideas Though I haven't gotten them working just yet

But this latest idea was mmm convoluted I suppose. The first part of the problem is that it uses an ask statement which returns pages & the main namespace has the subpages thing turned off. So it treats subpages as pagenames rather than as subpages.

But I can hand the results to a template to produce the results in a format that I actually want. I wonder how much of a pain that'll be.

Research/Adn


it's not going so well yet

can't really tell what is being handed to the template so i can't do a #switch on it

First Run
  1. {{{c1x}}}, {{{c1y}}}

{{{c1x}}}, {{{c1y}}},{{{d1}}} {{{c1x}}}, {{{c1y}}}


 PointOfInterest
Ascii BastetKittens Compound; 817; -1536
Guilds/EAAAGuild hall; -375; 6580
Guilds/The Mad BotanistsGuild Hall; -500; 6721
Red BastetKittens Compound; 817; -1536
Red SandMeroe; 776; -2966
Heaven's Gate; -2662; 6763
Queen's Retreat; 3490; -6100
Saqqarah; 160; -1975
Shabbat Ab; 735; 1587
StatuesLion;398;-3715
2 Lions Back-to-Back;318;-3856
Statue of Montu;2425;-1718
Statue of Montu;-1416;875
Test of the SafariQR;335; -6375
SA;1398;1778
Guilds/West Harlem Academy of Fine ArtsPublic Works; 1125; 6740