Jump to content

User talk:Matroc: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
m test ignore
m clean test
Line 219: Line 219:
| xxx=[[Washington, D.C./Shaw | Shaw]]
| xxx=[[Washington, D.C./Shaw | Shaw]]
| desc=monument to African American Civil War sailors and soldiers that fought in the Civil War.
| desc=monument to African American Civil War sailors and soldiers that fought in the Civil War.

| type=listing
| lat=32.1983
| long=-84.13
| lukup=Andersonville National Historic Site
| id=Q491712
| title=Andersonville National Historic Site
| text=Andersonville National Historic Site
| image=AndersonvilleWall.jpg
| xxx=[[Georgia |Andersonville]]
| desc=Preserves Camp Sumter, a Confederate prisoner of war camp during the Civil War.

| type=listing
| lat=39.4700
| long=-77.7400
| lukup=Antietam National Battlefield and Cemetery
| id=
| title=Antietam National Battlefield and Cemetery
| text=Antietam National Battlefield and Cemetery
| image=Antietam Natl Cemetery.JPG
| desc=Site of the Battle of Antietam [[Sharpsburg]], a major Civil War battle and the bloodiest single-day battle in American history. Abraham Lincoln after which released the Emancipation Proclamation, declaring all slaves in rebelling states free as a result of this battle.

| type=listing
| lat=37.3775
| long=-78.796
| lukup=Appomattox Court House National Historical Park
| id=Q4744652
| title=Appomattox Court House National Historical Park
| text=Appomattox Court House National Historical Park
| image=Appomattox Court House Historical Park.jpg
| xxx=[[Petersburg (Virginia) | Appomattox]]
| desc=Site of the surrender of Confederate general Robert E. Lee, thus ending the Civil War.

| type=listing
| lat=34.937
| long=-88.515278
| lukup=Batteries F and Robinett and the Beauregard Line
| id=
| title=Batteries F and Robinett and the Beauregard Line
| text=Batteries F and Robinett and the Beauregard Line
| desc=Preserved 791 acres of the Corinth battlefield located near [[Corinth (Mississippi) | Corinth]], [[Mississippi]]

| type=listing
| lat=34.5061
| long=-88.7289
| lukup=Brices Cross Roads National Battlefield Site
| id=
| title=Brices Cross Roads National Battlefield Site
| text=Brices Cross Roads National Battlefield Site
| image=BricesCrossroads2010.jpg
| xxx=[[Tennessee|Baldwyn]]
| desc=Site of a major Civil War battle in which Confederate forces defeated a much larger Union force.

| type=listing
| lat=39.1675
| long=-78.3008
| lukup=Cedar Creek and Belle Grove National Historical Park
| id=Q5056652
| title=Cedar Creek and Belle Grove National Historical Park
| text=Cedar Creek and Belle Grove National Historical Park
| image=Belle Grove Manor House.jpg
| xxx=[[Middletown (Virginia) | Middletown]] and [[Strasburg (Virginia) | Strasburg]]
| desc=Preserves several historic sites in the Shenandoah Valley, including a Civil War battlefield and a plantation.

| type=listing
| lat=34.9400
| long=-85.26
| lukup=Chickamauga and Chattanooga National Military Park
| id=Q5096187
| title=Chickamauga and Chattanooga National Military Park
| text=Chickamauga and Chattanooga National Military Park
| image=Cannon Row.jpg
| xxx=[[Chattanooga]]
| desc=Preserves several sites around Chattanooga that commemorate a major Civil War battle in the area that ended Confederate control of Tennessee.

| type=listing |lat=38.90092|long=-77.02446|title=Civil War Defenses of Washington
| desc=The remnants of trenches, forts and batteries that form a circular ring of green space surrounding the [[Washington, D.C. | capitol]]

| type=listing
| lat=24.6286
| long=-82.8733
| lukup=Dry Tortugas National Park
| id=Q1143655
| title=[[Dry Tortugas National Park]]
| text=[[Dry Tortugas National Park]]
| image=Fort Jefferson
| xxx=Dry Tortugas National Park - Flickr - Joe Parks.jpg
| desc=A set of islands at the end of the Florida Keys, home to Fort Jefferson, a Civil War-era fort that is the largest masonry structure in the Western Hemisphere.

