Skip to Page Content

EP's Sandbox

From WolfWikis

Jump to: navigation, search

Here is where I'll be testing things.


Column Header Column Header
Data Data
<table border="1" cellspacing="0">
  <tr>
    <th>Column Header</th>
    <th>Column Header</th>
  </tr>
  <tr>
    <td>Data</td>
    <td>Data</td>
  </tr>
</table>



Test of enabling the <embed> tag:

<object width="625" height="544"><param name="movie" value="http://www.youtube.com/v/S8EbDmhzRKQ&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/S8EbDmhzRKQ&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="625" height="544"></embed></object>
<object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=enaarslidesharebeautifuloldtrains-090830113742-phpapp02&stripped_title=beautiful-old-trains"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=enaarslidesharebeautifuloldtrains-090830113742-phpapp02&stripped_title=beautiful-old-trains" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>

Test of embedding a YouTube video (relies on the EmbedVideo extension):

Professional cyclist Lance Armstrong breaks away on the final 14km (8.7 mile) climb up L'Alpe D'Huez in the 2001 Tour de France.

To make this work, insert the following code at the desired location:

{{#ev:youtube|GHJErrp4eOw}}

Where the right-most portion is the identifier of the YouTube video (in this case: http://www.youtube.com/watch?v=GHJErrp4eOw).



Test of the <span> tag:

Some differently colored text.

Some <span style="color:#cc0000">differently</span> <span style="color:#00cc00">colored</span> <span style="color:#0000cc">text</span>.

The word "tooltip" should show a tooltip when you hover the mouse over it.

The word "<span title="This is a tooltip." style="border-bottom:1px dotted">tooltip</span>" should show a tooltip when you hover the mouse over it.



Using the "Cite" extension

See http://meta.wikimedia.org/wiki/Cite/Cite.php

Note the superscripts after each cited statement:

 According to scientists, the Sun is pretty big.[1]
 The Moon, however, is not so big.[2]

These point to the "Notes" section at the bottom of this page. (This section does not have to be at the bottom, nor does it have to be called "Notes".)

Here's how to make these citations.

Wrap the citation in "ref" tags, like this:

According to scientists, the Sun is pretty big.<ref>E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.</ref>

The Moon, however, is not so big.<ref>R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.</ref>

Then, somewhere else on the page (such as the bottom), put in this tag:

<references/>



Deleting a Page

We need to confirm that a page and all its previous versions can truly be removed.

Under our current configuration, regular users can delete pages and uploaded files.

But, just to be sure, let's create a test page, modify it a bunch of times to generate a version history, and then we'll try to delete it completely, once and for all.

Eric Pauley's Deletion Test Page

Here is a screenshot of the version history before deletion:

Screenshot of a file version history

After logging in as the admin user and deleting the page, we see this screen:

Screenshot of page seen after deleting a page

Note the link to "View or restore 4 deleted edits?"

Now, if we log in as a regular user, and we try to view that page, all we see is:

"Editing Eric Pauley's Deletion Test Page

You've followed a link to a page that doesn't exist yet.

To create the page, start typing in the box below (see the help page for more info).
If you are here by mistake, just click your browser's back button."

Warning: You are recreating a page that was previously deleted.

You should consider whether it is appropriate to continue editing this page. The deletion log for this page is provided here for convenience:

    * 14:48, 14 November 2006 Admin (Talk | contribs) deleted "Eric Pauley's Deletion Test Page" ‎ (Test of deleting a page and all its previous versions) (restore)

There is no link to a history. Clicking the "restore" link displays a message that "The action you have requested is limited to users in the group Sysops."

Logging back in as the admin user and viewing the deleted page still shows the "View or restore 4 deleted edits?" link.

This links to a Special:Undelete page, which looks like this:

Screenshot of the undelete page

So, in theory, a page does not actually go away, and if a new page is created with the same name, these old pages will re-appear in that page's history.

Regular users can see this deletion history page.

Apparently there is no way to delete the old versions except to remove the records from the database directly.


Adding images, specifying required "alt" tags, and changing display options


Adding a basic image:

Image of Big Bad Wolf

[[Image:big_bad_wolf.png|Image of Big Bad Wolf]]

IMPORTANT: Descriptive text after the "|" symbol is required by NCSU regulations regarding web accessibility. Section 508 of the Workforce Rehabilitation Act of 1973 specifies that "A text equivalent for every non-text element shall be provided (e.g., via "alt", "longdesc", or in element content)."



Adding a frame, and placing the image in the center:

Image of Big Bad Wolf
Image of Big Bad Wolf

[[Image:big_bad_wolf.png|frame|center|Image of Big Bad Wolf]]


Adding a frame, and placing the image on the right:

Image of Big Bad Wolf
Image of Big Bad Wolf

[[Image:big_bad_wolf.png|frame|right|Image of Big Bad Wolf]]








Adding a default "thumbnail" of an image (right-justified with a frame):

Thumbnail image of Skillet.jpg
Thumbnail image of Skillet.jpg

[[Image:Skillet.jpg|thumb|Thumbnail image of Skillet.jpg]]

NOTE: This option was enabled on February 12, 2008 (after we migrated to new servers with additional functionality).


Adding a "thumbnail" of an image, specifying the width (100 pixels) of the thumbnail:

Thumbnail image of Skillet.jpg

[[Image:Skillet.jpg|100px|Thumbnail image of Skillet.jpg]]


Image:LookRock2007030918.jpg

The above image was deleted by EP as a test. A normal user can delete images.



Renaming (Moving) a Page

Let me create Eric's Test Page. Now, I renamed that page, so it should now point to EP's Test Page.



Displaying Special Characters

There are two ways to do this.

The first is simply to place your cursor at the location where you want the special character to appear, then click one of the "Special Characters" shown at the bottom of the editing page.

Here are some examples: Θ Ĉ ß β {{}} Σ Ω

A second way is to use "HTML character entities." The basic syntax is:

&XXXX;

where "XXXX" is the name of an "entity". There are many such special characters you can use. See a big List of XML and HTML character entity references on Wikipedia.

Some fun examples of XXXX include:

amp
reg
micro
frac34
eacute
ouml
Sigma
zeta
permil
euro
empty
infin
sub
radic

These will give:

& ® µ ¾ é ö Σ ζ ‰ € ∅ ∞ ⊂ √


Back Button

Someone was wanting to know how to put a "Back" button on their page. Of course, remember that the normal "Back" button on the browser always does exactly what you want (jumps back one page in its history).

Assuming that is just not satisfactory, there are a few ways to achieve equivalent functionality.

  • The simplest way is to create a direct link back to a specific page, like this:
<< Back to [[Wiki_Commons]]

(You would replace "Wiki_Commons" with the name of the page you want to go back to.)

<< Back to Wiki_Commons

<< Back to Wiki Commons (without the underscore)


  • In a regular web page, you can embed a little HTML and JavaScript code to cause the browser to jump back 1 page:
<script language="JavaScript" type="text/javascript">
<a href="javascript:history.go(-1)">Go Back</a>
</script>

However, if I do this, it doesn't actually draw a clickable link:

<script language="JavaScript" type="text/javascript"> <a href="javascript:history.go(-1)">Go Back</a> </script>

These "<script>" tags will not work in this wiki. Raw JavaScript code is not permitted here, because JavaScript can represent a major security risk. Sorry about that. (JavaScript can be used in good ways, or it can be used in all manner of bad and malicious ways. It's best to be conservative with something that can have thousands of users.)

  • Conceivably, we could code a Back button into the code that draws ALL wiki pages, but that would force every page to have a back button.

Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

These sources are completely disreputable and have long been discredited. Ergo, the moon is bigger than the sun.

test

Personal tools

Wiki Stats

Users:  7,044
Pages:  3,893
Uploads:  4,704
Views:  4,403,538
Edits:  90,561