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
(ok got fundamentals to work - now to make it into a very large template (still contemplating temp calling temp2 etc))
m
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{#ifexpr:{{{Alternative Fuels}}}<1|true|false}} | {{#if: {{#ask:[[Researched::Alternative Fuels]]}} |true}} |
 
{{!}}-style='text-align: center; font-weight: bold; font-size: 80%; border-bottom: 3px solid #aaa'
 
{{!}} [[Alternative Fuels]]
 
{{!}} {{#ask:[[Researched::Alternative Fuels]]}}
 
}}
 
 
<noinclude>
 
<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!
 +
 +
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
  
#{{#ifexpr:1=1|true}}
+
I was thinking of the alternating background deal
#{{#ifexpr:2=1|true}}<br>
 
#{{#ASK:[[Researched::mining]]}}
 
#{{#ASK:[[Researched::ming]]}}<br>
 
#{{#if: {{#ASK:[[Researched::mining]]}} {{#ifexpr: 2=1 |true}} | no really, true | eh, it's false}}<br>
 
#{{#if: {{#ASK:[[Researched::ming]]}} | no really, true | eh, it's false}}<br>
 
##{{#if: {{#ifexpr: 2=1|true}} {{#ASK:[[Researched::ming]]}} | bla bla | no-bla }}<br>
 
##{{#if: {{#ask:[[researched]]}}|true}}<br>
 
###{{#ifeq: {{#ifexpr: 2=1|true|false}} | {{#if:{{#ASK:[[Researched::ming]]}}|true}}
 
| bla bla
 
| no-bla }}<br>
 
  
{|
+
which can become convoluted
|-
 
{{#if: {{#ASK:[[Researched::mining]]}} {{#ifexpr:1=1|true}} |{{!}} colspan="2" style="font-size:125%;text-align:center; background:#95fa97;" {{!}} YAY it works!
 
{{!}} style="font-size:125%;text-align:center; background:#95fa97;" {{!}} yay yay!
 
{{!}}- 
 
{{!}}Rows do work!
 
}}
 
{{#if: {{#ASK:[[Researched::ming]]}} {{#ifexpr:1=2|true}} |
 
{{!}}-
 
{{!}} colspan="2" style="font-size:125%;text-align:center; background:#95fa97;" {{!}} this one shouldn't result tho
 
{{!}} style="font-size:125%;text-align:center; background:#95fa97;" {{!}} no results!
 
}}
 
|}
 
  
 +
so, I'd need an even or an odd for which background color goes first
  
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)
+
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, it sounds like a big project
+
yea, that'll work, it won't work perfectly, but it'll work
  
and a lot of junk in the template ;)
+
for simplicity sake I'm going to leave the row marker out for now
  
ah but it'll be COOL!
 
  
fume=1
+
==usage==
advanced animal husbandry=1
+
<nowiki>{{ template | even/odd | background1 | background 2 | data | data | data | data | data | data | data | data | data | data }}</nowiki>
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
 
  
 +
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...
  
*Architecture = #f80
+
Or can I
*Art = #0cf
 
*Body = #4f4
 
*Harmony = #c0f
 
*Leadership = #44f
 
*Thought = #f44
 
*Discipline = #ff2
 
  
MidnightBlue, me, SaiCoSis, Heplotep, Waerloga, Pandemonis
+
yea I've a few ideas
----
+
Though I haven't gotten them working just yet
[[Template:Sidebar Discipline]]
+
 
{| style='border: 1px solid #000; border-spacing: 0; width: 20em; float: right; clear: right; margin: 1em'
+
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.
| style='width: 0.5em; background: {{{1}}}; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| 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;
 
|-
 
| colspan='2' style='font-size: 120%; font-weight: bold; text-align: center; padding: 0 0.5em 1em' | [[{{{2}}}]]
 
|-
 
| 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''
 
|-
 
| colspan='2' style='text-align: center; padding: 0.2em 0.5em' | [[{{{2}}} Rewards]]
 
|}
 
<br clear=all>
 
</noinclude>
 
