کاربر ناشناس
پودمان:Documentation: تفاوت میان نسخهها
sync from sandbox, add aria role and label to container
جز (۱ نسخه واردشده) |
(sync from sandbox, add aria role and label to container) |
||
خط ۱۳۹: | خط ۱۳۹: | ||
-- 'documentation-container' | -- 'documentation-container' | ||
:addClass(message('container')) | :addClass(message('container')) | ||
:attr('role', 'complementary') | |||
:attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) | |||
:attr('aria-label', args.heading == '' and 'Documentation' or nil) | |||
:newline() | :newline() | ||
:tag('div') | :tag('div') | ||
خط ۳۴۹: | خط ۳۵۲: | ||
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' | -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' | ||
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' | -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' | ||
-- 'sandbox-notice-pagetype-template' --> '[[ | -- 'sandbox-notice-pagetype-template' --> '[[امامتپدیا:Template test cases|template sandbox]] page' | ||
-- 'sandbox-notice-pagetype-module' --> '[[ | -- 'sandbox-notice-pagetype-module' --> '[[امامتپدیا:Template test cases|module sandbox]] page' | ||
-- 'sandbox-notice-pagetype-other' --> 'sandbox page' | -- 'sandbox-notice-pagetype-other' --> 'sandbox page' | ||
-- 'sandbox-notice-compare-link-display' --> 'diff' | -- 'sandbox-notice-compare-link-display' --> 'diff' | ||
خط ۶۲۷: | خط ۶۳۰: | ||
:tag('span') | :tag('span') | ||
:addClass(data.headingClass) | :addClass(data.headingClass) | ||
:attr('id', 'documentation-heading') | |||
:cssText(data.headingStyleText) | :cssText(data.headingStyleText) | ||
:wikitext(data.heading) | :wikitext(data.heading) | ||
خط ۷۵۲: | خط ۷۵۶: | ||
-- 'history-link-display' --> 'history' | -- 'history-link-display' --> 'history' | ||
-- 'transcluded-from-blurb' --> | -- 'transcluded-from-blurb' --> | ||
-- 'The above [[ | -- 'The above [[امامتپدیا:Template documentation|documentation]] | ||
-- is [[Help:Transclusion|transcluded]] from $1.' | -- is [[Help:Transclusion|transcluded]] from $1.' | ||
-- 'module-preload' --> 'Template:Documentation/preload-module-doc' | -- 'module-preload' --> 'Template:Documentation/preload-module-doc' | ||
-- 'create-link-display' --> 'create' | -- 'create-link-display' --> 'create' | ||
-- 'create-module-doc-blurb' --> | -- 'create-module-doc-blurb' --> | ||
-- 'You might want to $1 a documentation page for this [[ | -- 'You might want to $1 a documentation page for this [[امامتپدیا:Lua|Scribunto module]].' | ||
--]=] | --]=] | ||
local docTitle = env.docTitle | local docTitle = env.docTitle | ||
خط ۹۵۸: | خط ۹۶۲: | ||
-- 'doc-subpage' --> 'doc' | -- 'doc-subpage' --> 'doc' | ||
-- 'testcases-subpage' --> 'testcases' | -- 'testcases-subpage' --> 'testcases' | ||
-- 'strange-usage-category' --> ' | -- 'strange-usage-category' --> 'امامتپدیا pages with strange ((documentation)) usage' | ||
-- | -- | ||
-- /testcases pages in the module namespace are not categorised, as they may have | -- /testcases pages in the module namespace are not categorised, as they may have |