PmWikiZhCnUtf8 / WikiStyles |
SearchWiki PmWikiZhCnUtf8.最近改变 编辑页面 页面修正 |
%red%
will cause the following text to be displayed as red until the end of the line or the next pair of percent signs. For example:
%red% This text is red and %blue% this text is blue %% but this text is normal.gives
%red%
标签会使得下面的文本显示成红颜色直到一行结束或者下一个百分号对出现。
比如:
%red% This text is red and %blue% this text is blue %% but this text is normal.显示如下:
color
, bgcolor
, or target
specifications inside of a pair of percent signs will change the style of the following text to use those colors up to the end of a line or until the next pair of percent-signs. For example:
%color=red% This text is red and %color=blue% this text is blue %% but this text is normal.renders as
color
, bgcolor
和 target
标签,放到一对百分号对之间可以用来改变后面的文本的颜色,直到一行结束或者下一个百分号对。
举例:
%color=red% This text is red and %color=blue% this text is blue %% but this text is normal.显示如下:
bgcolor
attribute:
%color=white bgcolor=green% This text is white on green %color=green% and this is green on white.
bgcolor
属性来改变文本背景颜色:
%color=white bgcolor=green% This text is white on green %color=green% and this is green on white.
target
attribute:
%target=_blank% Any links on this line like http://www.pmichaud.com will open in a new window.which gives
target
属性来指定一个链接在一个新的窗口中打开:
%target=_blank% Any links on this line like http://www.pmichaud.com will open in a new window.which gives
define
attribute. For example, the statement
%define=hotpink color=#ff69b4%will cause the markup
%hotpink%
to be a shortcut for %color=#ff69b4%
(like this). One can specify multiple items in a definition, as in
%define=reverse color=white bgcolor=black%which allows
%reverse%
to cause reverse video, and %reverse hotpink%
to be the combination of both shortcuts.
Wiki的作者可以在一个文档中通过使用define
来指定自己的WikiStyle?。举例:
%define=hotpink color=#ff69b4%将会使
%hotpink%
成为%color=#ff69b4%
的缩写(像这种的颜色). 你还可以在一个定义中指定多个选项,比如:
%define=reverse color=white bgcolor=black%那么标签
%reverse%
会形成这样的效果:reverse video,%reverse hotpink%
标签会形成这样的效果:combination of both shortcuts.
It's often a good idea to put common style definitions into GroupHeaders so that they can be shared among multiple pages in a group. Or, the WikiAdministrator can predefine styles as a LocalCustomization -- see WikiStylesAdmin?.
你可以把一些公用的样式定义放到GroupHeaders中,那样所有的组内页面都公用相同的样式表。或者WikiAdministrator能够预先定一些样式作为LocalCustomization (参见WikiStylesAdmin?)
Trans. By LongWoSion
<< TextFormattingRules | PmWikiZhCnUtf8.DocumentationIndex | InterMap >>