User:Ldrew/Sandbox

What Is On This Sandbox Page?
I've added various examples of coding in this sandbox that are problems for most users. Please look at the wikitext used to create the items, but don't change it.

Look but don't touch.

Hopefully, the code will help you with the wiki articles you are editing.

Codes that fail due to the FS Wiki CSS code
This is Superscript


 * Superscript


 * Superscript Fails

This is Subscript


 * Subscript


 * Subscript Fails

Smaller text


 * smaller text


 * Small code Fails

Hello Big


 * Hello Big


 * Big code Fails

Nested code: Span Code Green Text


 * Span Code Green Text


 * Green font code works but the Big code fails.

Using HTML Tags

 * This is some text! Font size 3. Only color code works - not the font size.
 * This is some text! Font size 2. Only color code works - not the font size.
 * This is some text! Font Verdana. Only color code works - not the font type.

Using Span in Wikitext

 * Using Span for 150% Font Size



Using Span for 150% Font Size

Backgrounds
The wiki rarely uses dark backgrounds behind text due to the wiki Style documentation but on rare occasion, it is necessary to add them.

The command to create them are simple as seen below with the text in white and the background in blue:

blue background

blue background

In Page Links via Bookmark - hashtag
You can link to different sections in the same article by the use of a hash tag (#).

In this example, the link goes to the Images section of this page.

Here's the code that created this link: Images

Because the link is internal to the wiki double brackets are used with a pipe separating the link from the word image that appears in the sentence. The hashtag is inserted after the page address and just before the name of the section header -- 'Images' in this particular case.

Behavior Switches
For documentation, refer to the section of the MediaWiki page.

Templates

 * Maintenance Templates


 * Templates Index


 * Category Templates


 * Templates Category Index


 * License Templates


 * Help Templates Index


 * Magic Words - Wikipedia

Spanish
Change the start and end pipes to curly brackets

Supporting templates for the Information template have not been added to the non-English wiki's yet. The above translations will eventually be used for those wiki's when all of the templates are added ... IF ... the choice is made to NOT use English for Templates.

Table format for use until templates are installed.

FHL Library Catalog Link Example Code

 * FHL Library Catalog Template
 * Test of Template:

Guidelines




Images

 * Captions only show if the image is called when either the frame or thumb parameter is used. Unfortunately, the current Rich Text Editor, overwrites the caption with the image file name whenever anything on the page is edited. We recommend you use the Captioned template (below) if you want a to add or retain a caption to an image.


 * See Help - Images







Captioned Image Template
If you want to add an image that always retains its caption, use the Captioned Template.

It is very easy to use. Just call the template by name ( Captioned ), fill in the template fields with the name of the image, the size, the location you want it on the page and finally with the caption. Each item is separated with a pipe ( | ).

Start the template with the left curly brackets

An example of a fully populated template is:

That produces the image in the article on the right side, sized at 200px and with the caption of "Field of Sunflowers".

It is just that easy to use.

Image Gallery
If you are adding multiple images in a cluster, try the Gallery command.

Full Article Width Image
The main article width of the wiki is 650px. If you include a large image prior to the article extending below the right nav bar, you need to limit the width of any image to 640px. That width will keep the image from showing under the right nav bar and will also keep text from flowing around it in a vertical rope of characters that are unreadable.

Here's an example using the full width of the text body to display the Russian Alphabet Key.




 * Example: The [[Image:Russian Alphabet Key.pdf|Russian Alphabet Key]] form is extremely useful in deciphering written Cyrillic text.

Bullets and Numbered Lists
Bullet List and Number Lists: Displayed and the WikiText used to build them:

User Boxes
How to you build a list of userboxes on your User Page?

Start by adding this code to your userpage where you want to add your userboxes:

( Note: align right, left or center.)

Next add the template code for the user box(es) that relate to your activities, skills and affiliations.

Some examples are:        etc. (Note the separation of each by a space).

End the userbox array with this code:

The userboxes will now show on your user page and look like those to the right.

If your list of user boxes is long, you may want to include collapsible sections.

The code to add a collapsible section is easy to add with some simple code. The collapsible section for a Communities section looks like this: (See it in action to the right.)

(Note: The section description "Communities" and the link to the wiki article named "FamilySearch_Communities")

The next item to add is the collapsible box template which starts with:

An example of code for a collapsible FamilySearch Communities userbox section looks like this:

You can add as many or few to the list as you want. Just copy the code above and modify it to fit your desire.

Each new item has to start with a pipe | .... then a number in consecutive order followed by the equals sign and then the userbox code.

|1=

Be sure to close the section with two curly brackets. }}

You can have many different sections in your userbox frame. Just choose the title for each section, add the appropriate opening statement and link and then add the code for the userbox templates that you want in that section. Close the userbox with the code shown in the above examples.

Here are two userpages that demonstrate collapsible userboxes:


 * Cottrells
 * Ldrew

The list of available userboxes is found at: 


 * Userboxes

Tables
Table without borders

Table with borders

Table using prettytable

Table with colored backgrounds

More External Test Links

 * Tracing LDS Ancestors
 * Famhist
 * WikiText Cheatsheet

World Map Clickable
__NORICHEDITOR__

Help Wanted
To add your knowledge and help expand the wiki click here:

Utah Counties Navigation Box
United States Utah  Duchesne County

Replace Function
Testing of the #replace function:


 * 1) replace:My+little+home+page|+|_ answers
 * 2) replace:My little home page| |+ answers
 * 3) replace:My little home page| |_ answers

Amp and FSK Code Injection Testing
WIKITEXT TEST 

BOLTON-LE-SANDS (St. Michael), a parish, in the hundred of Lonsdale south of the Sands, N. division of the county of Lancaster.

"BOLTON-LE-SANDS St Michael, a parish, in the hundred of Lonsdale south of the Sands, N. division of the county of Lancaster, is 4 miles north of Lancaster.

FSK EDITOR TEST

"BOLTON-LE-SANDS St Michael, a parish, in the hundred of Lonsdale south of the Sands, N. division of the county of Lancaster, is 4 miles north of Lancaster.

It is noted that it was the Second Foundation which ensured that the famed library would survive the sacking to Trantor and the destruction of its urban culture – especially significant, considering that the library was vital to the Second Foundation itself.

HOLMES IV ("High-Optional, Logical, Multi-Evaluating Supervisor, Mark IV") is the Lunar Authority's master computer, having almost total control of Luna's machinery on the grounds that a single computer is cheaper than (though not as safe as) multiple independent systems.

Developing a U.S. County Article

TANSTAAFL = An acronym for There Ain't No Such Thing As A Free Lunch!

Surrounding Communities Box
Template can use too many calls. Maximum of 99 calls (links) (Too many expensive parser function calls) per box to avoid heavy parser error. This type of a box has the potential to include several hundred links. Be careful! Keep the count under 100. See Admin Maintenance Other for details