User:Ldrew/Sandbox

From FamilySearch Wiki

(Difference between revisions)
m
m
Line 394: Line 394:
 
*'''Reference 5''' -- '''''An existing reference with a call to an external site. Note Cite Web statement in the template being used.'''''
 
*'''Reference 5''' -- '''''An existing reference with a call to an external site. Note Cite Web statement in the template being used.'''''
  
<ref name="MercyBio">{{cite web|url= http://www.nbc.com/mercy/bios/taylorSchilling.shtml|title= Mercy: Cast Bios: Taylor Schilling|accessdate= 2009-08-05|publisher= NBC}}</ref> <nowiki><ref name=MercyBio>{{cite web|url= http://www.nbc.com/mercy/bios/taylorSchilling.shtml|title= Mercy: Cast Bios: Taylor Schilling|accessdate= 2009-08-05|publisher= NBC}}</ref></nowiki>  
+
<ref name="MercyBio">{{cite web|url= http://www.nbc.com/mercy/bios/taylorSchilling.shtml|title= Mercy: Cast Bios: Taylor Schilling|accessdate= 2009-08-05|publisher= NBC}}</ref> <nowiki><ref name=MercyBio>{{cite web|url= http://www.nbc.com/mercy/bios/taylorSchilling.shtml|title= Mercy: Cast Bios: Taylor Schilling|accessdate= 2009-08-05|publisher= NBC}}</ref></nowiki>
 +
 
 +
==== More Reference Use Examples ====
 +
 
 +
This is the text which you are going to verify with a reference.<ref>Reference details go here</ref><br>This is the text which you are going to verify with a reference.<ref>Another reference</ref><br>This is the text which you are going to verify with a reference.<ref>A third reference</ref><br>This is the text which you are going to verify with a reference.<ref>More references</ref><br>This is the text which you are going to verify with a reference.<ref>Next one is a link</ref><br>This is the text which you are going to verify with a reference.<ref>http://www.FamilySearch.org</ref><br>This is the text which you are going to verify with a reference.<ref>No more links</ref><br>Just some text<br>Just some text<br>
  
 
=== How the References will Display  ===
 
=== How the References will Display  ===

Revision as of 20:51, 26 August 2013

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.


Font Codes

Looks Like Code
red words <span style="color:red">red words</span>
green words <span style="color:green">green words</span>
blue words <span style="color:blue">blue words</span>
Strike-through Words <strike>Strike-through Words</strike>


Codes that fail due to the FS Wiki CSS code

This is Superscript

  • <sup>Superscript</sup>
  • Superscript Fails

This is Subscript

  • <sub>Subscript</sub>
  • Subscript Fails

Smaller text

  • <small>smaller text</small>
  • Small code Fails

Hello Big

  • <big>Hello Big</big>
  • Big code Fails

Nested code: Span Code Green Text

  • <big><span style="color:green">Span Code Green Text</span></big>
  • 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
  • <span style="font-size:150%">Using Span for 150% Font Size</span>



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:

<span style="color:white; background:blue">blue background</span>


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: [[User:Ldrew/Sandbox#Images|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 mw:Behavior Switches section of the MediaWiki page.

Word Description
__NOTOC__ (can appear anywhere in the wikitext; suppresses the table of contents)
__FORCETOC__ (can appear anywhere in the wikitext; makes a table of contents appear in its normal position above the first header)
__TOC__ (places a table of contents at the word's position)
__NOEDITSECTION__ (hides the section edit links beside headings)
__NEWSECTIONLINK__ (adds a "+" link for adding a new section on a non-"Talk" page)
__NONEWSECTIONLINK__ (removes the "+" link on "Talk" pages)
__NOGALLERY__ (on a category page, replaces thumbnails with normal links)
__HIDDENCAT__ (on a category page, makes it a hidden category)
__INDEX__ (tells search engines to index the page)
__NOINDEX__ (tells search engines not to index the page)
{{DISPLAYTITLE:title}} (changes the displayed form of the page title)
{{DEFAULTSORT:sortkey}} (sets a default category sort key)


Templates


Spanish

Template:Información

{|Información |Descripción= |Fuente= |Fecha= |Autor= |Permiso= |} 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.

Description = Example
Source = Name of Creator or Repository
Date = Date Created
Author = Name of Creator
Permission = Name of Person or Organization that granted the use of the image or document.

FHL Library Catalog Link Example Code


Online Course Badge

Hands on keyboard.png Genealogy courses: Learn how to research from an expert in genealogy training - training center videos.




Guidelines

Blue check.png This page documents a guideline. It is a generally accepted standard that contributors should attempt to follow, though it is best treated with common sense and the occasional exception.

Any substantive edit to this page should reflect consensus. When in doubt, discuss first on the talk page.

 
  • {{Guideline}}




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.


Tip Post it Pin


American fork tabernacle.jpg

American fork tabernacle.jpg






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 ( | ).

Example.jpg
Field of Sunflowers

Start the template with the left curly brackets ( {{ ) add the above information and close with the right curly brackets ( }} )

An example of a fully populated template is:

{{Captioned|Example.jpg|200px|right|Field of Sunflowers}}

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. <gallery> as seen below. Click to edit this section to see how easy it was to create this gallery. Note the use of pipes ( | ) and how the commands are stacked on the page.



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.


Russian Alphabet Key.png
 





Detailed Image Information Template

Doomsday Book - Counties of England - 1086.png


Description

Counties of England in the year 1086, as documented in the Domesday Book, after the Norman Conquest. The English counties of Northumberland, Durham, Cumberland and Westmoreland in the far North had not yet been conquered and were a de facto no mans land.

Source

Wikimedia Commons

Date

2009 (image created)

Author

Thomas Gun

Permission

See Licensing Below


Licensing

[[<wm-license-cc-wiki-link>]]
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.


Fat Horizontal Line



Adopt-a-page

Wfgs+logo.gif This user is a member of The http://www.famhist.us/

FamHist with the Lineagekeeper and its members, an organization that has adopted some pages in the wiki.

FHAM.JPG This user is a member of The [http://familysearch.org/

Family History Association of Maine] and its members, an organization that has adopted some pages in the wiki.









References

Reference examples in wikitext

  • Reference 1 -- Simple reference call to an external site

[1] <ref>Taylor Shilling - Lucky One[http://www.pottsmerc.com/article/20120415/ENTERTAINMENT01/120419817/taylor-schilling-is-truly-the-lucky-one-]</ref>

  • Reference 2 -- The reference includes a template used to call out books and resources at the FHL - Template valid on the FS Wiki only

[2] <ref>William Francis Galvin, ''Historical Data Relating to Counties, Cities and Towns in Massachusetts'' (Boston, new ed., 1997), 93. [http://www.worldcat.org/oclc/37416784 WorldCat (Other Libraries)]; {{FHL|677425|item|disp=FHL book 974.4 H2h 1997}}</ref>

  • Reference 3 -- This sites a reference named SouthCoastToday that has already been created on a wiki

[3] <ref name=SouthCoastToday>{{cite web|url= http://www.southcoasttoday.com/apps/pbcs.dll/article?AID=/20090506/NEWS/905060331/-1/news|title= Mercy! Daughter of New Bedford lawyer lands lead role in NBC drama|accessdate= 2009-08-05|author= Curt Brown|date= 2009-05-06|publisher= SouthCoastToday.com}}</ref>

  • Reference 4 -- A similar call to an existing reference. The date and other items may be different than the original external reference page / site.

[4] <ref>{{cite web|title=Taylor Schilling Biography|url=http://movies.yahoo.com/person/taylor-schilling/biography.html|publisher=Yahoo! Movies|accessdate=21 April 2012}}</ref>

  • Sample reference call referring to existing reference

<ref name=SouthCoastToday/>

  • Reference 5 -- An existing reference with a call to an external site. Note Cite Web statement in the template being used.

[5] <ref name=MercyBio>{{cite web|url= http://www.nbc.com/mercy/bios/taylorSchilling.shtml|title= Mercy: Cast Bios: Taylor Schilling|accessdate= 2009-08-05|publisher= NBC}}</ref>

More Reference Use Examples

This is the text which you are going to verify with a reference.[6]
This is the text which you are going to verify with a reference.[7]
This is the text which you are going to verify with a reference.[8]
This is the text which you are going to verify with a reference.[9]
This is the text which you are going to verify with a reference.[10]
This is the text which you are going to verify with a reference.[11]
This is the text which you are going to verify with a reference.[12]
Just some text
Just some text

How the References will Display


  1. Taylor Shilling - Lucky One [1]
  2. William Francis Galvin, Historical Data Relating to Counties, Cities and Towns in Massachusetts (Boston, new ed., 1997), 93. WorldCat (Other Libraries); FHL book 974.4 H2h 1997
  3. Curt Brown (2009-05-06). "Mercy! Daughter of New Bedford lawyer lands lead role in NBC drama". SouthCoastToday.com. http://www.southcoasttoday.com/apps/pbcs.dll/article?AID=/20090506/NEWS/905060331/-1/news. Retrieved 2009-08-05. 
  4. "Taylor Schilling Biography". Yahoo! Movies. http://movies.yahoo.com/person/taylor-schilling/biography.html. Retrieved 21 April 2012. 
  5. "Mercy: Cast Bios: Taylor Schilling". NBC. http://www.nbc.com/mercy/bios/taylorSchilling.shtml. Retrieved 2009-08-05. 
  6. Reference details go here
  7. Another reference
  8. A third reference
  9. More references
  10. Next one is a link
  11. http://www.FamilySearch.org
  12. No more links


Bullets and Numbered Lists

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

Looks Like Code
*Bullet List *Bullet List
#Numbered List #Numbered List



User Boxes

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

Flag of the United Kingdom.png This user lives in the United Kingdom.

Volunteers wanted II.jpg

This user is a Wiki Volunteer participating in the Help Wanted Project.
Billiongraves twitter icon.png This user is a contributor to the BillionGraves database of cemetery records.
Flag of England.png This user is of English ancestry.
Flag of Denmark.png This user is of Danish ancestry.
Broom icon.png This user likes to cleanup the wiki.
Flag of Norway.png This user is of Norwegian ancestry.
Flag of Italy.png This user is of Italian ancestry.

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

{{User box top|align=right}}   (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: {{User United States}} {{User Sweden GRC}} {{User Wiki Volunteer}} {{User BillionGraves}} {{User English}} {{User Danish}} {{User Wiki Maintenance}} etc. (Note the separation of each by a space).

End the userbox array with this code: {{User box bottom}}

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")

{{userboxbreak|toptext=[[FamilySearch Communities|Communities]]}}

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

{{Collapsible list and will eventually end with double curly brackets }}

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

{{userboxbreak|toptext=[[FamilySearch Communities|Communities]]}} {{Collapsible list |1={{User Denmark GRC}} |2={{User England GRC}} }}

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={{User Denmark GRC}}

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:

The list of available userboxes is found at:





Tables

Table without borders

Example Example Example
Example Example Example
Example Example Example
Example Example Example


Table with borders

Example Example Example
Example Example Example
Example Example Example
Example Example Example


Table using {{prettytable}}

one two three
four five six
seven eight nine


Table with colored backgrounds

Name Age Phone
Joe 35 555-555-5555
Maxine 29 333-333-3333



InfoBox Examples

Next Step: When did the birth occur?

Choose a time period to search for your ancestor's birth record:



Appling County, Georgia
Map
Map of Georgia highlighting Appling County
Location in the state of Georgia
Facts
Founded December 15, 1818
County Seat Baxley
Courthouse
Columbia County Georgia Courthouse.jpg
Address Appling County Courthouse
83 South Oak Street
Baxley, Georgia 31513-2097
Phone: 912.367.8100
Appling County Website


More External Test Links


Image Maps


Hot Spots to State Main Pages

AlabamaAlaskaArkansasCaliforniaArizonaColoradoConnecticutDelawareFloridaGeorgiaHawaiiIdahoIllinoisIndianaIowaKansasKentuckyLouisianaMaineMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaNevadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaOhioOklahomaOregonPennsylvaniaRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirginiaWashingtonWest VirginiaWisconsinWyomingWashington D.C.USimagemap.jpg


Hot Spots to State Help Pages

AlabamaAlaskaArkansasCaliforniaArizonaColoradoConnecticutDelawareFloridaGeorgiaHawaiiIdahoIllinoisIndianaIowaKansasKentuckyLouisianaMaineMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaNevadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaOhioOklahomaOregonPennsylvaniaRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirginiaWashingtonWest VirginiaWisconsinWyomingWashington D.C.USimagemap.jpg

World Map Clickable

CanadaUnited StatesMexicoRussiaAustraliaNew ZealandEnglandScotlandIirelandNorwaySwedenFinlandJapanChinaNorth KoreaSouth KoreaGreenlandIndiaMongoliaBrasilChileArgentinaUruguayParaguayBoliviaPeruEcudorColombiaVenezuelaGuyanaSurinameFrench GuianaCubaPuerto RicoPanamaCosta RicaHondurasEl SalvadorGuatemalaBelizeHaitiDominican RepublicCaribbean IslandsThe BahamasSouth AfricaLesothoSwazilandMadagascarMozambiqueZimbabweBotswanaNamibiaMalawiZambiaAngolaTanzaniaBurundiRwandaUgandaKenyaDemocratic Republic of the CongoCongoGabonEquatorial GuineaCameroonCentral African RepublicEgyptSudanSomaliaEthiopiaDjiboutiEritreaLibyaChadNigeriaNigerBeninTogoGhanaCote d'IvoireLiberiaSierra LeoneGuineaGambia Guinea-BissauBurkina FasoMaliSenegalMauritaniaWestern SaharaMoroccoAlgeriaTunisiaIcelandYemenOmanUnited Arab EmiratesBahrainSaudi ArabiaKuwaitIraqIsraelJordanSyriaLebanonIranTurkeyGreeceBulgariaMacedoniaAlbaniaRomaniaMoldovaSerbiaMontenegroCroatiaSloveniaHungaryAustriaSwitzerlandItalySpainPortugalFranceBelgiumNetherlandsGermanyDenmarkPolandCzech RepublicUkraineBelarusLithuaniaLatviaEstoniaKazakhstanUzbekistanTurkmenistanKyrgyzstanTajikistanAfghanistanPakistanBangladeshNepalBhutanMeghalaya Assam Nagaland ManipurMyanmarThailandLaos CambodiaVietnamPhilippinesMalaysiaBruneiIndonesiaPapua New GuineaPacific IslandsWorld Map 640px.png





Regions

Help Wanted by Region
North America Europe
South America Middle East
Africa Asia
Australia / Pacific

Help Wanted

Volunteer Help Wanted

Volunteers wanted 3.png
Volunteer Help Wanted
Help us improve and expand the wiki.

Help the wiki grow by adding, expanding, and refining articles. Regardless of your level of research and writing expertise, there's a place for you.

Join the Wiki Volunteer Team today.

Help Wanted

Wiki Volunteers Wanted

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



Stub Articles

Adoption Template

Genealogical Council of Oregon logo.jpg This user is a member of Genealogical Council of Oregon, an organization that has adopted some pages in the wiki.
Wikipedia
Wikipedia has more about this subject: Multnomah County, Oregon













Utah Counties Navigation Box

United States Gotoarrow.png Utah Gotoarrow.png Duchesne County

Dates for major county records
Birth
Marriage
Death
Census
Land
Probate
1915?-present 1915-present 1915?-present 1920, 1930... 1915-present 1907-present
For earlier dates, try...
  • (Template {{PAGENAME}} here) residents may also have records in

Neighboring Counties: Carbon | Daggett | Summit | Uintah | Utah | Wasatch

Remember these collections


County Info Box

James City County, Virginia
Seal of James City County, Virginia
Map
Facts
Founded 1634
County Seat Williamsburg
Courthouse
Website: www.jccegov.com




Replace Function

Testing of the #replace function:

  1. replace:My+little+home+page|+|_ answers My_little_home_page
  2. replace:My little home page| |+ answers My+little+home+page
  3. replace:My little home page| |_ answers My_little_home_page



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.[1]

"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.[2]


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.[3]

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.[4]

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.[5]

Developing a U.S. County Article[6]

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

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



References

  1. Lewis, Samuel A.,A Topographical Dictionary of England (1848), pp. 295-302.
  2. A Topographical Dictionary of England
  3. Hopalong Cassidy - Riders of the Purple Sage - Gunfighters of the OK Corral. Published in 2185 from timeline 220009099.773 snippet. Original time capture translation. See Galactic Library 7399.39097BB-39097
  4. Library of Trantor
  5. Heinlein - The Moon is a Harsh Mistress
  6. Developing a U.S. County Article
  7. Heinlein - The Moon is a Harsh Mistress


  1. Taylor Shilling - Lucky One [1]
  2. William Francis Galvin, Historical Data Relating to Counties, Cities and Towns in Massachusetts (Boston, new ed., 1997), 93. WorldCat (Other Libraries); FHL book 974.4 H2h 1997
  3. Curt Brown (2009-05-06). "Mercy! Daughter of New Bedford lawyer lands lead role in NBC drama". SouthCoastToday.com. http://www.southcoasttoday.com/apps/pbcs.dll/article?AID=/20090506/NEWS/905060331/-1/news. Retrieved 2009-08-05. 
  4. "Taylor Schilling Biography". Yahoo! Movies. http://movies.yahoo.com/person/taylor-schilling/biography.html. Retrieved 21 April 2012. 
  5. "Mercy: Cast Bios: Taylor Schilling". NBC. http://www.nbc.com/mercy/bios/taylorSchilling.shtml. Retrieved 2009-08-05. 
  6. Reference details go here
  7. Another reference
  8. A third reference
  9. More references
  10. Next one is a link
  11. http://www.FamilySearch.org
  12. No more links