差分
このページの2つのバージョン間の差分を表示します。
dokuwiki:ja:namespace_templates [2006/11/21] – 作成 admin | dokuwiki:ja:namespace_templates [不明な日付] (現在) – 外部編集 (不明な日付) 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 名前空間テンプレート ====== | ||
+ | |||
+ | Sometimes you might want that every page in a certain namespace is based on a common skeleton. For example, in the '' | ||
+ | |||
+ | You can't edit the '' | ||
+ | < | ||
+ | then replace about line 98 (the one with trim() ) with | ||
+ | < | ||
+ | Now you should be able to edit a namespace template with the URL '' | ||
+ | |||
+ | * use the wiki to save a page with the content that you want to use as a template into the appropriate namespace | ||
+ | * use FTP or WebDAV to make a copy of it in the same folder and rename it, then | ||
+ | * use the wiki to delete the original page. | ||
+ | |||
+ | There are a few replacement patterns you can use: | ||
+ | |||
+ | ^ @ID@ | full ID of the page | | ||
+ | ^ @NS@ | namespace of the page | | ||
+ | ^ @PAGE@ | page name (ID without namespace and underscores replaced by spaces) | | ||
+ | ^ @USER@ | ID of user who is creating the page | | ||
+ | ^ @NAME@ | name of user who is creating the page | | ||
+ | ^ @MAIL@ | mail address of user who is creating the page| | ||
+ | ^ @DATE@ | date and time when edit session started | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <- Return to [[Manual]] | ||
+ | |||