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 revision Previous revision
pagename [2017-10-12 14:57]
128.140.208.6
pagename [2017-10-12 15:20] (current)
Aleksandr old revision restored (2017-07-29 10:30)
Line 1: Line 1:
-Please find enclosed functional specifications for “Death of Volunteer” based on the mockup provided for previous authorizations.+====== Page Names ======
  
-There are two separate authorizations for “Death ​of the Volunteer” +The pagename is the component ​of the URL that specifies the page. For example, the URL of the page you are 
-• “Repatriation ​of remains” and “Final Entitlements” +currently reading is %%https://​www.dokuwiki.org/​pagename%%,​ and its page name is "​pagename"​.
-• “Capital Sum”+
  
-1. **“**Repatriation of remains”** ​and “Final Entitlements”** should include the following information:​ +[[Page]] names in [[DokuWiki]] are converted to lowercase automaticallyAllowed 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]] )).
-Pop-up window should open with view to the Authorization with list of the selected volunteer (see below example)+
-• Name of the Volunteer/​roster no +
-• Name of escort ​(if applicable +
-• Travel from (free text) +
-• Travel ​to (free text) +
-• RSA “from” – “to” ​(free text to include ​the dates and amount) +
-• “Free text column” to include the names of beneficiaries including possibility to enter percentage entitlement for each (%– add rows for each beneficiaryNotethis information cannot be taken from Atlas, not all dependants enrolled in Atlas are beneficiaries. +
-• CoAs ​are to be included as “tag”, however for the travel of the escort CoAs can be provided by the host agency and not necessarily charged under same CoAs as Atlas position. In this case the AuthProcessor should be able to enter a free text of CoAs (as per attached print screen).+
  
- +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''​).
  
-2. ****“Capital Sum”** should include the following information:​ +An implicit constraint on pagename lengths is set by [[backlinks]] (pagenames need to have 3 chars at least to be considered ​in backlinks).
-• Name of the Volunteer/​roster no +
-• “Free text column” ​to include the names of beneficiaries including possibility ​to enter percentage entitlement for each (%) – add rows for each beneficiary. Note: this information cannot ​be taken from Atlas, not all dependants enrolled ​in Atlas are beneficiaries. +
-• Total amount of Capital Sum (free text) +
-• CoAs are to be included as “tag” +
-Important: Content template should be editable to adapt specific casesPossibility for AdminRole to create and add standard content on a "​Non-Admin block"​ +
-When generating preview, would the user be able to edit the content of the template within the preview window?+
  
 +Most templates, including the default, present somewhere the full pagename and the [[namespaces|namespaces]] in its path. The '​dokuwiki'​ template places it in the tab on the top right corner of the page. For example this page's name is ''​pagename''​.
  
 +When linking to other Wikis using [[InterWiki]] links the name restrictions of these Wikis apply.
  
 +Even when [[wp>​CamelCase]] (aka. WikiWord) is enabled by the [[config:​camelcase|CamelCase config]] the pagenames will remain lowercase.
 +
 +
 +**Note** All restrictions given here for pagenames do apply to media files as well!
 +
 +
 +===== Pagenames and Namespaces =====
 +
 +You may picture namespaces as directories and pagenames as files inside them. 
 +
 +Therefore the ''​a:​b:​c''​ pagename can be pictured as:
 +
 +<​file>​
 +
 +   root namespace (always present)
 +     │
 +     ​└── '​a'​ namespace
 +          │
 +          └── '​b'​ namespace
 +               │
 +               ​└── '​c'​ pagename
 +
 +</​file>​
 +
 +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>​
 +
 +   root namespace (always present)
 +     │
 +     ​└── '​a'​ namespace
 +          │
 +          └── '​b'​ pagename (not to be confused with the '​b'​ namespace above)
 +
 +</​file>​
 +
 +This doesn'​t lead to conflicts, because DokuWiki treats the final token (the one after the last colon) as the name of the [[page]] itself, while all other tokens are namespaces.  ​
 +
 +  * In ''​a:​b:​c'',​ ''​a''​ and ''​b''​ are namespaces while ''​c''​ is a page.
 +  * In ''​a:​b'',​ ''​a''​ is interpreted as a namespace and ''​b''​ as a page.
 +
 +See [[namespaces]] for more details. ​
 +
 +
 +
 +===== Hacking the Core for mixed case names =====
 +
 +Some people like to hack the DokuWiki core to be able to use mixed case names. This is not recommended and not officially supported and might break DokuWiki functionality in non-obvious ways.
 +
 +
 +You can hack the code and by commenting out one line in the wiki/​inc/​pageutils.php about line 109, you will be able to use files with Names_Like_This if you so choose.
 +Look for this code and comment it out.
 +
 +<code php>
 +$id = utf8_strtolower($id);​
 +</​code>​
 +
 +:!: 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? \\
 +
 +Also see [[https://​forum.dokuwiki.org/​thread/​5417|this thread]].
  
pagename.txt · Last modified: 2017-10-12 15:20 by Aleksandr