开发者

Is there an equivalent of latex \newcommand in mediawiki

I want to create a command in mediawiki. For example, in latex I can do

 \newcomm开发者_运维技巧and{\concept}{\textbf}

Is it possible to create an alias for '''foo''' and so on?


MediaWiki uses templates for that purpose.


Like Roger said , you can create templates ,create a page called 'template:foo' with content '''foo''' then you can insert it to where ever you wanted by placing {{foo}}.

and when you change the content of the page template:foo all other pages where {{foo}} is placed will also change accordingly.

you can also insert it by placing {{subst:foo}} this will substitute the content of the template to that place. but when you change the template page later , it won't reflect here. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