require('Module:No globalsstrict')
local wpsu={}
local ship_prefix_list =
{
['ARA'] = true, -- Armada de la República Argentina
['ARC'] = true, -- Armada Nacional de la República de Colombia
['ARM'] = true, -- Armada de la República Mexicana
['ARV'] = true, -- Armada Republica de Venezuela
['BAE'] = true, -- Buque de la Armada de Ecuador
['BAP'] = true, -- Peruvian Navy Ship
['BNS'] = true, -- Bangladesh Navy Ship
['BRP'] = true, -- Barko ng Republika ng Pilipinas
['CCGS'] = true, -- Canadian Coast Guard Ship
['CFAV'] = true, -- Canadian Forces Auxiliary Vessel
['CS'] = true, -- Cable Ship
['CSS'] = true, -- Confederate States Ship
['FGS'] = true, -- Federal German Ship
['GTS'] = true, -- Gas Turbine Ship
['HDMS'] = true, -- His/Her Danish Majesty's Ship
['HM'] = true, -- His/Her Majesty's, then used with the type of ship in military use (UK)
['HMAS'] = true, -- Her/His Majesty's Australian Ship
['HMBS'] = true, -- Her/His Majesty's Britannic Ship (also: Bahamian, Bermudian, Burmese)
['HMC'] = true, -- Her/His Majesty's Cutter
['HMCS'] = true, -- Her/His Majesty's Canadian Ship (also Colonial)
['HMHS'] = true, -- His/Her Majesty's Hospital Ship
['HMIS'] = true, -- Her/His Majesty's Indian Ship (pre republic)
['HMNZS'] = true, -- Her/His Majesty's New Zealand Ship
['HMPNGS'] = true, -- His/Her Majesty's Papua New Guinea Ship
['HMQS'] = true, -- Her/His Majesty's Queensland Ship
['HMRC'] = true, -- His/Her Majesty's Revenue Cutter
['HMS'] = true, -- Her/His Majesty's Ship
['HMSAS'] = true, -- Her/His Majesty's South African Ship
['HMT'] = true, -- Her/His Majesty's Trawler
['HMVS'] = true, -- Her/His Majesty's Victorian Ship
['HMY'] = true, -- His/Her Majesty's Yacht
['HNLMS'] = true, -- His/Her Netherlands Majesty’s Ship
['HNoMS'] = true, -- His/Her Norwegian Majesty's Ship
['HSwMSHSC'] = true, -- His/Her Swedish Majesty'sHigh-Speed ShipCraft
['HTMSHSwMS'] = true, -- His/Her ThaiSwedish Majesty's Ship
['INSHTMS'] = true, -- IndianHis NavalThai Ship, Israeli NavalMajesty's Ship
['JDSICGS'] = true, -- JapaneseIndian Coast DefenceGuard Ship
['JSIIS'] = true, -- JapaneseImperial Iranian Ship (post 2008)
['KDINS'] = true, -- KapalIndian Di-RajaNaval —Ship, HisIsraeli Majesty'sNaval Ship (Malaysia)
['KDMIRIS'] = true, -- KongeligeIslamic Republic of DanskeIran MarineShip
['KRIJDS'] = true, -- KapalJapanese RepublikDefence IndonesiaShip
['LÉJS'] = true, -- Long ÉireannachJapanese –Ship Irish(post ship2008)
['MFKA'] = true, -- MotorKapal Auksiliari – Auxiliary Ship Ferry(Malaysia)
['LKLKD'] = true, -- LietuvosKapal KarinisDi-Raja Laivas— His Majesty's –Ship Lithuania(Malaysia)
['MSKM'] = true, -- Kapal Motor (Motor Ship) (Indonesia)
['MTKDB'] = true, -- MotorKapal Diraja Brunei (Royal Brunei Ship) (in TankerMalay)
['MVKDM'] = true, -- MotorKongelige Danske VesselMarine
['KLD'] =true, -- Kapal Layar Diraja – His Majesty's Sailing Ship (Malaysia)
['NLV'] = true, -- Northern Lighthouse Vessel
['KRI'] = true, -- Kapal Republik Indonesia
['NMS'] = true, -- Nava Majestăţii Sale (His/Her Majesty's Ship) - used before 1945 by the Royal Romanian Navy ▼
['NoCGVLÉ'] = true, -- NorwegianLong Éireannach Coast– GuardIrish Vesselship
['NOAASMF'] = true, -- National Oceanic and Atmospheric AdministrationMotor ShipFerry
['NRPLKL'] = true, -- NavioLietuvos Karinis daLaivas República– PortuguesaLithuania
['ORPMS'] = true, -- Okręt RzeczypospolitejMotor PolskiejShip
['PNSMT'] = true, -- Pakistani NavalMotor ShipTanker
['PSMV'] = true, -- PaddleMotor SteamerVessel
['RFANLV'] = true, -- RoyalNorthern FleetLighthouse AuxiliaryVessel
▲ ['NMS'] = true, -- Nava Majestăţii Sale (His/Her Majesty's Ship) - used before 1945 by the Royal Romanian Navy
['RMAS'] = true, -- Royal Maritime Auxiliary Service
['RMSNoCGV'] = true, -- RoyalNorwegian Coast MailGuard ShipVessel
['RNLBNOAAS'] = true, -- RoyalNational NationalOceanic and Atmospheric Administration LifeboatShip
['ROCSNRP'] = true, -- RepublicNavio ofda ChinaRepública ShipPortuguesa
['ROKSORP'] = true, -- Republic ofOkręt KoreaRzeczypospolitej ShipPolskiej
['RPSPNS'] = true, -- Republic of thePakistani PhilippinesNaval Ship
['RRSPS'] = true, -- Royal ResearchPaddle ShipSteamer
['RSSRFA'] = true, -- Republic ofRoyal SingaporeFleet ShipAuxiliary
['RVRMAS'] = true, -- ResearchRoyal Maritime Auxiliary VesselService
['SASRMS'] = true, -- SouthRoyal AfricanMail Ship
['SLNSRNLB'] = true, -- Sri LankaRoyal NavalNational ShipLifeboat
['SMROCS'] = true, -- SeinerRepublic of MajestätChina UnterseebootShip
['SMSROKS'] = true, -- SeinerRepublic of MajestätKorea SchiffShip
['SSRPS'] = true, -- ScrewRepublic of Steamerthe orPhilippines SteamshipShip
['STVRRS'] = true, -- SailRoyal trainingResearch vesselShip
['TCGRS'] = true, -- Türkiye CumhuriyetiRocket GemisiShip
['TSRSS'] = true, -- TrainingRepublic of Singapore shipShip
['TVRV'] = true, -- TrainingResearch vesselVessel
['SAS'] = true, -- South African Ship
['UAM'] = true, -- Unidade Auxiliar da Marinha - Navy Auxiliary Unit (Portuguese Navy non-military ships) ▼
['USAFSSLNS'] = true, -- United StatesSri AirLanka ForceNaval shipShip
['USAHSSM'] = true, -- United States ArmySeiner HospitalMajestät ShipUnterseeboot
['USASSMS'] = true, -- United StatesSeiner ArmyMajestät ShipSchiff
['USATSS'] = true, -- UnitedScrew StatesSteamer Armyor TransportSteamship
['USAVSTV'] = true, -- United StatesSail Armytraining Vesselvessel
['USC&GSTCG'] = true, -- United States Coast andTürkiye GeodeticCumhuriyeti SurveyGemisi
['TS'] = true, -- Training ship
['USC&GS'] = true, -- United States Coast and Geodetic Survey (crude work-around) ▼
['TV'] = true, -- Training vessel
['USC&GS'] = true, -- United States Coast and Geodetic Survey (crude work-around) ▼
▲ ['UAM'] = true, -- Unidade Auxiliar da Marinha - Navy Auxiliary Unit (Portuguese Navy non-military ships)
['USC&GSS'] = true, -- United States Coast and Geodetic Survey Ship ▼
['USC&GSSUSAFS'] = true, -- United States CoastAir andForce Geodetic Survey Ship (crude work-around)ship
['USC&GSSUSAHS'] = true, -- United States CoastArmy and Geodetic SurveyHospital Ship (crude work-around)
['USCGCUSAS'] = true, -- United States Coast GuardArmy CutterShip
['USLHTUSAT'] = true, -- United State LightStates HouseArmy TenderTransport
['USNSUSAV'] = true, -- United States NavalArmy ShipVessel
['USRCUSC&GS'] = true, -- United States RevenueCoast and Geodetic CutterSurvey
['USSUSC&GS'] = true, -- United States ShipCoast and Geodetic Survey (crude work-around)
▲ ['USC& amp#38;GS'] = true, -- United States Coast and Geodetic Survey (crude work-around)
▲ ['USC&GSS'] = true, -- United States Coast and Geodetic Survey Ship
['USC&GSS'] = true, -- United States Coast and Geodetic Survey Ship (crude work-around)
▲ ['USC& GSGSS'] = true, -- United States Coast and Geodetic Survey Ship (crude work-around)
['USCGC'] = true, -- United States Coast Guard Cutter
['USLHT'] = true, -- United State Light House Tender
['USNS'] = true, -- United States Naval Ship
['USRC'] = true, -- United States Revenue Cutter
['USS'] = true, -- United States Ship
}
--[[--------------------------< N A T I O N A L I T Y >--------------------------------------------------------
['ironclad'] = true,
['ketch'] = true,
['landing ship'] = true,
['landing ship medium'] = true,
['lifeboat'] = true,
'.htm Foto galeri foto] kapal ',
ship_name,
' di NavSource Naval History',
error_msg,
}
if frame.args[1]:match ('<[%s/]*[Bb][Rr][%s/]*>') then -- if the parameter value has a list using variants of <br /> tag
return list_error ('', '<br /> list', '<br />', frame.args[1], showerrs); -- return an error message with maintenance category
elseif frame.args[1]:match ('<div style="clear:') then
return list_error ('', '{{clear}} list', '<br />', frame.args[1], showerrs); -- return an error message with maintenance category
elseif frame.args[1]:match ('.+\n%*') then -- if the parameter value has text followed by an unordered list
return list_error ('', 'mixed text and list', '<br />', frame.args[1], showerrs); -- return an error message with maintenance category
|