User talk:Melroch: Difference between revisions
No edit summary |
Cedh audmanh (talk | contribs) (→Combined regional timelines: new section) |
||
Line 11: | Line 11: | ||
Ok, thats fine but why did you delete my con-lang from the list? | Ok, thats fine but why did you delete my con-lang from the list? | ||
== Combined regional timelines == | |||
Hi BPJ, | |||
I'd like to create an article that contains a timeline for multiple regions at once, where the user can select which regions to display (similar to collapsible tables on Wikipedia, but based on {{Type|<nowiki><li></nowiki>}} tags). The events should be listed in chronological order, so each event must probably be treated as an individual entity within a {{Type|<nowiki><div></nowiki>}} tag whose class/id value is changed). I have a fairly good idea how to approach this; only I have little experience with both wiki templates and JavaScript (which I suspect might be necessary). Maybe you as the template expert of FW could help me with this? | |||
Basically, my idea is as follows: | |||
'''Timeline article''' | |||
<pre><nowiki> | |||
{{Timeline|SPHERE}} | |||
{{Event|region1|103|King of Region 1 dies.}} | |||
{{Event|region2|110|Rebellion in Region 2.}} | |||
</div> | |||
</nowiki></pre> | |||
(Note that "SPHERE" should not actually appear in the wikitext, but represents a variable containing the sphere(s) that the user wants to see. This is what must be changed dynamically.) | |||
'''Template:Timeline''' | |||
<pre><nowiki> | |||
<div class="timeline" id="{{{1}}}"> | |||
</nowiki></pre> | |||
'''Template:Event''' | |||
<pre><nowiki> | |||
<span class={{{1}}}> | |||
* {{{2}}} AD: {{{3}}}</span> | |||
</nowiki></pre> | |||
'''Common.css''' | |||
<pre><nowiki> | |||
.timeline li {display:none;} | |||
#region1 .region1 {display:inline;} | |||
#region2 .region2 {display:inline;} | |||
</nowiki></pre> | |||
With this (I think) I'd only need a way to set the {{Type|SPHERE}} variable in '''Template:Timeline''' to either {{Type|"region1"}} or {{Type|"region2"}} dynamically, based on user choice. The output should then look like so: | |||
{{Type|<nowiki>SPHERE="region1"</nowiki>}} | |||
* 103 AD: King of Region 1 dies. | |||
{{Type|<nowiki>SPHERE="region2"</nowiki>}} | |||
* 110 AD: Rebellion in Region 2. | |||
{{Type|<nowiki>SPHERE="region1 region2"</nowiki>}} | |||
* 103 AD: King of Region 1 dies. | |||
* 110 AD: Rebellion in Region 2. | |||
[[User:Cedh audmanh|cedh audmanh]] 09:30, 20 July 2008 (UTC) |
Revision as of 01:30, 20 July 2008
Quid est?
Ok, Thank you for your advise! I will take care of the vowel table! :P Ciao Bukkia
DPL
I installed the extension you asked for. I didn't get to look too well into how it works, so let me know if it doesn't and I'll check it out. —Muke Tever | ✎ 08:23, 22 April 2007 (PDT)
- I'll look at it this week. As usual Real Life has served me stuff that needs to be looked into first... BPJ 09:55, 22 April 2007 (PDT)
- However a preliminary test of the basic function worked OK: User:Melroch/sandbox#DPL_test. I'll test some of the tentinnabulas et fistulas ASAP BPJ
Ok, thats fine but why did you delete my con-lang from the list?
Combined regional timelines
Hi BPJ,
I'd like to create an article that contains a timeline for multiple regions at once, where the user can select which regions to display (similar to collapsible tables on Wikipedia, but based on <li>
tags). The events should be listed in chronological order, so each event must probably be treated as an individual entity within a <div> tag whose class/id value is changed). I have a fairly good idea how to approach this; only I have little experience with both wiki templates and JavaScript (which I suspect might be necessary). Maybe you as the template expert of FW could help me with this?
Basically, my idea is as follows:
Timeline article
{{Timeline|SPHERE}} {{Event|region1|103|King of Region 1 dies.}} {{Event|region2|110|Rebellion in Region 2.}} </div>
(Note that "SPHERE" should not actually appear in the wikitext, but represents a variable containing the sphere(s) that the user wants to see. This is what must be changed dynamically.)
Template:Timeline
<div class="timeline" id="{{{1}}}">
Template:Event
<span class={{{1}}}> * {{{2}}} AD: {{{3}}}</span>
Common.css
.timeline li {display:none;} #region1 .region1 {display:inline;} #region2 .region2 {display:inline;}
With this (I think) I'd only need a way to set the SPHERE
variable in Template:Timeline to either "region1" or "region2" dynamically, based on user choice. The output should then look like so:
SPHERE="region1"
- 103 AD: King of Region 1 dies.
SPHERE="region2"
- 110 AD: Rebellion in Region 2.
SPHERE="region1 region2"
- 103 AD: King of Region 1 dies.
- 110 AD: Rebellion in Region 2.
cedh audmanh 09:30, 20 July 2008 (UTC)