Module:Documentation: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 176: | Line 176: | ||
:attr( 'id', 'documentation-header-tools' ) | :attr( 'id', 'documentation-header-tools' ) | ||
local purgeLink = '[[Special:Purge/' .. docPage.fullText .. '|' .. f: | local purgeLink = '[[Special:Purge/' .. docPage.fullText .. '|' .. f:callParserFunction( 'int:smw_purge' ):lower() .. ']]' | ||
if not noDoc and page ~= docPage then | if not noDoc and page ~= docPage then | ||
local viewLink = '[[' .. docPage.fullText .. '|' .. f: | local viewLink = '[[' .. docPage.fullText .. '|' .. f:callParserFunction( 'int:view' ):lower() .. ']]' | ||
local editLink = '[[Special:EditPage/' .. docPage.fullText .. '|' .. f: | local editLink = '[[Special:EditPage/' .. docPage.fullText .. '|' .. f:callParserFunction( 'int:edit' ):lower() .. ']]' | ||
local historyLink = '[[Special:PageHistory/' .. docPage.fullText .. '|' .. f: | local historyLink = '[[Special:PageHistory/' .. docPage.fullText .. '|' .. f:callParserFunction( 'int:history_short' ):lower() .. ']]' | ||
links:wikitext("[" .. viewLink .. "] [" .. editLink .. "] [" .. historyLink .. "] [" .. purgeLink .. "]") | links:wikitext("[" .. viewLink .. "] [" .. editLink .. "] [" .. historyLink .. "] [" .. purgeLink .. "]") | ||
else | else | ||
local createLink = '[' .. docPage:canonicalUrl{action = 'edit', preload = 'Template:Documentation/preload' } .. ' ' .. f: | local createLink = '[' .. docPage:canonicalUrl{action = 'edit', preload = 'Template:Documentation/preload' } .. ' ' .. f:callParserFunction( 'int:create' ):lower() .. ']' | ||
links:wikitext("[" .. createLink .. "] [" .. purgeLink .. "]") | links:wikitext("[" .. createLink .. "] [" .. purgeLink .. "]") | ||
end | end | ||