Difference between revisions of "Template:Svn"

From Organic Design wiki
m
(listing.php if ends in /)
Line 1: Line 1:
{{#vardefine:url|{{#if:{{{2|}}}|http://svn.organicdesign.co.nz/filedetails.php?repname={{{1}}}&path={{urlencode:/{{{2}}}}}|{{{1}}}}}}}{{#if:{{{3|}}}|{{{3}}} {{#var:url}}|{{info|This code is in our [[svn|subversion repository]] and can be viewed using our ''websvn'' [{{#var:url}} here]{{#if:{{{2|}}}|&nbsp;or on our ''GitHub'' mirror [https://github.com/OrganicDesign/extensions/blob/git-svn/{{{2}}} here].<br>To checkout a local read-only copy of this item's repository, you'll need to use the GitHub mirror since we can no longer support local anonymous checkouts after [[1 July 2013|migrating our web-server]] from [[Apache]] to [[Nginx]].}}
+
{{#vardefine:url|{{#if:{{{2|}}}|http://svn.organicdesign.co.nz/{{#ifeq:{{#sub:{{{2}}}|-1}}|/|listing.php|filedetails.php}}?repname={{{1}}}&path={{urlencode:/{{{2}}}}}|{{{1}}}}}}}{{#if:{{{3|}}}|{{{3}}} {{#var:url}}|{{info|This code is in our [[svn|subversion repository]] and can be viewed using our ''websvn'' [{{#var:url}} here]{{#if:{{{2|}}}|&nbsp;or on our ''GitHub'' mirror [https://github.com/OrganicDesign/extensions/blob/git-svn/{{{2}}} here].<br>To checkout a local read-only copy of this item's repository, you'll need to use the GitHub mirror since we can no longer support local anonymous checkouts after [[1 July 2013|migrating our web-server]] from [[Apache]] to [[Nginx]].}}
  
 
See the discussion page for development notes and details and the mediawiki.org page for installation and usage documentation.}}}}
 
See the discussion page for development notes and details and the mediawiki.org page for installation and usage documentation.}}}}
 
<includeonly>{{#if:{{{2|}}}|[[Category:Code in the OD SVN repository|{{PAGENAME}}]]|[[Category:Extensions|{{PAGENAME}}]][[Category:Extensions in the MediaWiki SVN repository|{{PAGENAME}}]]}}</includeonly>
 
<includeonly>{{#if:{{{2|}}}|[[Category:Code in the OD SVN repository|{{PAGENAME}}]]|[[Category:Extensions|{{PAGENAME}}]][[Category:Extensions in the MediaWiki SVN repository|{{PAGENAME}}]]}}</includeonly>

Revision as of 00:51, 30 July 2013

Info.svg This code is in our subversion repository and can be viewed using our websvn [{{{1}}} here]

See the discussion page for development notes and details and the mediawiki.org page for installation and usage documentation.