DokuWiki

It's better when it's simple

User Tools

Site Tools


pagename

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
pagename [2017-07-29 00:25] – [Pagenames and Namespaces] mdjewelpagename [2023-01-01 21:03] – old revision restored (2022-08-05 23:44) bttr
Line 1: Line 1:
 ====== Page Names ====== ====== Page Names ======
  
-The pagename is the component of the URL that specifies the page. For example, the URL of the page you are +The pagename is the component of the URL that specifies the page. For example, the URL of the page you are currently reading is ''%%https://www.dokuwiki.org/pagename%%'', and its page name is ''pagename''.
-currently reading is %%https://www.dokuwiki.org/pagename%%, and its page name is "pagename".+
  
-[[Page]] names in [[DokuWiki]] are converted to lowercase automatically. Allowed characters are letters, digits and, within names ((i.e. you cannot start or end names with them, resp. they will be eliminated at start or end of names)), the "special characters" ''.'', ''-'' and ''_''. All other special characters (i.e. other than letters and digits -- whitespace, plus, slash, percent, etc.) are converted to underscores ((or whatever is configured in the [[config:sepchar|sepchar setting]])) . Colons ('':'') are used to identify [[namespaces]] ((This can be changed to forward slashes to more naturally mirror your data filesystem hierarchy: [[config:useslash]] )).+===== Naming Conventions ===== 
 + 
 +[[Page]] names in [[DokuWiki]] are converted to lowercase automatically. Allowed characters are letters, digits and, within names ((i.e. you cannot start or end names with them, resp. they will be eliminated at start or end of names)), the "special characters" dot ''.'', hyphen ''-'' and underscore ''_''. All other special characters (i.e. other than letters and digits -- whitespace, plus, slash, percent, etc.) are converted to underscores ((or whatever is configured in the [[config:sepchar|sepchar setting]])) . Colons ('':'') are used to identify [[namespaces]] ((This can be changed to forward slashes to more naturally mirror your data filesystem hierarchy: [[config:useslash]] )).
  
 When the [[config:deaccent|deaccent]] config option is enabled (on by default) local and accented characters are converted to their descriptive equivalents (''ü'' becomes ''ue'') or deaccented versions (''á'' becomes ''a''). When the [[config:deaccent|deaccent]] config option is enabled (on by default) local and accented characters are converted to their descriptive equivalents (''ü'' becomes ''ue'') or deaccented versions (''á'' becomes ''a'').
Line 17: Line 18:
  
  
-**Note** All restrictions given here for pagenames do apply to media files as well!+**Note:** All restrictions given here for pagenames do apply to media files as well!
  
  
 ===== Pagenames and Namespaces ===== ===== Pagenames and Namespaces =====
  
-You may picture namespaces as directories and futurenetwork as files inside them. +You may picture namespaces as directories and pagenames as files inside them. 
  
-Therefore the ''a:b:c'' futurenetwork can be pictured as:+Therefore the ''a:b:c'' pagename can be pictured as:
  
 <file> <file>
Line 34: Line 35:
           └── 'b' namespace           └── 'b' namespace
                │                │
-               └── 'c' futurenetwork+               └── 'c' pagename
  
 </file> </file>
  
-Note that you can have a futurenetwork and a namespace with the same name, at the same time, within any namespace. Back to the above example, the ''a:b''futurenetwork can be pictured as:+Note that you can have a pagename and a namespace with the same name, at the same time, within any namespace. Back to the above example, the ''a:b'' pagename can be pictured as:
  
 <file> <file>
Line 46: Line 47:
      └── 'a' namespace      └── 'a' namespace
           │           │
-          └── 'b' futurenetwork (not to be confused with the 'b' namespace above)+          └── 'b' pagename (not to be confused with the 'b' namespace above)
  
 </file> </file>
Line 72: Line 73:
  
 :!: This hack, used by me a few years and announced to the User-Forum, seems not to work with Anteater. \\ :!: This hack, used by me a few years and announced to the User-Forum, seems not to work with Anteater. \\
-:?: Any idea, to have it there too? \\+:?: Any idea, to have it there too?
  
-Also see [[https://forum.dokuwiki.org/thread/5417|this thread]].+Also see [[https://forum.dokuwiki.org/d/5417|this thread]].
  
pagename.txt · Last modified: 2024-04-15 08:04 by saggi

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