For faster navigation, this Iframe is preloading the Wikiwand page for Template:+1.

Template:+1

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板介紹

[编辑]

该模板将所有 +1 的具体用户名隐藏,而只显示 +1 的总人数,从而起到节约空间的作用。

当鼠标悬停在 +N 上时,会出现悬停提示,显示谁给这个内容 +1 了。

以后也许可以通过脚本辅助,从而实现 高仿Google+ 的 +1 的 更好的效果,如鼠标点击后弹出提示等。

使用方法

[编辑]
5位以下用户

((+1|Example))+1

((+1|Example|喵))+2

5位以上用户(只能显示前五位)

((+1|Example|喵|Liangent|Hat600|Bencmq|乌拉跨氪))+(6+)

5位以上用户(手动指定人数)

((+1|Example|喵|Liangent|Hat600|Bencmq|乌拉跨氪|num=6))+6

不使用斜体

((+1|Example|i=n))+1

範例

[编辑]

注意事项

[编辑]

參見

[编辑]

给模板编辑者的说明

[编辑]

模板结构

[编辑]

含以下子页面:

实现方法

[编辑]

该模板中同时使用了 title 属性和隐藏的子元素来标记 +1 的人数和用户名等,其中子元素主要不是为了显示使用,而是为以后与脚本互动作准备。

由于Manual:$wgHtml5未启用,因此无法使用 data-* 属性来承载数据。

编辑注意

[编辑]

有一些模板子页面看上去是空的,但其实包含有代码,请勿当作空页面删除。当模板被带参数调用时,才会有输出。

{{bottomLinkPreText}} {{bottomLinkText}}
Template:+1
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?