最近更新

2023.12 更新
万智牌完整规则 23.11.17
发布释疑 更新至依夏兰迷窟
套牌检查表 更新至依夏兰迷窟

用户

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
wiki插件使用说明 [2014/02/15 14:30]
mtgjudge 创建
wiki插件使用说明 [2015/11/23 18:55] (当前版本)
mtgjudge
行 1: 行 1:
 ====== wrap 包装文本插件 ====== ====== wrap 包装文本插件 ======
 https://​www.dokuwiki.org/​plugin:​wrap https://​www.dokuwiki.org/​plugin:​wrap
- 
-The following classes are currently available: 
- 
-{{ :​plugin:​wrap_plugin_example7.png?​300&​direct}} 
  
 ^class name^description/​notes^ ^class name^description/​notes^
行 56: 行 52:
 All tables inside a column or box will always be 100% wide. This makes positioning and sizing tables possible and partly replaces [[tablewidth]]. All tables inside a column or box will always be 100% wide. This makes positioning and sizing tables possible and partly replaces [[tablewidth]].
  
 +
 +====== box 文本框插件 ======
 +A simple box:
 +
 +  <box> the box contents </​box>​
 +
 +
 +Some more complex boxes
 +
 +  <box 80% round orange|a title> the box contents</​box>​
 +  <box 50% left blue>the box contents</​box|a caption>
 +  <box 60% round #f99 #fc9 #fcc #​f60|title>​the box contents</​box|caption>​
 +
 +The full syntax:  ​
 +
 +''​**<​box** //width// //classes// //colours// **|** title text**>​** contents text **</​box>​**''​
 +
 +  * //width// --- any legal CSS width value
 +  * //classes// --- any number of classes which use the styles in your template or the plugin'​s own stylesheet to determine the look of the box. The box plugins comes with the following classes already defined:
 +    * //round// --- box will have rounded corners
 +    * //blue// --- blue colour scheme
 +    * //red// --- red colour scheme
 +    * //green// --- green colour scheme
 +    * //orange// --- orange colour scheme
 +    * //left// --- float the box left within the wiki page
 +    * //right// --- float the box right within the wiki page
 +if no classes are specified the default styles will be used, that is square corners in a colour scheme based on the default DokuWiki colour scheme.
 +
 +  * //colours// --- 1-4 colours in CSS hex or RGB notation, e.g. ''#​F00 #fcab94 rgb(255,​255,​0)''​. ​ The colours are applied in order to:
 +    - content background
 +    - title background
 +    - outer box background
 +    - borders
 +if less than four colours are specified, the first colour is used for the missing colours. ​
 +
 +  * //title text// --- text (including DokuWiki markup) displayed above the box contents, with distinct style.
 +  * //caption text// --- text (no markup allowed) displayed below the box contents, with distinct style.
 +
 +The opening ''​**<​box ... >​**''​ including the title must all appear on one line.  The box contents can appear over as many lines as are needed.
 +
 +====== include 包含页面插件 ======
 +
 +===== Examples =====
 +
 +''​%%{{page>​wiki:​syntax#​Tables}}%%''​ will include the section about tables of the syntax page.
 +
 +''​%%{{namespace>​project_foo}}%%''​ will include all pages in the ''​project_foo''​ namespace.
 +
 +''​%%{{page>​blog:​mypage&​tags&​comments}}%%''​ will include the page ''​blog:​mypage''​ and show the tags from the [[tag]] plugin and the number of comments from the [[discussion]] plugin. Both plugins need to be installed for this example.
 +
 +''​%%{{tagtopic>​testtag}}%%''​ will include all pages with the tag ''​testtag'',​ the [[tag]] plugin needs to be installed for this example.
 +
 +===== Syntax =====
 +
 +Simply enclose the ID of the page to be included in double curly brackets:
 +
 +  {{page>​[id]&​[flags]}}
 +  {{section>​[id]#​[section]&​[flags]}}
 +  {{namespace>​[namespace]&​[flags]}}
 +  {{tagtopic>​[tag]&​[flags]}}
 +
 +^ [id] | page ID of the page to include; some [[#macros]] are possible; shortcuts are resolved ('':'',​ ''​.'',​ ''​..''​) | required |
 +^ [section] | limits the included page to a specific section and its subsections | optional; default is the whole page |
 +^ [tag]|include pages with tag topic tag, requires [[doku>​plugin:​tag]] |required |
 +^ [flags] | flags delimited by ''&'',​ see [[#​Configuration and Flags|flags]] | optional |
 +
 +The plugin offers four syntaxes, ''​%%{{page>​...}}%%''​ , ''​%%{{section>​...}}%%''​ , ''​%%{{namespace>​...}}%%''​ and ''​%%{{tagtopic>​...}}%%''​.
 +
 +Section is aimed more at including sections, page at including whole pages and namespace at including whole namespaces. Tagtopic includes all pages with a ''​tagtopic''​ ''​tag''​.
 +
 +====== color 颜色插件 ======
 +Place this code sample in your playground:
 +
 +<​code>​
 +<color blue/​lightgrey>​text</​color>​
 +<color #​FF0000>​text</​color>​
 +</​code>​
 +
 +====== bbcode 论坛标签插件 ======
 +===== Syntax =====
 +
 +Basic Formatting:
 +
 +  [b]bold text[/b]
 +  [i]italic text[/i]
 +  [u]underline[/​u]
 +  [s]deleted[/​s]
 +  [m]monospace[/​m]
 +
 +Code and Quoting:
 +
 +  [code]<?​php echo $text;​[/​code]
 +  [quote="​Esther"​]DokuWiki is great![/​quote]
 +
 +Links and Images:
 +
 +  [url=http://​www.kaffeehaus.ch]Esthers Kaffeehaus Blog[/url]
 +  [email]esther@kaffeehaus.ch[/​email]
 +  [img]http://​www.dokuwiki.org/​lib/​exe/​fetch.php?​w=&​h=&​cache=cache&​media=wiki%3Adokuwiki-128.png[/​img]
 +
 +The %%[url]%% parameter can be optionally quoted.
 +
 +Lists:
 +
 +  [list][*]item 1[*]item 2[*]item 3[/list]
 +  [list=1][*]item 1[*]item 2[*]item 3[/​list] ​ attribute: 1, a, A, i or I
 +
 +Text size:
 +
 +  [size=90%]smaller text[/​size] ​              ​attribute:​ CSS units (px, em, %, ...), single-digit,​ or keywords like small; can be optionally quoted
 +
 +Text color:
 +
 +  [color=red]colored text[/​color] ​            ​attribute:​ color name, "​browser-color"​ name, #fff[fff] or rgb(255,​255,​255);​ can be optionally quoted
 +  ​
 +====== imagebox 图片框 ======
 +
 +Usage:
 +
 +  [{{ImagePath|Caption}}]
 +
 +====== M1模板文档 ======
 +[[https://​www.dokuwiki.org/​template:​m1]]