| type=listing
| lat=36.4872
| long=-87.8608
| lukup=Fort Donelson National Battlefield
| id=Q5471081
| title=Fort Donelson National Battlefield
| text=Fort Donelson National Battlefield
| image=Fort Donelson river battery (1).jpg, [[Dover (Tennessee) | Dover]]
| xxx=[[Tennessee]]
| desc=Site of a major Civil War battle in which Union forces secured control of the area, the first major successes for the Union in the war. This battle established the rapidly rising star of Ulysses S. Grant. (Unconditional Surrender Grant)

| type=listing
| lat=38.7667
| long=-77.0278
| lukup=Fort Foote Park
| id=
| title=Fort Foote Park
| text=Fort Foote Park
| image=Rodman Guns.jpg
| xxx=[[Fort Washington (Maryland) | Oxon Hill]]
| desc=Civil War site with two cannons.

| type=listing
| lat=37.0036
| long=-76.3075
| lukup=Fort Monroe National Monument
| id=
| title=Fort Monroe National Monument
| text=Fort Monroe National Monument
| image=Lighthouse at Fort Monroe.jpg
| xxx=[[Hampton (Virginia) | Hampton]]
| desc=A former military base that was a strategic site for forts from the first colonists in the area to the Civil War, when it served as a safe haven for freed slaves.

| type=listing
| lat=32.0272
| long=-80.8903
| lukup=Fort Pulaski National Monument
| id=Q1438683
| title=Fort Pulaski National Monument
| text=Fort Pulaski National Monument
| image=FtPulaskiInside.jpg
| xxx=[[Tybee Island]]
| desc=A masonry fort that was the site of a crucial naval battle during the Civil War.

| type=listing
| lat=37.8439
| long=-94.7047
| lukup=Fort Scott National Historic Site
| id=Q5472003
| title=Fort Scott National Historic Site
| text=Fort Scott National Historic Site
| image=Fortscottks.JPG
| xxx=[[Kansas | Fort Scott]]
| desc=A fort built in the 1840s and used during the Civil War.

| type=listing
| lat=32.7522
| long=-79.8747
| lukup=Fort Sumter National Monument
| id=Q33167494
| title=Fort Sumter National Monument
| text=Fort Sumter National Monument
| image=FortSumter2009.jpg
| xxx=[[Charleston (South Carolina) | Charleston]]
| desc=An island fort at the mouth of Charleston Harbor that is famous as the site of the opening battle of the Civil War.

| type=listing
| lat=38.2931
| long=-77.4692
| lukup=Fredericksburg and Spotsylvania National Military Park
| id=Q181893
| title=Fredericksburg and Spotsylvania National Military Park
| text=Fredericksburg and Spotsylvania National Military Park
| image=
| xxx=[[Fredericksburg (Virginia) | Fredericksburg]]
| desc=Preserves the site of four major battles in the Civil War.

| type=listing
| lat=40.8133
| long=-73.9631
| lukup=General Grant National Memorial
| id=
| title=General Grant National Memorial
| text=General Grant National Memorial
| image=USA grants tomb.jpg, [[Manhattan/Upper West Side | Upper West Side]]
| xxx=[[New York City]]
| desc=Grant's Tomb, the final resting place of Civil War general and president Ulysses S. Grant.

| type=listing
| lat=39.8124
| long=-77.2357
| lukup=Gettysburg National Military Park
| id=Q5554764
| title=Gettysburg National Military Park
| text=Gettysburg National Military Park
| image=Gettysburg5.JPG
| xxx=[[Gettysburg (Pennsylvania) | Gettysburg]]
| desc=Site of arguably the largest and most important battle in the Civil War. Today you can tour the battlefields, the military cemetery, and the site where Abraham Lincoln gave his famous "Gettysburg Address." There is a marker - known as the "High Water Mark of the Confederacy" - where "Pickett's charge", a doomed infantry charge on a fortified Union position, ordered by Robert E. Lee and led by Pickett, ended and then retreated.

| type=listing
| lat=35.56
| long=-105.785556
| lukup=Glorietta Pass Battlefield
| id=
| title=Glorietta Pass Battlefield
| text=Glorietta Pass Battlefield
| desc=located near [[Pecos (New Mexico) | Pecos]], [[New Mexico]], the Colorado Militia prevented the breakout of the Confederate Army forces onto the base of the Rocky Mountains.

