title: Create multiple links automatically with a loop in Dokuwiki?
body: <p>I was trying to find a way to create multiple links automatically in Dokuwiki.</p>
  
  <p>I tried enabling php and using the following code: </p>
  
  <pre><code>&lt;php&gt;
  for ( $counter = 1; $counter &lt;= 3; $counter += 1) {
      echo "[[page$counter]]";
      echo $counter;
  
  }
  &lt;/php&gt;
  </code></pre>
  
  <p>I thought that the "echo" would work like in HTML and its output would be interpreted by Dokuwiki as its own command </p>
  
  <p>(creating 3 links), but instead of that I just get the following text output (no links):</p>
  
  <blockquote>
    <p>[[page1]]1[[page2]]2[[page3]]3</p>
  </blockquote>
  
  <p>Any help on how to use a loop (not necessarily with PHP) in Dokuwiki to create multiple links?</p>
  
  <p>THANKS!</p>