Module:ElementNavigation: Difference between revisions
// via Wikitext Extension for VSCode Tag: Reverted |
// via Wikitext Extension for VSCode Tag: Manual revert |
||
| Line 14: | Line 14: | ||
* - Blueprint integration as a custom block | * - Blueprint integration as a custom block | ||
]] | ]] | ||
local p = {} | local p = {} | ||
p.elementName = "navigation" | p.elementName = "navigation" | ||
p.defaultConfig = { | p.defaultConfig = { | ||
autoDetect = true, | autoDetect = true, | ||
| Line 252: | Line 208: | ||
-- Use "class=" parameter in MediaWiki link syntax for proper styling | -- Use "class=" parameter in MediaWiki link syntax for proper styling | ||
table.insert(output, string.format( | table.insert(output, string.format( | ||
'<div class=" | '<div class="element-navigation-prev">[[%s|%s]]</div>', | ||
prevPage, prevLabel | |||
)) | )) | ||
else | else | ||
| Line 265: | Line 221: | ||
-- Use "class=" parameter in MediaWiki link syntax for proper styling | -- Use "class=" parameter in MediaWiki link syntax for proper styling | ||
table.insert(output, string.format( | table.insert(output, string.format( | ||
'<div class=" | '<div class="element-navigation-next">[[%s|%s]]</div>', | ||
nextPage, nextLabel | |||
)) | )) | ||
else | else | ||