Difference between revisions of "Notes"

From Critiques Of Libertarianism
Jump to: navigation, search
Line 9: Line 9:
  
 
I solved these problems with several tricks.
 
I solved these problems with several tricks.
 +
* Extensions ParserFunctions, StringFunctions, DynamicPageList.
 
* [[:Template:DES]] which allows me to associate descriptions with each page.
 
* [[:Template:DES]] which allows me to associate descriptions with each page.
 
* Index templates [[:Template:List]] and [[:Template:Quotations]].  These let me list categories with DPL and display descriptions with each page.  If a page is for an external link, that link is used rather than the internal wiki link.
 
* Index templates [[:Template:List]] and [[:Template:Quotations]].  These let me list categories with DPL and display descriptions with each page.  If a page is for an external link, that link is used rather than the internal wiki link.
 +
* A number of templates that associate other data with pages, such as external links ([[:Template:URL]]), text from external links ([[:Template:Text]]) and citation information.
 +
* Page building services written in JavaScript that automatically construct wiki page code and open the page to paste it into.  [[http://dl.dropbox.com/u/20086520/js/new_external.html Indexable Page/Quote]]
 
* A one-line hack to the mediawiki OutputPage.php code that makes the categories links at the bottom of each page go directly to a main namespace page instead of a category namespace page.  Switch <code>$title = Title::makeTitleSafe( NS_CATEGORY, $category );</code> to use <code>NS_MAIN</code>.  Thus, no sending people to category pages or having category pages redirect to regular pages.  You can still go to Category pages directly.
 
* A one-line hack to the mediawiki OutputPage.php code that makes the categories links at the bottom of each page go directly to a main namespace page instead of a category namespace page.  Switch <code>$title = Title::makeTitleSafe( NS_CATEGORY, $category );</code> to use <code>NS_MAIN</code>.  Thus, no sending people to category pages or having category pages redirect to regular pages.  You can still go to Category pages directly.
  
== Other Notes ==
+
The end result is:
 +
* I can make and rapidly index pages in a flexible and powerful way that allows me to present more information than the title.
 +
* Code rot due to URL changes is simple to fix in one place.
 +
* Broken external links can be automatically looked up in the internet archive from the in-wiki page.
 +
* External text can be searched within the wiki because it is in the database.
  
examine where I should be using <pre><blockquote></pre>j
+
== Other Notes ==
  
 
Things to fix:
 
Things to fix:
* eliminate showing structural categories such as URL and Description
+
* eliminate showing structural categories such as URL and Description (hidden categories?)
 
* generation of book pages
 
* generation of book pages
 
* main page choices at top
 
* main page choices at top
 +
* test if an external link works before leaving site: if broken, go to in-wiki page with broken link message.
 +
* remove old category redirects
 +
* examine where I should be using <pre><blockquote></pre>

Revision as of 18:49, 25 January 2014