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
(oooo this looks handy! ok now to actually start making this)
m
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>ok, so here's the idea - a template that lets me just enter in the techs that I've got (and probably another one for the skills) & returns a nice table of what I still need to learn that's available and where (and/or a nice table listing all my techs/skills/etc)
+
<noinclude>
 +
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!
  
yea, it sounds like a big project
+
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
  
and a lot of junk in the template ;)
+
http://semantic-mediawiki.org/wiki/Semantic_MediaWiki
  
ah but it'll be COOL!</noinclude>
+
http://semantic-mediawiki.org/wiki/Help:Selecting_pages
  
![[{{{1}}}]]
+
Anyway
|align="center"|{{#if: {{#ASK:[[research/Adn]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Cat's Claw Ridge]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Falcon Bay]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Heaven's Gate]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Khmun]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Meroe]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Nomad's Paradise]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Pyramid Lake]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Queen's Retreat]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Saqqarah]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Shabbat Ab]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Sinai]] [[Researched::{{{1}}}]]}}|Yes}}
 
|align="center"|{{#if: {{#ASK:[[research/Stillwater]] [[Researched::{{{1}}}]]}}|Yes}}
 
  
 +
here's a thought for making this somewhat useful
  
fume=1
+
I was thinking of the alternating background deal
advanced animal husbandry=1
 
advanced blacksmithing=1
 
advanced glassblowing=1
 
advanced metallurgy=2
 
agriculture=1
 
animal husbandry=1
 
aromatics=1
 
avian selection=1
 
barley cultivation=1
 
basic charcoal production=1
 
basic chemistry=1
 
beekeeping=1
 
beer brewing=1
 
blacksmithing=1
 
botanical identification=1
 
brick rack construction=1
 
carpentry=1
 
carving=4
 
casting=1
 
chariot repair=1
 
clothwork=1
 
compound construction=1
 
controlled burn=1
 
cooking=1
 
desiccation=1
 
dowsing=1
 
ecology=3
 
entomology=1
 
exploration travel=1
 
fine casting=1
 
firebuilding=3
 
fishing=1
 
flax processing=1
 
foraging=1
 
gardening=1
 
glassblowing=1
 
guild construction=1
 
hive optimization=1
 
home construction=1
 
horticulture=1
 
improved brick rack construction=1
 
kiln construction=1
 
masonry=1
 
mining=1
 
metallurgy=2
 
pyrotechnic mortar construction=1
 
navigation=1
 
obelisk construction=2
 
ore extraction=2
 
papyrus paper fabrication=1
 
pottery=1
 
project management=1
 
pyramid construction=7
 
rhythmic strength=5
 
ritual item construction=1
 
rock saw construction=1
 
salvage techniques=2
 
sign construction=1
 
stone blade fabrication=7
 
stonecutting=1
 
stonemasonry=1
 
structural pottery=1
 
structure maintenance=1
 
strusture reapri=1
 
taxidermy=1
 
the science of color=1
 
viticulture=1
 
water mining=1
 
wood treatment=1
 
  
 +
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.
  
*Architecture = #f80
+
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.
*Art = #0cf
 
*Body = #4f4
 
*Harmony = #c0f
 
*Leadership = #44f
 
*Thought = #f44
 
*Discipline = #ff2
 
  
MidnightBlue, me, SaiCoSis, Heplotep, Waerloga, Pandemonis
+
{{#ask: [[Researched::+]] [[Research/Adn]]
----
+
|format=template
[[Template:Sidebar Discipline]]
+
|Template=:User:Amisibastet/temp/2}}
{| style='border: 1px solid #000; border-spacing: 0; width: 20em; float: right; clear: right; margin: 1em'
+
 
|-
+
 
| style='width: 0.5em; background: {{{1}}}; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
+
it's not going so well yet
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Discipline of
+
 
| style='width: 0.5em; background: {{{1}}}; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
+
can't really tell what is being handed to the template
|-
+
so i can't do a #switch on it
| colspan='2' style='font-size: 120%; font-weight: bold; text-align: center; padding: 0 0.5em 1em' | [[{{{2}}}]]
+
</noinclude>
|-
+
{| border=2 style='background:transparent'
| style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 3em; border-bottom: 3px double #aaa' | Lvl
 
| style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; border-bottom: 3px double #aaa' | Test
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | ?
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''[[Principles of {{{2}}}]]''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
|-
 
| style='text-align: center; font-weight: bold; border-bottom: 1px solid #aaa' | <span style='font-weight: normal'>''?''</span>
 
| style='padding: 0.2em 0.5em; border-bottom: 1px solid #aaa' | ''Unreleased Test''
 
 
|-
 
|-
| style='text-align: center; font-weight: bold; border-bottom: 3px double #aaa' | <span style='font-weight: normal'>''?''</span>
+
|
| style='padding: 0.2em 0.5em; border-bottom: 3px double #aaa' | ''Unreleased Test''
+
{| style='background:transparent' cellpadding=10 cellspacing=20 border=0
 +
|+'''First Run'''
 
|-
 
|-
| colspan='2' style='text-align: center; padding: 0.2em 0.5em' | [[{{{2}}} Rewards]]
+
|
 +
# {{{c1x}}}, {{{c1y}}}
 +
{{{c1x}}}, {{{c1y}}},{{{d1}}} {{{c1x}}}, {{{c1y}}}
 +
|}  
 
|}
 
|}
  
I'm begining to seriously doubt I'll ever understand what an em is. It's being used as some sort of measurement unit. The closest I've come to grepping anything for it was a page somewhere that said it's used in CSS to indicate font size. I don't actually know if it's got a fixed width or not. But my browser does seem to be giving it a size. Other than that the table is still a mess, it's often indicating that a cell will have 1 style & then once you get into the cell itself, it gives a different style for no apparent reason. I'm half tempted to clean out a lot of that contradictory code just so I don't go insane trying to understand why it's all there. And really, the table is the least of my problems. It's the ask statement that's going to be a pain... I keep thinking that there was something I read in one of the help or manual pages about computing or about arrays or about alternate text in the inline queries... now I've just got to find it.
 
*http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
 
 
----
 
----
*http://meta.wikimedia.org/wiki/Help:Table#Conditional_table_row
+
 
{|
+
{{#ask: [[PointOfInterest::+]]
|-
+
|?PointOfInterest
! colspan="3" style="border:1px solid #a3bfb1; background:#cef2e0;"| Name
+
}}
| style="border:1px solid #a3bfb1; background:#f5fffa;"|{{{1}}}
 
|-
 
{{#if:{{{2|}}}|! colspan="2" style="font-size:125%;text-align:center; background:#95fa97;-moz-border-radius:20px;" {{!}} Place of birth
 
{{!}} style="font-size:125%;text-align:center; background:#95fa97;-moz-border-radius:20px;" {{!}}{{{2}}}}}
 
|}
 

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