差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
dokuwiki:ja:namespaces [2006/11/11] – 作成 admin | dokuwiki:ja:namespaces [不明な日付] (現在) – 外部編集 (不明な日付) 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 名前空間 ====== | ||
+ | DokuWikiでは、ページをカテゴリに分けるため、" | ||
+ | |||
+ | |||
+ | |||
+ | ===== 名前空間の作成 ===== | ||
+ | |||
+ | 名前空間を作成する手順が別に用意されているわけではありません。ページ名にコロンを付けてページを作成するだけです。最後のコロンの後ろのものがページの名前そのものになります。その他のものが名前空間です。存在しないページ名に含まれるすべての名前空間は、自動的にDokuWikiによって作成されます。 | ||
+ | |||
+ | |||
+ | ^例:^^ | ||
+ | |example|現在の名前空間にある" | ||
+ | |: | ||
+ | |wiki: | ||
+ | |ns1: | ||
+ | |: | ||
+ | |.ns1: | ||
+ | |.ns1: | ||
+ | |||
+ | ===== 名前空間の削除 ===== | ||
+ | |||
+ | 名前空間内のすべてのページが削除されたとき、名前空間は論理的に存在しなくなります。DokuWikiは通常、同様に空のディレクトリを削除します。 | ||
+ | |||
+ | ======= 名前空間のリネームの仕方 ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | The manual way is more difficult: | ||
+ | * Rename the folders that represent the namespace in: | ||
+ | * '' | ||
+ | * '' | ||
+ | * Remove metadata for the namespace under '' | ||
+ | * Remove attic data for the namespace under '' | ||
+ | | ||
+ | For example, on a Unix host, you could: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | Note that the '' | ||
+ | |||
+ | * Correct (by editing them) all the links to the pages under the //moved// namespace (you can discover those before moving the namespace by reviewing each page's backlinks). | ||
+ | |||
+ | * Browse each and every page under the new namespace. This will create the missing indexing information and metadata for the pages under the moved namespace. | ||
+ | |||
+ | However, you will still have lots of junk left around. For example in '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * Browse each and every page of your Wiki. | ||
+ | |||
+ | I understand this is convoluted (and maybe I missed/ | ||
+ | |||
+ | ===== Namespace Default Linking ===== | ||
+ | |||
+ | It is possible to link to a default file of a namespace ending the linkid | ||
+ | with a colon: %%[[foo: | ||
+ | existance of certain named files. For %%[[foo: | ||
+ | checked: | ||
+ | |||
+ | < | ||
+ | foo: | ||
+ | foo:bar:bar | ||
+ | foo:bar | ||
+ | </ | ||
+ | |||
+ | The pages are checked in that order and whatever page is found first will be | ||
+ | linked to. Autoplural linking is not done for those links | ||
+ | |||
+ | :!: **This feature is only available in 2006-09-28 RC1 version and above.** |