目录

Wordpress短代码插件

前言

最近换了新的主题,用了用短代码功能感觉爽到,但是并不能完美满足自己所有的要求,于是自己就撸了一个短代码插件,来实现一些常用的样式~

用法演示

Git相关

有链接

https://cdn.jsdelivr.net/gh/mouyase/Yojigen.Tech@master/static/assets/9/1.jpg
演示
1
2
3
4
5
6
[msgitfollow user="mouyase"]
[msgitwatch user="mouyase" repo="moe-shortcode"]
[msgitstar user="mouyase" repo="moe-shortcode"]
[msgitfork user="mouyase" repo="moe-shortcode"]
[msgitissue user="mouyase" repo="moe-shortcode"]
[msgitdownload user="mouyase" repo="moe-shortcode"]

无链接

https://cdn.jsdelivr.net/gh/mouyase/Yojigen.Tech@master/static/assets/9/2.jpg
演示
1
2
3
4
5
6
[msgitfollow user="mouyase" link="false"]
[msgitwatch user="mouyase" repo="moe-shortcode" link="false"]
[msgitstar user="mouyase" repo="moe-shortcode" link="false"]
[msgitfork user="mouyase" repo="moe-shortcode" link="false"]
[msgitissue user="mouyase" repo="moe-shortcode" link="false"]
[msgitdownload user="mouyase" repo="moe-shortcode" link="false"]

文字样式相关

https://cdn.jsdelivr.net/gh/mouyase/Yojigen.Tech@master/static/assets/9/3.jpg
演示
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
[msheimu]黑幕文字[/msheimu]
[msaqua]aqua[/msaqua]
[msblack]black[/msblack]
[msblue]blue[/msblue]
[msfuchsia]fuchsia[/msfuchsia]
[msgray]gray[/msgray]
[msgreen]green[/msgreen]
[mslime]lime[/mslime]
[msmaroon]maroon[/msmaroon]
[msnavy]navy[/msnavy]
[msolive]olive[/msolive]
[msorange]orange[/msorange]
[mspurple]purple[/mspurple]
[msred]red[/msred]
[mssilver]silver[/mssilver]
[msteal]teal[/msteal]
[mswhite]white[/mswhite]
[msyellow]yellow[/msyellow]

源码地址

https://github.com/mouyase/wp-moeshortcode