User talk:Srbecker

From CACWiki

Jump to: navigation, search

User page of Stephen Becker

Contents

Feeds

Using Widget:Feed. On my todo list: use the css described at feed2js.org to make this prettier.

File:AlpinistNewswire.gif

File:Climbing.gif

File:RockAndIce.gif

This feed is from http://www.its.caltech.edu/~alpine/avyRss/esac.rss

Todo list on the wiki

javascript

see User:Srbecker/alpine.js and Common.js

A Sample Table
Sample table Description
Row 1 with content
Row 2 more content

See Widget:CheckBoxButton; and http://www.w3schools.com/JS/tryit.asp?filename=tryjs_intro for javascript sandbox.

Testing out the videoflash extension

To play a video, like http://www.youtube.com/watch?v=LM3xLshmNnk, put the following in the page (width and height are optional -- actually, they are not working so well):

<videoflash>LM3xLshmNnk|200|100</videoflash>

Example:

playing with tables

Sorting is affected by whitespaces
Name Date
Aba 1
Dad 0
Candy 3
Candy 0
Sorting is affected by whitespaces
Name Date
Aba 1
Dad 0
Candy 3
Candy 0

Testing a widget

testing Feed widget

See Feed for more info.

Testing infobox

On Dec 28 2011, I exported/imported all template files from Template:Infobox mountain on wikipedia (and installed the parser extension). Trying the following example (copied from the Mount Whitney page on wikipedia). It doesn't seem to work fully, so will see if we can debug a bit.

Edit: after importing the California location map, this seems to fail even more miserably. So I am giving up. The code was:

 
{{Infobox mountain
| name = Mount Whitney
| photo = Mount Whitney 2003-03-25.jpg
| photo_caption = [[East Face (Mount Whitney)|East Face]] close-up seen from the [[Whitney Portal]].
| elevation_ft = 14505
| elevation_ref = {{NAVD88}}<ref name="ngs"/>
| prominence_ft = 10080
| prominence_ref = <ref name="Peakbagger">{{cite peakbagger|2829|Mount Whitney, California}}</ref><br /><small>[[List of peaks by prominence|Ranked 81st]]</small> 
| parent_peak = [[Pico de Orizaba|El Pico de Orizaba]]
| map = California
| map_caption = Location in California, USA
| map_size = 240
| label_position = left
| listing = [[Ultra prominent peak|Ultra]], [[List of U.S. states by elevation|US State High Point]] of California, SPS Emblem peak <ref name="SPS">{{cite sps}}</ref>
| location = [[Sequoia National Park]] / [[Inyo National Forest]], [[California]], [[United States|USA]]
| range = [[Sierra Nevada (U.S.)|Sierra Nevada]]
| lat_d = 36.578580925 | lat_NS = N
| long_d = 118.291994950 | long_EW = W
| region = US-CA
| source = ngs
| coordinates_ref = <ref name="ngs"/>
| topo = [[United States Geological Survey|USGS]] Mount Whitney
| type = [[Granite|Granitic]]
| age = [[Cretaceous]]
| first_ascent = August 18, 1873 – Charles Begole, Albert Johnson, John Lucas <ref name="Farquhar"/>
| easiest_route = [[Mount Whitney Trail]] (hike)
}}

Simpler example of infobox

Not all the pages must have been included, because the borders and formatting are not correct. I edited Mediawiki:Common.css too, but still have problems. I think it might be best to manually follow all the instructions at [1]. There are also recommendations on exporting infobox to other wikis at [2].

Test Infobox
Example alt text

from Winter Mountaineering Trip 2011

Header defined alone
Data defined alone
All three defined (header, label, data, all with same number)
does not display (same number as a header) does not display (same number as a header)
Label and data defined (label) Label and data defined (data)
Below text
Personal tools