この解説は、モジュール:Marker utilities/i18n/docから呼び出されています。 (編集 | 履歴) 編集者は、このモジュールをサンドボックス (作成 | 複製)とテストケース (作成)で試すことができます。(解説) このモジュールのサブページ一覧。 |
-- Separating code from internationalization return { -- module administration moduleInterface = { suite = 'Marker utilities', sub = 'i18n', serial = '2025-02-14', item = 65441686 }, dates = { yyyymmdd = { p = '^20[0-5]%d%-[01]?%d%-[0-3]?%d$', f = 'Y年Mj日' }, yyyy = { p = '^20[0-5]%d$', f = 'Y年' }, yy = { p = '^[0-5]%d$', f = 'Y年' }, mmdd = { p = '^[01]?%d%-[0-3]?%d$', f = 'Mj日' }, dd = { p = '^[0-3]?%d%.?$', f = 'j日' }, mm = { p = '^[01]?%d%.?$', f = 'M' }, lastedit = { f = 'Y年M' }, asOf = { f = 'n/Y' } }, fileExtensions = { 'tif', 'tiff', 'gif', 'png', 'jpg', 'jpeg', 'jpe', 'webp', 'xcf', 'ogg', 'ogv', 'svg', 'pdf', 'stl', 'djvu', 'webm', 'mpg', 'mpeg' }, months = { '1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月' }, monthAbbr = { '睦月', '如月', '弥生', '卯月', '皐月', '水無月', '文月', '葉月', '長月', '神無月', '霜月', '師走' }, -- Map related constants map = { coordURL = 'https://ja.wikivoyage.org/w/index.php?title=特別:MapSources¶ms=', defaultDmsFormat = 'f1', -- see: Module:Coordinates/i18n defaultSiteType = 'type:landmark_globe:earth', defaultZoomLevel = 17, maxZoomLevel = 19, -- also to set in Module:GeoData, Module:Mapshape utilities/i18n }, -- Wikidata properties properties = { appliesToJurisdiction = 'P1001', appliesToPart = 'P518', appliesToPeople = 'P6001', capacity = 'P1083', centerCoordinates = 'P5140', commonsCategory = 'P373', coordinates = 'P625', endTime = 'P582', -- time image = 'P18', instanceOf = 'P31', iso4217 = 'P498', languageOfName = 'P407', mainCategory = 'P910', maximumAge = 'P4135', minimumAge = 'P2899', nameInNativeLang = 'P1559', occupation = 'P106', of = 'P642', officialName = 'P1448', pointInTime = 'P585', propertyScope = 'P5314', -- for fees quantity = 'P1114', retrieved = 'P813', roomNumber = 'P8733', startTime = 'P580', -- time, for fees streetAddress = 'P6375', subclassOf = 'P279', unitSymbol = 'P5061', use = 'P366', validInPeriod = 'P1264' }, -- Groups of Wikidata properties propTable = { contactComments = { 'P366', 'P518', 'P642', 'P1001', 'P1559', 'P106' }, feeComments = { 'P5314', 'P518', 'P6001', 'P1264', 'P585', 'P2899', 'P4135', 'P642', 'P580' }, policyComments = { 'P518', 'P1001', 'P6001' }, quantity = { 'P1114', 'P1083' } }, -- Wikidata properties representing a qualifier qualifiers = { mobilePhone = 'Q17517', P8733 = 'Q180516', roomNumber = 'Q180516' }, -- Languages for fallbacks, except wiki language langs = {}, -- array can be empty -- Display and performance options for vCard / Listing and Marker modules -- additional options in Module:VCard/i18n options = { excludeColorTypes = true, normalizeValues = { 'type', 'subtype', 'show', 'status', 'symbol' }, noStarParams = { 'nameLocal', 'alt', 'comment' }, noTypeMsgs = false, -- prevents display of maintenance( typeFromWD, typeIsGroup ) parameters = { 'commonscat', 'id', 'wikipedia', 'link' }, -- parameter is used showLocalData = true, -- names, addresses, directions showSisters = true, -- possible values true, false, 'atEnd' usePropertyCateg = false, -- create maintenance categories for Wikidata properties useTypeCateg = false, -- create maintenance categories for marker types markerMetadata = true, -- add metadata at marker templates -- text limit of content/description parameter contentLimit = 1000, groupsWithLimit = { buy = 1, drink = 1, eat = 1, sleep = 1 }, -- Wikidata related constants searchLimit = 4, -- count of levels for P31-P279 search -- useful but not necessary function calls WDmediaCheck = false, -- check file names retrieved from Wikidata mediaCheck = false, -- for better performance, otherwise expensive -- mw.title.new( 'Media:' .. image ) call is used secondaryCoords = false, -- adding listing coordinates to article database -- using #coordinates parser function skipPathCheck = false -- for URL check, see Module:UrlCheck }, -- strings texts = { asOf = ';%s時点', -- with semicolon separator from = '%sから', fromTo = '%s–%s', to = '%sまで', fromTo2 = '%sから%sまで', -- General, i18n -- black x-like cross closeX = '[[ファイル:Close x - black.png|15px|link=|class=noviewer|不明なマーカー記号]]', missingName = '名前なし', -- In case of CJK languages no spaces are used with punctuation -- Enumeration commas. listing-comma is used for alt names only comma = '<span class="listing-comma">, </span>', -- with zero-width space commaSeparator = '、', period = '。', periodSeparator= '。', -- Space following a punctuation mark space = ' ', nbSpace = ' ', parentheses = '(%s)', emph = "「%s」", -- Formatting numbers: replacement patterns decimalPoint = '.', groupSeparator = '.', -- Anchor id anchor = '%s', -- Marker CategoryNS = { '[Cc]ategory', 'カテゴリ' }, FileNS = { '[Ff]ile', '[Ii]mage', 'ファイル', '画像' }, latitude = '緯度', longitude = '経度', tooltip = 'マーカーをクリックして地図を直接開きます', -- vCard / Listing module checkin = 'チェックイン:%s', checkout = 'チェックアウト:%s', closed = '閉店:%s', closedPattern = '^閉店[::]?%s*', editInSource = 'ソースを編集', email = 'メール:%s', expirationPeriod = 'now - 3 years', fax = 'ファックス:%s', hintName = '現地語の名前 %s', hintLatin = 'ローマ字名', hintAddress = '現地語の住所 %s', hintAddress2 = '%sの住所', hintDirections = '現地語の道順 %s', hours = '営業時間:%s', iata = '[[空港コード#IATA|IATA]]:%s', icao = '[[空港コード#ICAO|ICAO]]:%s', lastedit = '最終更新:%s', lasteditNone = '未指定', maybeOutdated = '(古い情報)[[カテゴリ:古いvCard]]', mobile = '携帯電話:%s', payment = '支払方法:%s', phone = '電話番号:%s', price = '値段:%s', -- skype = 'Skype: %s', subtype = '追加情報:%s。', subtypes = '追加情報:%s。', subtypeAbbr = '<abbr title="%s">%s</abbr>', subtypeFile = '[[ファイル:%s|x14px|link=|class=noviewer listing-subtype-icon|%s]]', subtypeSpan = '<span title="%s">%s</span>', subtypeWithCount = '%d %s', tollfree = 'フリーダイヤル:%s' }, -- namespaces without maintenance messages nsNoMaintenance = { [ 4 ] = true, [ 10 ] = true, [ 12 ] = true, [ 828 ] = true }, -- format strings for mu.addMaintenance formats = { category = '[[カテゴリ:%s]]', error = ' <span class="error">%s</span>', hint = ' <span class="listing-check-recommended" style="display: none;">%s</span>' }, -- maintenance maintenance = { -- general properties = '[[カテゴリ:プロパティ%sを使用しているページ]]', type = { category = '%sのマーカーを持つページ' }, group = { category = '%sのグループを持つページ' }, urlWithIP = { category = 'IPアドレスを含むURLがあるページ', hint = 'IPアドレスを含むURL' }, wrongUrl = { category = '無効なURLがあるページ', err = '無効なURL' }, commonscatWD = { category = 'ウィキデータの情報と競合してcommonsが指定されているvCard' }, contentTooLong = { category = '説明文が長すぎるvCard', err = '説明文が長すぎます' }, currencyTooltip= { category = '通貨ツールチップがあるvCard' }, dmsCoordinate = { category = '度分秒形式の座標を持つvCard', hint = '度分秒形式の座標' }, duplicateAliases = { category = '重複した別名を持つvCard', err = '重複した別名:%s' }, illegalCtrls = { category = '不正な制御文字を含むパラメータのあるvCard', err = '不正な制御文字を含むパラメータ' }, labelFromWD = { category = 'ラベルがウィキデータ由来のvCard', hint = 'ウィキデータ由来のラベル' }, linkIsRedirect = { category = '転送ページにリンクしたvCard' }, linkToOtherWV = { category = '他言語版へのリンクを持つvCard' }, malformedName = { category = '誤った名前を持つvCard', err = '誤った名前' }, missingImg = { category = '存在しないファイルが指定されたvCard', err = '存在しないファイル:%s' }, missingNameMsg = { category = '名前が指定されていないvCard', err = '名前が指定されていません' }, missingType = { category = '種類が指定されていないvCard', err = '種類が指定されていません' }, nameFromWD = { category = '名前がウィキデータ由来のvCard', err = '名前がウィキデータから取得されています' }, nameWithStar = { category = '名前にアスタリスクがあるvCard', err = 'アスタリスクを含んだ名前' }, outdated = { category = '終了したイベントのvCard', err = 'イベントは終了しています' }, parameterUsed = { category = '%sが指定されたvCard' }, deleteShowCopy = { category = 'showにcopyが指定されたvCard', hint = 'show=copyは削除されました' }, showInlineUsed = { category = 'showにinlineが指定されたvCard' }, showNoneUsed = { category = 'showにnoneが指定されたMarker' }, showPoiUsed = { category = 'showにpoiが指定されたvCard' }, typeFromWDchain= { category = '種類がウィキデータ由来のvCard', hint = 'ウィキデータ由来のtype' }, typeIsGroup = { category = '種類にグループが指定されたvCard', hint = '種類がグループ名です' }, typeIsColor = { category = '種類に色が指定されたvCard', hint = '種類が色の名前です' }, -- typeIsColor is not used if excludeColorTypes = true unknownCountry = { category = '国コードが不明なvCard', err = '不明な国コードが渡されました' }, unknownGroup = { category = 'グループが不明なvCard', err = 'グループが不明です' }, unknownLanguage= { category = '言語が不明なvCard', hint = '言語が指定されていません' }, unknownParam = { category = '不明なパラメータを持つvCard', err = '不明なパラメータ:%s' }, unknownParams = { category = '不明なパラメータを持つvCard', err = '不明なパラメータ:%s' }, unknownPropertyLanguage= { category = 'プロパティに不明な言語があるvCard', hint = '不明なプロパティの言語' }, unknownStatus = { category = 'ステータスが不明なvCard', err = 'ステータスが不明です' }, unknownType = { category = '種類が不明なvCard', err = '種類が不明です:%s' }, unusedRedirect = { category = '未使用の転送ページにリンクしたvCard' }, urlIsSocialMedia = { category = 'SNSのURLが指定されたvCard', err = 'URLがSNSへのリンクです' }, wikidata = { category = 'ウィキデータを使用しているvCard' }, wrongCoord = { category = '誤った座標のvCard', err = '誤った座標' }, wrongImgName = { category = '誤ったファイル名のvCard', err = 'メディアファイル名に誤りがあります' }, wrongQualifier = { category = '誤ったウィキデータ修飾子のvCard', err = 'ウィキデータ修飾子に誤りがあります' }, -- Marker module missingCoord = { category = '座標がないマーカー', err = '座標が欠損しています' }, numberUsed = { category = '番号が指定されたマーカー' }, unknownIcon = { category = 'アイコンが不明なマーカー' }, -- vCard / Listing module countryFromWD = { category = '国コードがウィキデータ由来のvCard' }, missingCoordVc = { category = '座標がないvCard' }, paymentUsed = { category = 'paymentが指定されたvCard' }, socialUrlUsed = { category = 'SNSのリンクがあるvCard', hint = '%sのURLが使用されています' }, unitFromWD = { category = 'ユニットがウィキデータ由来のvCard', hint = 'ウィキデータ由来のユニット' }, unknownLabel = { category = 'ラベルまたはIDが不明なvCard' }, unknownMAKI = { category = 'アイコンが不明なvCard', hint = '不明なMakiアイコン' }, unknownShow = { category = 'showに不明な値があるvCard', err = 'showの値が不明です:%s' }, unknownSubtype = { category = '追加情報に不明な値があるvCard', err = 'subtypeの値が不明です:%s' }, unknownUnit = { category = 'ユニットが不明なvCard', hint = '不明なユニット' }, unknowWDfeatures = { category = 'ウィキデータ由来の不明な追加情報を持つvCard', hint = '不明なウィキデータ機能' }, wdWithGoogleCid = { category = 'ウィキデータの情報と競合してgoogle-mapsが指定されているvCard', hint = 'ウィキデータにGoogleマップが接続されています' }, wikidataWithId = { category = 'ウィキデータIDのパラメータが重複しているvCard', hint = 'wikidataにIDが指定されています' }, wrongDate = { category = '日付が間違ったvCard', err = '不正な日付' }, wrongGoogleCid = { category = '誤ったGoogleマップのCIDが指定されたvCard', err = '指定されたGoogleマップのカスタマーID(CID)が間違っています' }, wrongId = { category = '誤ったIDが指定されたvCard', err = 'IDが誤っています' }, wrongSocialId = { category = 'SNSのIDが間違ったvCard', err = '誤った%sのID' }, wrongSocialUrl = { category = 'SNSのリンクが間違ったvCard', err = '誤ったSNSのリンク' } }, iconTitles = { commons = 'コモンズで他の写真をみる', facebook = 'facebookで%sをみる', flickr = 'Flickrで%sをみる', instagram = 'Instagramで%sをみる', internet = '公式ウェブサイト', rss = 'RSSフィード', tiktok = 'TikTokで%sをみる', twitter = 'Xで%sをみる', wikidata = 'ウィキデータで%s(%s)をみる', wikipedia = 'ウィキペディアで%sをみる', wikivoyage = '他言語版で%sをみる', youtube = 'YouTubeで%sをみる' }, -- social media services services = { { key = 'facebook', url = 'https://www.facebook.com/%s', pattern = { '^[-.%d%w][-_.%d%w]+$', '^[^%z\1-,/:-?\91-\94{-~]+/[1-9]%d+$' } }, { key = 'flickr', url = 'https://www.flickr.com/photos/%s', pattern = '^%d%d%d%d%d+@N%d%d$' }, { key = 'instagram', url = 'https://www.instagram.com/%s/', pattern = { '^[0-9a-z_][0-9a-z._]+[0-9a-z_]$', '^explore/locations/%d+$' } }, { key = 'tiktok', url = 'https://www.tiktok.com/@%s', pattern = '^[0-9A-Za-z_][0-9A-Za-z_.]+$' }, { key = 'twitter', url = 'https://twitter.com/%s', pattern = '^[0-9A-Za-z_]+$' }, { key = 'youtube', url = { 'https://www.youtube.com/channel/%s', 'https://www.youtube.com/%s' }, pattern = { '^UC[-_0-9A-Za-z]+[AQgw]$', '^@[-0-9A-Za-z_.][-0-9A-Za-z_.][-0-9A-Za-z_.]+$' } } }, --[[ status symbols g: successive symbol group number alias: status alias label: image tag title category = 1: add maintenance category --]] statuses = { ['top-hotel'] = { label = "トップ宿泊施設", category = 1 }, ['top-restaurant'] = { label = "トップ飲食店", category = 1 }, ['top-sight'] = { label = "トップ観光地", category = 1 }, recommendation = { label = "おすすめ" }, none = { alias = "class-0", label = "分類なし" }, stub = { alias = "class-1", label = "スタブ" }, outline = { alias = "class-2", label = "骨格記事" }, usable = { alias = "class-3", label = "役立つ記事" }, guide = { alias = "class-4", label = "完全な記事" }, star = { alias = "class-5", label = "おすすめ記事" }, ['top-hotel'] = { g = 1, label = 'トップ宿泊施設', category = 1 }, ['top-restaurant'] = { g = 1, label = 'トップ飲食店', category = 1 }, ['top-sight'] = { g = 1, label = 'トップ観光地', category = 1 }, recommendation = { g = 1, label = 'おすすめ' }, none = { g = 2, alias = 'class-0', label = '分類なし' }, stub = { g = 2, alias = 'class-1', label = 'スタブ' }, outline = { g = 2, alias = 'class-2', label = '骨格記事' }, usable = { g = 2, alias = 'class-3', label = '役立つ記事' }, guide = { g = 2, alias = 'class-4', label = '完全な記事' }, star = { g = 2, alias = 'class-5', label = 'おすすめ記事' } }, -- Marker name styles -- Colors in Template:VCard/styles.css nameStyles = { inherit = 'font-weight: inherit; font-style: inherit;', italic = 'font-weight: normal; font-style: italic;', normal = 'font-weight: normal; font-style: normal;', station = 'font-weight: normal; white-space: nowrap; padding-left: 2px; padding-right: 2px;' }, -- yes/no variants yesno = { y = 'y', yes = 'y', n = 'n', no = 'n' }, -- List of currencies without conversion tooltips noCurrencyConversion = { all = 1, -- no rate conversion tooltips are shown -- there is no confusion with (uppercase) ALL = "Q125999" -- JPY = 1 -- local currency }, -- Language-dependent sorting substitutes substitutes = { -- Japanese doesn't use Latin characters, and too many kanji to list. } }