Модуль:Основная статья: различия между версиями
Pok (обсуждение | вклад) Новая страница: «-- source: https://ru.wikipedia.org/wiki/Модуль:Основная_статья -- license: CC BY-SA 4.0 local p = {} local get_args = require('Module:Arguments').getArgs local mHatnote = require('Module:Hatnote') local category_ns_number = 14 local templatestyles_page = 'Module:Основная статья/styles.css' local function get_property(args) local res = mw.getCurrentFrame():expandTemplate{title = 'wikidata', args = args} return res ~= '...» |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 52: | Строка 52: | ||
local current_title = mw.title.getCurrentTitle() | local current_title = mw.title.getCurrentTitle() | ||
local categories = mHatnote.define_categories{ | local categories = mHatnote.define_categories{ | ||
by_wikidata = ' | by_wikidata = 'Категории с основной статьёй из Викиданных', | ||
by_pagename = ' | by_pagename = 'Категории c основной статьёй, которая не указана явно', | ||
missed = ' | missed = 'Категории с существующей основной статьёй, не указанной в Викиданных' | ||
} | } | ||
local hatnote_args = setmetatable({ | local hatnote_args = setmetatable({ | ||
| Строка 66: | Строка 66: | ||
if current_title.namespace == category_ns_number then | if current_title.namespace == category_ns_number then | ||
hatnote_args.id = 'catmore' | hatnote_args.id = 'catmore' | ||
overridden_categories.red_link = ' | overridden_categories.red_link = 'Категории без основных статей' | ||
local first_title_exists | local first_title_exists | ||