DokuWiki

It's better when it's simple

User Tools

Site Tools


namespaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
namespaces [2021-07-28 17:53] – old revision restored (2020-10-04 17:28) bactramnamespaces [2022-08-21 07:37] 2402:4000:12cb:605f:4492:9b7a:5449:ac66
Line 1: Line 1:
 +===== 央视新闻《快三导师计划带赚钱app》新闻频道-央视网 =====
  
 +快三导师计划带赚钱app➕【扬凡】QQ·1508070✅官网895977.com✅邀请码28845888✅携手永盈✅共创辉煌✅展鸿鹄之志✅赢未来天下✅万人推荐✅✅网易新闻✅人民日报✅腾讯新闻✅百度贴吧✅权威认证✅据今日头条报道:只为下水的上岸,岸上的拼搏,一期迈进美好的生活有梦想就去追,不尝试你永远不知道你的潜力有多大,时间,每天得到的都是二十四小时,可是一天的时间给勤勉的人带来智慧和力量,给懒散的人只留下一片悔恨。(央视网评论员)
 +新闻频道-央视网-CCTV-央视网-搜狐新闻-新浪新闻-腾讯新闻独家声明
  
-===== Creating Namespaces =====+(参与记者:胡绩伟、穆青、李普、田流、李峰、阎吾、柏生、彭迪、黄钢、金凤)
  
-You don't need to create namespaces separately; simply create pages with colons in the [[pagename]].  +来源:央视网、人民网、搜狐财经、新华网、凤凰资讯、网易新闻、知乎日报、热点资讯、搜狐新闻、新浪新闻
-The token after the last colon will be the name of the page itself, while all other tokens are namespaces.  +
-All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically.+
  
-A namespace can be created in the media manager after having selected a file on the local computer and adding a ''name:'' (of namespace wanted) just before the media file name and then clicking ''upload''. This will create on the fly the namespace (folder) for the file media, visible after a refresh of the windows.+总策划:莫言
  
-In DokuWiki, pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also [[.:page#create_a_page|Adding pages]].+策划:马云、李彦宏
  
-^  Examples:  ^^ +监制:雷军、许家印
-|example\\ .example\\ .:example|refers to the page "example" in the **current** namespace.| +
-|:example|refers to the page "example" in the **root** namespace.| +
-|..example\\ ..:example\\ .:..:example|refers to the page "example" in the **parent** namespace| +
-|wiki:example|refers to the page "example" in the namespace "wiki". The namespace "wiki" is located **beneath the root** namespace.| +
-|ns1:ns2:example\\ :ns1:ns2:example|refers to the page "example" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located **beneath the root** namespace.| +
-|.ns1:ns2:example\\ .:ns1:ns2:example|refers to the page "example" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located **beneath the current** namespace.| +
-|..ns1:ns2:example\\ ..:ns1:ns2:example|refers to the page "example" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located **beside the current** namespace (i.e. both ns1 and the current namespace are beneath the same parent namespace, wherever according to the root namespace this parent may be located itself).| +
-|.ns1:ns2:\\ .:ns1:ns2:|refers to the page "start" in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.\\ \\ (The default page can be named something other than "start" by adjusting the [[config:startpage]] configuration setting.)| +
  
-:!: Gotcha: The syntax for relative and absolute internal links is non-unique and complex relative to directory and filename conventions.+统筹:任正非、柳传志、方洪波
  
 +文字:李嘉诚、董明珠、宗庆后
  
-Links are absolute if and only if they have a ":" prefix or have no prefix but do have intermediate (or suffix) ":"+编辑:王兴、杨元庆
  
-Links relative to the current namespace may also begin with either "." or ".:" (".." or "..:" for parent namespace).+视频:沈南鹏
  
-===== Referring Images =====+视觉/海报:字节跳动、张一鸣
  
-Regarding referring of namespaces, images and other media files are handled like wiki pages. That means, the following refers to an image that belongs to the current namespace: +新华社国内部
-<code> +
-{{image.jpg}} +
-</code>+
  
 +新华社广东分社
  
- +联合出品 
-===== Deleting namespaces ===== +免责声明:本文来自腾讯新闻客户端自媒体,该文观点仅代表作者本人,搜狐号、网易号、企鹅号、百家号系信息发布平台,本平台仅提供信息存储服务。
- +
-When all pages inside a namespace are removed (see [[page#delete_a_page|delete a page]]) the namespace logically doesn’t exist anymore. DokuWiki usually deletes the now empty directory as well. +
- +
-===== How  to rename namespaces? ===== +
- +
-==== Manual way ==== +
- +
-In order to rename a namespace manually you will have to: +
-  * Rename the folders that represent the namespace in: +
-    * ''data/pages'' +
-    * ''data/media'' (if this exists) +
-  * Remove metadata for the namespace under ''data/meta'' +
-  * Remove attic data for the namespace under ''data/attic'' (or move that over as well, if you want to preserve old versions) +
-   +
-For example, on a Unix host, you could: +
-  * ''mv /dokuwiki_base/data/pages/old_namespace /dokuwiki_base/data/pages/new_namespace'' +
-  * ''mv /dokuwiki_base/data/media/old_namespace /dokuwiki_base/data/media/new_namespace'' +
-  * ''rm -Rf /dokuwiki_base/data/meta/old_namespace'' +
-  * move: ''mv /dokuwiki_base/data/attic/old_namespace /dokuwiki_base/data/attic/new_namespace'' \\ or remove: ''rm -Rf /dokuwiki_base/data/attic/old_namespace''  +
-Note that the ''old_namespace'' and/or ''new_namespace'' words may need to be encoded if they are on a non-Latin character set (i.e. Greek, Russian, etc). +
- +
-  * 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 ''data/changes.log'', various files under cache (including the ''.idx'' files etc). If possible you could just start from a ''blank state'' as follows (again under Unix) but be warned that this will mean losing all your historical information (i.e. ''recent changes''): +
- +
-  * ''cat /dev/null > /dokuwiki_base/data/changes.log'' +
-  * ''rm -Rf /dokuwiki_base/data/attic/*'' +
-  * ''rm -Rf /dokuwiki_base/data/cache/?'' +
-  * ''rm -Rf /dokuwiki_base/data/cache/*.idx'' +
-  * ''rm -Rf /dokuwiki_base/data/cache/purgefile'' +
-  * Browse each and every page of your Wiki. +
- +
-DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of [[plugins]] that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually. +
- +
-===== Namespace Default Linking ===== +
- +
-It is possible to link to the default file of a namespace by ending the linkid +
-with a colon: ''%%[[foo:bar:]]%%''. Which page the link links to is dependent on the +
-existence of certain named files. For ''%%[[foo:bar:]]%%'' the following pages are +
-checked: +
- +
-<code> +
-foo:bar:$conf['start'+
-foo:bar:bar +
-foo:bar +
-</code> +
- +
-The pages are checked in that order and whatever page is found first will be linked to. [[config:autoplural|Autoplural]] linking is not done for those links. +
- +
-===== Interwiki Links ===== +
- +
-DokuWiki supports Interwiki links. These are quick links to other Wikis. +
-For example: [[wp>Wiki]] is a link to Wikipedia's page about Wikis. → Main article: [[doku>Interwiki]]+
namespaces.txt · Last modified: 2022-11-04 03:49 by 68.162.68.13

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki