Browse files

Merge branch 'lox-bugid-99709' into dev

  • Loading branch information...
2 parents 9157af1 + d3b4aaa commit 8ce6f4a1a55521c3e97bd69b5e2dee08665b64d6 Federico 'Lox' Lucignano committed Mar 21, 2013
@@ -6,13 +6,14 @@
class ArticleService extends WikiaObject {
const MAX_LENGTH = 500;
- const CACHE_VERSION = 7;
+ const CACHE_VERSION = 8;
private $article = null;
private $tags = array(
+ 'div',
@@ -224,4 +225,4 @@ static public function onArticleSaveComplete( WikiPage &$page, &$user, $text, $s
return true;
@@ -253,6 +253,40 @@ public function getTextSnippetDataProvider() {
+$article4 = <<<TEXT
+<div class="boilerplate metadata" id="delete" style="background-color: #fee; margin: 0 1em 0 1em; padding: 0 10px; border: 1px solid #aaa;">
+<p><b>Please review this tip:</b>
+<ul><li>This tip was imported from and needs <a href="" title="Vim Tips Wiki:General guidelines">general review</a>.
+</li><li>You might <a href="" title="Vim Tips Wiki:Comment guidelines">clean up comments</a> or <a href="" title="Vim Tips Wiki:Merge guidelines">merge similar tips</a>.
+</li><li>Add suitable <a href="" title="Vim Tips Wiki:Category guidelines">categories</a> so people can find the tip.
+</li><li>Please <a href="" title="Vim Tips Wiki:Discussion guidelines">avoid the discussion page</a> (use the Comments section below for notes).
+</li><li>If the tip contains good advice for current Vim, remove the <code>{{review}}</code> line.
+<div><b><a class="text" href="">Tip 931</a></b> <a class="text" href="">Printable</a> <a class="text" href="">Monobook</a> <a href="" title="VimTip929" class="mw-redirect"><small>Previous</small></a> <a href="" title="VimTip933" class="mw-redirect"><small>Next</small></a>
+<p><b>created</b>&#160;2005&#32;&#183; <b>complexity</b>&#160;basic&#32;&#183; <b>author</b>&#160;mixedvolume&#32;&#183; <b>version</b>&#160;5.7
+<hr />
+<p>This tip builds on <a href="" title="VimTip926" class="mw-redirect">VimTip926</a> (tagging QT help). With a different Perl parser given below for tagging STL documentation.
+</p><p>In vim, you can now do
+:ta vector
+<p>Or press Control-T on <code>vector</code> to open stl/vector.html in your browser.
+</p><p>Or do <code>:ts /push</code> to find all tags names ~ push.
+cd STL_doc
+perl &gt; tags # script given below.
return array(
array( // article is empty
@@ -282,12 +316,17 @@ public function getTextSnippetDataProvider() {
array( // example real article 2 - Glee_TV_Show_Wiki (glee)
- 'Learn about Next Season:Season Four Read more > Learn about Last Ep:Goodbye Read more > Learn...',
+ '2,021,323 edits | 1,192 articles | 1,248 active users',
array( // example real article 3 - muppets Episode 112 )
'The Muppet Babies are playing outer space explorers when a strange creature enters the nursery...'
+ ),
+ array( // example real article 4 - STL help using tags - C++ Standard Template Library (vim)
+ 100,
+ $article4,
+ 'This tip builds on VimTip926 (tagging QT help). With a different Perl parser given below for...'

0 comments on commit 8ce6f4a

Please sign in to comment.