Home > brede > brede_str_wptemplate2cel.m

brede_str_wptemplate2cel

PURPOSE ^

brede_str_wptemplate2cel - Convert Wikipedia templates to cel

SYNOPSIS ^

function C = brede_str_wptemplate2cel(s, varargin)

DESCRIPTION ^

 brede_str_wptemplate2cel - Convert Wikipedia templates to cel

       C = brede_str_wptemplate2cel(s)

       Input:   s    String with raw Wikipedia text with templates

       Property: Info  [ {0} | An integer ] Amount of debug
                       information. 
                 Template [ {[]} | String ] Wikipedia template to
                       extract. If empty all then all templates in
                       the article will be extracted. Whether the
                       initial letter is lower or upper case does
                       not matter.
  
       Output:  C    'Cel' structure

       Given a string that contains raw Wikipedia markup the templates
       is extracted and added to a 'cel' structure where the 'cell'
       elements are field with information from the individual templates
       on the page.

       Example:
         s = '{{Town | population=50000 | zip=2800}}';
         s = [s '{{Town | population=31800 | zip=4200 | name=Slagelse }}'];
         C = brede_str_wptemplate2cel(s)

       See also BREDE, BREDE_CEL, BREDE_STR, BREDE_STR_WPTEMPLATE2STRUCT,
                BREDE_WEB_WIKIPEDIA.

 $Id: brede_str_wptemplate2cel.m,v 1.1 2008/07/09 14:19:12 fn Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005