mediawiki/alink

创建自定义锚点链接

安装: 152

依赖项: 0

建议者: 0

安全: 0

星星: 1

观察者: 3

分支: 0

开放问题: 0

类型:mediawiki-extension

0.2.0 2017-11-14 16:06 UTC

This package is auto-updated.

Last update: 2024-09-15 02:48:11 UTC


README

MediaWiki 打印自定义锚点链接的扩展。

示例

{{#alink:href=https://www.mediawiki.org|target=_blank|rel=nofollow|MediaWiki}}

如果没有 href 中的 http,我们将其视为维基页面。链接文本是参数,不包含任何 '='。

{{#alink:href=Example_page|target=_blank|Example page for wiki}}

如果我们想避免 urlencoding,可以添加 nourlencode 参数

{{#alink:href=Special:FormEdit/Myform/Mypage?MyTemplate[Myparam]=Acción|nourlencode|Trigger action}}

如果我们想显示不带前缀(命名空间)的维基页面,我们使用 noprefix 参数

{{#alink:href=User:John_Smith|noprefix}}

考虑

  • 以 wikitext 格式渲染维基链接。只有重要性在于 MW 数据库中传入/传出链接的存储