| type=listing
| lat=39.325398
| long=-77.743599
| lukup=Harpers Ferry
| id=
| title=[[Harpers Ferry]]
| text=[[Harpers Ferry]]
| desc=This town originally part of [[Virginia]] (became part of [[West Virginia]] was the site of John Brown's famous raid.

| type=listing
| lat=39.3228
| long=-77.7297
| lukup=Harpers Ferry National Historical Park
| id=Q5663505
| title=Harpers Ferry National Historical Park
| text=Harpers Ferry National Historical Park
| image=2010-09-02-Harpers-Ferry-From-Maryland-Heights-Panorama-Crop.jpg
| xxx=[[Harpers Ferry]]
| desc=Contains much of the historic town of Harpers Ferry, an important industrial center in the 19th century and site of John Brown's raid that helped trigger the Civil War.

| type=listing
| lat=29.9425
| long=-89.9942
| lukup=Jean Lafitte National Historical Park and Preserve
| id=Q3364383
| title=Jean Lafitte National Historical Park and Preserve
| text=Jean Lafitte National Historical Park and Preserve
| image=Bayou.jpg, [[Chalmette]], [[Lafayette (Louisiana) | Lafayette]], visitor's center in [[New Orleans/French Quarter | French Quarter]]
| xxx=[[New Orleans]]
| desc=Preserves a set of historic sites related to the Cajun culture of the area and a Civil War battlefield, as well as a natural preserve of forests and swamps.

| type=listing
| lat=33.9831
| long=-84.5781
| lukup=Kennesaw Mountain National Battlefield Park
| id=Q6389745
| title=Kennesaw Mountain National Battlefield Park
| text=Kennesaw Mountain National Battlefield Park
| image=Kennesaw mountain cannon01.jpg
| xxx=[[Kennesaw]]
| desc=Site of a major battle of General Sherman's Atlanta Campaign during the Civil War. A preserved battleground featuring several miles of Union and Confederate earthworks.

| type=listing
| lat=44.254
| long=-73.972
| lukup=John Brown Farm State Historic Site
| id=Q2487907
| title=John Brown Farm State Historic Site
| text=John Brown Farm State Historic Site
| desc=Located in [[Lake Placid]], [[New York State | New York]]; is the home and grave of abolitionist John Brown, hanged by the state of Virginia for a 1859 raid on the federal arsenal at Harpers Ferry. This historic house has guided tours and re-enactments.

| type=listing
| lat=38.8128
| long=-77.5217
| lukup=Manassas National Battlefield Park
| id=Q6747016
| title=Manassas National Battlefield Park
| text=Manassas National Battlefield Park
| image=Cannon at Manassas, VA, Battlefield IMG 4322.JPG
| xxx=[[Manassas]]
| desc=Site of two major battles in the Civil War, including the war's first major battle and the site where Confederate general "Stonewall" Jackson earned his nickname.

| type=listing
| lat=39.3712
| long=-77.3921
| lukup=Monocacy National Battlefield
| id=Q6901361
| title=Monocacy National Battlefield
| text=Monocacy National Battlefield
| image=BestFarmMonocacy.jpg
| xxx=[[Frederick]]
| desc=Site of a major Civil War battle that was one of the last fought in Union territory between General Jubal Early of the Confederacy and General Lew Wallace of the Union..

| type=listing
| lat=39.3908
| long=-99.6175
| lukup=Nicodemus National Historic Site
| id=Q7028918
| title=Nicodemus National Historic Site
| text=Nicodemus National Historic Site
| image=Nicodemus.JPG
| xxx=Nicodemus
| desc=The only remaining western settlement established by African Americans during the Reconstruction period after the Civil War.

| type=listing
| lat=37.21295
| long=-77.400417
| lukup=Pamplin Park, National Museum of the Civil War Soldier
| id=
| title=Pamplin Park, National Museum of the Civil War Soldier
| text=Pamplin Park, National Museum of the Civil War Soldier
| desc=Located in [[Petersburg (Virginia) | Petersburg]], [[Virginia]] commemorates the siege and fall of Petersburg which eventually led to the Lee's final surrender at Appomattox Courthouse.

| type=listing
| lat=36.4544
| long=-94.0342
| lukup=Pea Ridge National Military Park
| id=Q7157184
| title=Pea Ridge National Military Park
| text=Pea Ridge National Military Park
| image=Elkhorn Tavern Confederate Approach.jpg, [[Pea Ridge]]
| xxx=[[Arkansas]]
| desc=Site of a Civil War battle that helped the Union cement control over Missouri and northern Arkansas.

| type=listing
| lat=37.2194
| long=-77.3614
| lukup=Petersburg National Battlefield
| id=Q7178190
| title=Petersburg National Battlefield
| text=Petersburg National Battlefield
| image=Battery XVI, Petersburg National Battlefield.jpg
| xxx=[[Petersburg (Virginia) | Petersburg]]
| desc=Preserves sites from the Civil War siege of Petersburg.

| type=listing
| lat=35.984444
| long=-94.301944
| lukup=Prairie Grove Battlefield State Park
| id=Q7237873
| title=Prairie Grove Battlefield State Park
| text=Prairie Grove Battlefield State Park
| image=Prairie Grove Battlefield State Park.jpg
| desc=A park in [[Arkansas]] commemorating the Battle of Prairie Grove which secured Northwestern part of Arkansas for the Union.

| type=listing
| lat=37.54213
| long=-77.43336
| lukup=Richmond, Virginia
| id=Q43421
| title=[[Richmond]], [[Virginia]]
| text=[[Richmond]], [[Virginia]]
| desc=Capital city of the Confederacy, is home to '''Richmond National Battlefield''', the '''White House of the Confederacy''', the '''Museum of the Confederacy''', and as well as other historic points of interest.

| type=listing
| lat=37.4292
| long=-77.3736
| lukup=Richmond National Battlefield Park
| id=Q7330919
| title=Richmond National Battlefield Park
| text=Richmond National Battlefield Park
| image=Malvern Hill, Civil War Battlefield, RIchmond National Battlefield.jpg
| xxx=[[Richmond (Virginia) | Richmond]]
| desc=A set of Civil War sites surrounding Richmond, including battlefields and former defensive fortifications.

| type=listing
| lat=35.1386
| long=-88.3422
| lukup=Shiloh National Military Park
| id=Q7496735
| title=Shiloh National Military Park
| text=Shiloh National Military Park
| image=Sunken Road, Shiloh National Military Park.JPG
| xxx=[[Shiloh]]
| desc=Site of an early major battle in the Civil War that was one of the bloodiest in the war.

| type=listing
| lat=35.8761
| long=-86.4308
| lukup=Stones River National Battlefield
| id=Q7619315
| title=Stones River National Battlefield
| text=Stones River National Battlefield
| image=6-pounder Wiard cannon at Stones River National Battlefield.jpg
| desc= A key battle and strategic Union victory of the American Civil War near [[Murfreesboro | Murfreesboro, Tennessee]].

| type=listing
| lat=34.2553
| long=-88.7372
| lukup=Tupelo National Battlefield
| id=Q7853518
| title=Tupelo National Battlefield
| text=Tupelo National Battlefield
| image=Tupelo NBS Monument.jpg
| xxx=[[Tupelo]]
| desc=Site of a Civil War battle where Confederate forces tried to cut Union supply lines.

| type=listing
| lat=32.3439
| long=-90.8514
| lukup=Vicksburg National Military Park
| id=Q12072131
| title=Vicksburg National Military Park
| text=Vicksburg National Military Park
| image=Vicksburg-illinois-memorial.jpg
| xxx=[[Vicksburg]]
| desc=Site of a major Civil War battle that was the culmination of the Union's Vicksburg Campaign, which gave the Union control over the [[Mississippi River]] and considered one of the turning points of the war.

| type=listing
| lat=37.1156
| long=-93.42
| lukup=Wilson's Creek National Battlefield
| id=Q8022913
| title=Wilson's Creek National Battlefield
| text=Wilson's Creek National Battlefield
| image=Wilson's Creek National Battlefield.jpg
| xxx=[[Southwest Missouri | Republic]]
| desc=Site of the first major Civil War battle west of the Mississippi River.


== [[WP:ACE2016|ArbCom Elections 2016]]: Voting now open! ==
== [[WP:ACE2016|ArbCom Elections 2016]]: Voting now open! ==

Revision as of 09:30, 22 August 2018

Map
Federal Bank

Welcome

Hello, Matroc, and Welcome to Wikipedia!

Please remember to sign your name on talk pages by clicking or or by typing four tildes (~~~~); this will automatically produce your username and the date. Also, please do your best to always fill in the edit summary field. Below are some useful links to facilitate your involvement. Happy editing! — Mr. Stradivarius ♪ talk ♪ 04:28, 8 June 2013 (UTC)[reply]

Getting started
Finding your way around
Editing articles
Getting help
How you can help

Lua code snippets

For Loop a -z

local c = ""
for x = string.byte('a'), string.byte('z') do
    c = c .. string.char(x)                           -- 'a' to 'z
end 

Length of a String

test = "This is a string"
length = #test
or
length = test:len()

Combine tables together

   newtable = {}
   t1 = {"Alabama", "New York"}
   t2 = {"New Hampshire", "Vermont"}
   for k,v in ipairs(t1) do table.insert(newtable, v) end
   for k,v in ipairs(t2) do table.insert(newtable, v) end
   -- newtable now has both t1 and t2 --- can do this for multiple tables

Trim white space left

string = string:match'^%s*(.*)'

Trim white space right

string = string:match'^(.*%S)'

Trim both left and right

string = string:match'^%s*(.*%S)'

Is a table

if (type(var) == "table") then do table work else do non-table work end 

Pad to left of String

test = "Some String" char="." len=40
test =  test .. string.rep(char, len - #test)

Pad to right of String

test = "Some String" char ="." len = 40
test = string.rep(char, len - #test) .. test 

Chop to length

test = "This is a test"
test = test:sub(1,5)
  • can pad left or right to insure size is fixed
  • may wish to trim spaces off right and left as well

Reverse a String

test = "This is a test"
test = test:reverse()

Str left

test = "This is a test"
test = test:sub(1,count)
  • Have to make decision as in case of count being greater than the length of a string or empty string or nil

Str right

test = "This is a test"
test = test:sub(#test - count + 1, test:len())
--or
test = test:reverse()
test = test:sub(1,count)
test = test:reverse()
  • Have to make decision as in case of count being greater than the length of a string or empty string or nil

Str lower

test = "Yes"
test = test:lower()

Str upper

test = "Yes"
test = test:upper()

ESCAPE LUA SPECIAL CHARACTERS

ESC = mw.ustring.gsub(SOMESTRING, '[%-%.%+%[%]%(%)%$%^%%%?%*]','%%%1')

Sandbox TEST modules created on en.wikipedia

  1. These are some of the Lua Modules created in Sandbox for testing/learning

Get Wikidata id if article exists in Wikipedia

  • Battle of Hoke's Run Q1497885

| type=listing | lat=38.9164 | long=-77.0258 | lukup=African American Civil War Memorial | id=Q55340690 | title=African American Civil War Memorial | text=African American Civil War Memorial | xxx= Shaw | desc=monument to African American Civil War sailors and soldiers that fought in the Civil War.

ArbCom Elections 2016: Voting now open!

Hello, Matroc. Voting in the 2016 Arbitration Committee elections is open from Monday, 00:00, 21 November through Sunday, 23:59, 4 December to all unblocked users who have registered an account before Wednesday, 00:00, 28 October 2016 and have made at least 150 mainspace edits before Sunday, 00:00, 1 November 2016.

The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to impose binding solutions to disputes between editors, primarily for serious conduct disputes the community has been unable to resolve. This includes the authority to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail.

If you wish to participate in the 2016 election, please review the candidates' statements and submit your choices on the voting page. MediaWiki message delivery (talk) 22:08, 21 November 2016 (UTC)[reply]

Thanks

Thanks Matroc, my objective was to get all points and shapes from osm which are tagged with federal bank qid ... checked with Yurik . asif now it is not supported -- naveenpf (talk) 05:30, 5 October 2017 (UTC)[reply]

ArbCom 2017 election voter message

Hello, Matroc. Voting in the 2017 Arbitration Committee elections is now open until 23.59 on Sunday, 10 December. All users who registered an account before Saturday, 28 October 2017, made at least 150 mainspace edits before Wednesday, 1 November 2017 and are not currently blocked are eligible to vote. Users with alternate accounts may only vote once.

The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to impose binding solutions to disputes between editors, primarily for serious conduct disputes the community has been unable to resolve. This includes the authority to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail.

If you wish to participate in the 2017 election, please review the candidates and submit your choices on the voting page. MediaWiki message delivery (talk) 18:42, 3 December 2017 (UTC)[reply]

Protected Module Edit (Opinion?)

{{Roman|MMXVIII}}2018

Given your past editing of {{Roman}} I wonder if you could point me in the right direction to get some competent eyes on this and also what you might think of {{Roman}} converting both ways depending on input only.

Not sure of process for getting code (as opposed to encyclopedia content) reviewed; didn't even realize there was a [diff] web function until after posting a static diff onto talk page.

ASiplas (talk) 11:17, 20 February 2018 (UTC)[reply]