更改

无编辑摘要
第134行: 第134行:  
     }
 
     }
 
     return frame:expandTemplate{title = "LinkButtonBox", args = args}
 
     return frame:expandTemplate{title = "LinkButtonBox", args = args}
 +
end
 +
 +
function renderShareButton(frame)
 +
    local title = PageName.getPageName()
 +
    local args = {
 +
        image = 'ShareButton.svg',
 +
        link = 'https://share-wiki.ifworlds.org/#/share?title='..title
 +
    }
 +
    return frame:expandTemplate{title = "ShareButtonBox", args = args}
 
end
 
end
   第159行: 第168行:        +
    root:wikitext(renderShareButton(frame))
 
     root:wikitext(renderEditButton(frame))
 
     root:wikitext(renderEditButton(frame))
 
     return root:done()
 
     return root:done()