{|align=center width=100% border=0 cellpadding=10 style='background:#EFDFBD'
 
|- align=center valign=top
 
|      <!-- 1st up is arch -->
 
{|style='border: 1px solid #000; border-spacing: 0; width: 26em; '
 
|-
 
| style='width: 0.5em; background: #f80; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em' | University of
 
| style='width: 0.5em; background: #f80; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em' | Architecture
 
|-
 
|style='text-align: center; font-weight: bold; font-size: 80%; padding: 0 0.2em; width: 40%; border-bottom: 3px double #aaa' | Tech
 
| style='text-align: center; font-weight: bold; font-size: 80%; padding: 0 0.2em; width: 60%; border-bottom: 3px double #aaa' | Region
 
|-
 
{{#ifeq: {{#ifexpr:{{{Alternative Fuels}}}<1|true|false}} | {{#if: {{#ask:[[Researched::Alternative Fuels]]}} |true}} |
 
{{!}}-
 
{{!}} style='text-align: left; font-weight: bold; font-size: 100%; padding: 0 0.2em; border-bottom: 1px solid #aaa' {{!}} [[Alternative Fuels]]
 
{{!}} style='text-align: left; font-weight: bold; font-size: 80%; border-bottom: 1px solid #aaa' {{!}} {{#ask:[[Researched::Alternative Fuels]]|format=ul}} }}<!--EOS-->
 
{{#ifeq: {{#ifexpr:0<1|true|false}} | {{#if: {{#ask:[[Researched::Improved Brick Rack Construction]]}} |true}} |
 
{{!}}-
 
{{!}} style='text-align: left; font-weight: bold; padding: 0 0.2em; font-size: 100%; border-bottom: 1px solid #aaa' {{!}} [[Improved Brick Rack Construction]]
 
{{!}} style='text-align: left; font-weight: bold; padding: 0 0.2em; font-size: 80%; border-bottom: 1px solid #aaa' {{!}} {{#ask:[[Researched::Improved Brick Rack Construction]]|format=ul}} }}<!--EOS-->
 
{{#ifeq: {{#ifexpr:0<1|true|false}} | {{#if: {{#ask:[[Researched::Masonry]]}} |true}} |
 
{{!}}-
 
{{!}} style='text-align: left; font-weight: bold; padding: 0 0.2em; font-size: 100%; border-bottom: 1px solid #aaa' {{!}} [[Masonry]]
 
{{!}} style='text-align: left; font-weight: bold;padding: 0 0.2em;  font-size: 80%; border-bottom: 1px solid #aaa' {{!}} {{#ask:[[Researched::Masonry]]|format=ul}} }}<!--EOS-->
 
|} <!-- closing arch table -->
 
  
|<!-- next to arch is art -->
+
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.
{|style='border: 1px solid #000; border-spacing: 0; width: 26em; '
 
|-
 
| style='width: 0.5em; background: #0cf; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
 
| style='width: 0.5em; background: #0cf; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Art & Music
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
| Tech
 
| Region
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
|} <!-- closing art table -->
 
  
|- align=center valign=top
+
{{#ask: [[Researched::+]] [[Research/Adn]]
|<!-- 3rd comes body -->
+
|format=template
{|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
+
|Template=:User:Amisibastet/temp/2}}
|-
 
| style='width: 0.5em; background: #4f4; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
 
| style='width: 0.5em; background: #4f4; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Human Body
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
| Tech
 
| Region
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
|} <!-- closing body table -->
 
  
|<!-- 4th is harmony -->
 
{|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
 
|-
 
| style='width: 0.5em; background: #c0f; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
 
| style='width: 0.5em; background: #c0f; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Harmony
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
| Tech
 
| Region
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
|} <!-- closing harmony table -->
 
  
|- align=center valign=top
+
it's not going so well yet
|<!-- 5th is leadership -->
 
{|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
 
|-
 
| style='width: 0.5em; background:  #44f; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
 
| style='width: 0.5em; background: #44f; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Leadership
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
| Tech
 
| Region
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
|} <!-- closing lead table -->
 
  
|<!-- 6th is thought-->
+
can't really tell what is being handed to the template
{|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
+
so i can't do a #switch on it
 +
</noinclude>
 +
{| border=2 style='background:transparent'
 
|-
 
|-
| style='width: 0.5em; background: #f44; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
+
|
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
+
{| style='background:transparent' cellpadding=10 cellspacing=20 border=0
| style='width: 0.5em; background: #f44; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
+
|+'''First Run'''
 
|-
 
|-
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Thought
+
|
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
+
# {{{c1x}}}, {{{c1y}}}
| Tech
+
{{{c1x}}}, {{{c1y}}},{{{d1}}} {{{c1x}}}, {{{c1y}}}
| Region
+
|}
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
+
|}
|} <!-- closing thought table -->
 
  
|- align=center valign=top
+
----
|<!-- 7th is worship -->
 
{|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
 
|-
 
| style='width: 0.5em; background: #ff2; border-right: 1px solid #aaa' rowspan='0' | &nbsp;
 
| colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | University of
 
| style='width: 0.5em; background: #ff2; border-left: 1px solid #aaa' rowspan='0' | &nbsp;
 
|-
 
| colspan='2' style='font-size: 110%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Worship
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
| Tech
 
| Region
 
|- style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa'
 
|} <!-- closing worship table -->
 
  
|}<!-- closing the placement table -->
+
{{#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