5 ) { return false; } return true; } function isTalk( $index ) { if ( 1 == $index || 3 == $index || 5 == $index || 7 == $index ) { return true; } return false; } # Get the talk namespace corresponding to the given index # function getTalk( $index ) { if ( Namespace::isTalk( $index ) ) { return $index; } else { return $index + 1; } } function getSubject( $index ) { if ( Namespace::isTalk( $index ) ) { return $index - 1; } else { return $index; } } } ?>