Module:Documentation: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 10: | Line 10: | ||
pageType_script = 'script', | pageType_script = 'script', | ||
pageType_message = 'message', | pageType_message = 'message', | ||
linkFormat = mw.text.nowiki( '[' ) .. '%s' .. mw.text.nowiki( ']' ), | |||
linkTextPurge = mw.getCurrentFrame():callParserFunction( 'int:smw_purge' ):lower(), | |||
createOutputFormat = '%s%s', | createOutputFormat = '%s%s', | ||
createSplitDocPagePrompt = '\n<!-- Put categories/interwikis on the documentation page -->', | createSplitDocPagePrompt = '\n<!-- Put categories/interwikis on the documentation page -->', | ||
| Line 105: | Line 107: | ||
:tag( 'div' ) | :tag( 'div' ) | ||
:attr( 'id', 'documentation-header-tools' ) | :attr( 'id', 'documentation-header-tools' ) | ||
:wikitext( | :wikitext( i18n.linkFormat:format( '[[Special:Purge/', page.fullText, '|', i18n.linkTextPurge, ']]' ) ) | ||
:done() | :done() | ||
:wikitext( i18n.docPagePrompt:format( pageType == 'module' and i18n.docPagePromptWill or i18n.docPagePromptShould, pageTypeDisplay ) ) | :wikitext( i18n.docPagePrompt:format( pageType == 'module' and i18n.docPagePromptWill or i18n.docPagePromptShould, pageTypeDisplay ) ) | ||