模板:Man/doc
腳本錯誤:沒有「Message box」這個模塊。 Template:缺乏中文說明 To be used for inserting 手冊頁 links into articles on Unix topics.
Usage[編輯]
Examples[編輯]
In Out {{man|3|printf}}– 參考,單一UNIX®規範第7期,由國際開放標準組織發佈 {{man|3|printf|||inline}}{{man|3|printf|FreeBSD}}– FreeBSD庫函數(Library Functions)手冊頁 {{man|3|printf||formatted output conversion}}: formatted output conversion – 參考,單一UNIX®規範第7期,由國際開放標準組織發佈
Parameters[編輯]
- Manual section
- Manual page name
- Source (the name of a subpage in the Template:Man 命名空間 e.g. FreeBSD. Leave blank for the current default.)
- Page description
- Style parameter; currently
inlineomits the attribution.
Available sources[編輯]
Please add to this table as you write new sources!
Other sources[編輯]
Occasionally you will come across manual pages for which writing a source is overkill. In this case you can use Template:man/format directly with a URL for formatting:
In Out {{man/format|1|dbx|http://.../dbx.1.html|source-level debugging tool|[[Sun Studio]] Developer's Manual}}: source-level debugging tool – Sun Studio Developer's Manual
The interface of Template:man/format is therefore externally visible and needs to be kept constant.
Hacking[編輯]
Writing sources[編輯]
A source takes three parameters:
- Manual section
- Manual page name
- Output selector:
attribfor attributionurlfor URL to pagedisplay_sectionfor section to display in parentheses.
See Template:Man/die.net for an example; see Template:Man/FreeBSD for a demonstration of varying the attribution by manual section.
Internals[編輯]
Template:man handles choosing the default source and calling it for URL and attribution; the default source is Template:man/default, which is a template redirect currently to Template:man/die.net. Template:man/format actually formats the link and descriptions into a nice-looking link+auxilia in Unix style.