Tweak

InsaneJournal

Tweak says, "bobo"

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

This Is An Example ([info]this_example) wrote in [info]rp_tutorials,
@ 2010-04-26 19:49:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:coding: calendar, resources: game creation

Calender Codes
Below are some codes to make small calenders to help keep track of IC and OOC events and days. They are especially useful for games where the IC date and the OOC date don't match, for whatever reason. I've cobbled together a couple versions of the code, so hopefully one will suit your needs!

Also, this is my first post here, so be nice. ._.



IC and OOC Dates Match

If you play in real time or if only the years are different between the real dates and game dates, the following code is probably for you.

April
SuMoTuWeThFrSa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30




This is the simplest code to modify. You can change the width of the table and the height of the rows to make it fit your needs, and this table can work at a much small size.

IC and OOC Dates Don't Match

This table is a little more complex and uses a lot of nested tables to make it work, but it's easy to modify once you get the hang of it.

April
September/October
SuMoTuWeThFrSa
1
19
2
20
3
21
4
22
5
23
6
24
7
25
8
26
9
27
10
28
11
29
12
30
13
1
14
2
15
3
16
4
17
5
18
6
19
7
20
8
21
9
22
10
23
11
24
12
25
13
26
14
27
15
28
16
29
17
30
18




The code above is completely blank, unlike the example calender that's displayed. To modify a day/square to contain an OOC event, replace this code:


with this code:


For an IC event, replace with this code:


And repeat to infinity. It's a touch tedious, but the end result is really tidy so I think it's worth it.

Magical Year Long Calender

For this cool trick, you'll need the codes listed above plus a few more:
 
March
August/September
April
September/October


 
March
August/September
SuMoTuWeThFrSa
1
18
2
19
3
20
4
21
5
22
6
23
7
24
8
25
9
26
10
27
11
28
12
29
13
30
14
1
15
2
16
3
17
4
18
5
19
6
20
7
21
8
22
9
23
10
24
11
25
12
26
13
27
14
28
15
29
16
30
17
31
18
PreviousTopNext


 
April
September/October
SuMoTuWeThFrSa
1
19
2
20
3
21
4
22
5
23
6
24
7
25
8
26
9
27
10
28
11
29
12
30
13
1
14
2
15
3
16
4
17
5
18
6
19
7
20
8
21
9
22
10
23
11
24
12
25
13
26
14
27
15
28
16
29
17
30
18
PreviousTopNext


Nifty, yes? Give your love to [info]wastintime, I used her hidden tables tutorial to do it. But here's the modified codes.

First start with this:


This is the code that starts the hidden tables and also makes the visible table with all the months of the year on it. You can add in all the months of the year or just as many as you have, doesn't matter. Just make sure that the links go to the right months.

Next, copy and past in the code for each of your monthly calenders. It doesn't even matter if they're in order or not, just so long as you put this at the top:


and this at the bottom:


For the bottom code, don't forget to take out your extra /table tag.

place in a /div tag after the last monthly calender and presto! Magic hidden tables.


(Read comments) - (Post a new comment)


[info]sharizard
2010-04-27 04:09 am UTC (link)
I love this, I'll have to master this code a bit, but it's good practice! Thanks so much for sharing!

(Reply to this)


(Read comments) -


Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs