Skip to content
Southparkfan edited this page Oct 23, 2014 · 3 revisions

A small tutorial about writing Wikiportret code.

Indent your code

Wikiportret uses the Allman style. Wikiportret also has begin & end statements (PHP and HTML tags) indented on the same line.

Good:

<?php
include 'header.php';
?>
<div id="content">

      <h2>Dingen</h2>
      
      <?php
      if (!$dingen)
      {
      echo "Hallo!";
      }
      ?>

</div>
<?php
include 'footer.php';
?>

Bad:

<?php
include 'header.php';
?>
<div id="content">
<h2>Dingen</h2>
<?php
if (!$dingen)
{
echo "Hallo!";
}
?>
</div>
<?php
include 'footer.php';
?>
Clone this wiki locally