Difference between revisions of "User:Rob/Questions"

From Organic Design wiki
m
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
*Include the navigation from another namespace
 +
*[[Template:ExampleContact]]
 +
**The best way to use this for other purposes.
 +
**How to handle errors: You can't edit because you're not logged in etc
 
*[[mw:Manual talk:$wgNamespaceProtection|Namespace permissions]]
 
*[[mw:Manual talk:$wgNamespaceProtection|Namespace permissions]]
 
*How to ''sanitise'' the title so that workspaces like ''Research/Graphics'' become something nice like Research - Graphics
 
*How to ''sanitise'' the title so that workspaces like ''Research/Graphics'' become something nice like Research - Graphics
 
**<nowiki>{{DISPLAYTITLE}}</nowiki>
 
**<nowiki>{{DISPLAYTITLE}}</nowiki>
 
**$wgAllowDisplayTitle=true;
 
**$wgAllowDisplayTitle=true;
 +
**Not reliable in >=1.10
 +
**Need extension to do this
 
*How to get those extra things out of $data[] in the template object
 
*How to get those extra things out of $data[] in the template object
 
**Started implementing ''SIDEBAR''
 
**Started implementing ''SIDEBAR''
***It has the weird non-wikitext format
+
***Use wikiskin and include as normal some wikitext article
***A way to grab the article content, send through parser and output html
 
***This way it can be wikitext
 
***Already been done?
 
 
**Toolbox
 
**Toolbox
***Lots of ''if'' [[logic done in the skin|Toolbox box skin fragment]]
+
***[[logic done in the skin|Toolbox box skin fragment]]
***Perhaps can be done with <nowiki>{{#if</nowiki>
 
***Iteration?
 
 
*Best way to deal with wiki and non-wiki content in the same namespace
 
*Best way to deal with wiki and non-wiki content in the same namespace
 
**htaccess from rails
 
**htaccess from rails
Line 23: Line 24:
 
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
 
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
 
</pre>
 
</pre>
 +
 +
{{#regex:{{DISPLAYTITLE}}|%^.*/(.*)$%|$1}}
 +
 +
==See also==
 +
*[[Mediawiki wishlist]]

Latest revision as of 07:49, 9 October 2007

  • Include the navigation from another namespace
  • Template:ExampleContact
    • The best way to use this for other purposes.
    • How to handle errors: You can't edit because you're not logged in etc
  • Namespace permissions
  • How to sanitise the title so that workspaces like Research/Graphics become something nice like Research - Graphics
    • {{DISPLAYTITLE}}
    • $wgAllowDisplayTitle=true;
    • Not reliable in >=1.10
    • Need extension to do this
  • How to get those extra things out of $data[] in the template object
  • Best way to deal with wiki and non-wiki content in the same namespace
    • htaccess from rails
    • inclusive or exclusive
    • This from rails looks for the existence of a file and invokes the cgi if it's not found
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

Template:DISPLAYTITLE

See also