|
|
(34 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | {|align=center width=100% border=0 cellpadding=10 style='background:#EFDFBD'
| + | <noinclude> |
− | |- align=center
| + | links i might want to read up on if i get back around to working on things like this |
− | |<!-- 1st up is arch -->
| + | *http://en.wikipedia.org/wiki/Template:Navbox#Style_parameters |
− | {|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
| + | =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> |
− | | style='width: 0.5em; background: #f80; border-right: 1px solid #aaa' rowspan='0' |
| + | 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! |
− | | 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: #f80; border-left: 1px solid #aaa' rowspan='0' |
| + | 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 |
− | |-
| + | |
− | | colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Architecture
| + | http://semantic-mediawiki.org/wiki/Semantic_MediaWiki |
− | |-
| + | |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Tech
| + | http://semantic-mediawiki.org/wiki/Help:Selecting_pages |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| + | |
− | |-
| + | Anyway |
− | |}
| |
| | | |
− | |<!-- next to arch is art -->
| + | here's a thought for making this somewhat useful |
− | {|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
| |
− | |-
| |
− | | style='width: 0.5em; background: #0cf; border-right: 1px solid #aaa' rowspan='0' |
| |
− | | 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' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; 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
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |}
| |
| | | |
− | |- align=center
| + | I was thinking of the alternating background deal |
− | |<!-- 3rd comes body -->
| |
− | {|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
| |
− | |-
| |
− | | style='width: 0.5em; background: #4f4; border-right: 1px solid #aaa' rowspan='0' |
| |
− | | 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' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Architecture
| |
− | |-
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Tech
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |-
| |
− | |}
| |
| | | |
− | |<!-- 4th is harmony -->
| + | which can become convoluted |
− | {|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
| |
− | |-
| |
− | | style='width: 0.5em; background: #c0f; border-right: 1px solid #aaa' rowspan='0' |
| |
− | | 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' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; 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
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |}
| |
| | | |
− | |- align=center
| + | so, I'd need an even or an odd for which background color goes first |
− | |<!-- 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' |
| |
− | | 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' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Architecture
| |
− | |-
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Tech
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |-
| |
− | |}
| |
| | | |
− | |<!-- 6th is thought-->
| + | and without currently knowing a looping thing, I'll just have to do it with if statements & give it a limited number of cells |
− | {|style='border: 1px solid #000; border-spacing: 0; width: 20em; '
| |
− | |-
| |
− | | style='width: 0.5em; background: #f44; border-right: 1px solid #aaa' rowspan='0' |
| |
− | | 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: #f44; border-left: 1px solid #aaa' rowspan='0' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; 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
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |}
| |
| | | |
− | |- align=center
| + | yea, that'll work, it won't work perfectly, but it'll work |
− | |<!-- 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' |
| |
− | | 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' |
| |
− | |-
| |
− | | colspan='2' style='font-size: 90%; font-weight: bold; text-align: center; padding: 0.2em 0.5em 0' | Architecture
| |
− | |-
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Tech
| |
− | | style='text-align: center; font-weight: bold; font-size: 80%; padding: 0; width: 50%; border-bottom: 3px double #aaa' | Region
| |
− | |-
| |
− | |}
| |
| | | |
− | |}<!-- closing the placement table -->
| + | for simplicity sake I'm going to leave the row marker out for now |
| | | |
| | | |
− | <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) | + | ==usage== |
| + | <nowiki>{{ template | even/odd | background1 | background 2 | data | data | data | data | data | data | data | data | data | data }}</nowiki> |
| | | |
− | yea, it sounds like a big project
| + | It takes in up to 10 data cells (why 10? because, that's why) |
| | | |
− | and a lot of junk in the template ;)
| + | 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 |
| | | |
− | ah but it'll be COOL!</noinclude>
| + | </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... |
| | | |
− | ![[{{{1}}}]]
| + | Or can I |
− | |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}}
| |
| | | |
| + | yea I've a few ideas |
| + | Though I haven't gotten them working just yet |
| | | |
− | fume=1
| + | But this latest idea was mmm convoluted I suppose. |
− | advanced animal husbandry=1
| + | 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. |
− | 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
| |
| | | |
| + | 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}} |
| | | |
− | ----
| |
| | | |
− | *Architecture = #f80
| + | it's not going so well yet |
− | *Art = #0cf
| |
− | *Body = #4f4
| |
− | *Harmony = #c0f
| |
− | *Leadership = #44f
| |
− | *Thought = #f44
| |
− | *Discipline = #ff2
| |
| | | |
− | MidnightBlue, me, SaiCoSis, Heplotep, Waerloga, Pandemonis
| + | can't really tell what is being handed to the template |
− | ----
| + | so i can't do a #switch on it |
− | [[Template:Sidebar Discipline]]
| + | </noinclude> |
− | {| style='border: 1px solid #000; border-spacing: 0; width: 20em; float: right; clear: right; margin: 1em'
| + | {| border=2 style='background:transparent' |
− | |-
| |
− | | style='width: 0.5em; background: {{{1}}}; border-right: 1px solid #aaa' rowspan='0' |
| |
− | | 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' |
| |
− | |-
| |
− | | 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'' | + | {| 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}}}}}
| |
− | |}
| |
− | </noinclude>
| |
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
- {{{c1x}}}, {{{c1y}}}
{{{c1x}}}, {{{c1y}}},{{{d1}}} {{{c1x}}}, {{{c1y}}}
|
|