Commit graph

12 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason d5eaf3c294 * <li><cite id=..> => <li id=..> in 'cite_references_link_one' and
'cite_references_link_', only direct references should be wrapped in <cite>
  and since that probably won't apply to everything users put here I'm removing
  it
* Documentation, marked functions as static where applicable
* Using ~ as a regexp delimiter instead of #, ��var like better..
* Killed PersistentObject
2006-01-07 09:24:48 +00:00
Ævar Arnfjörð Bjarmason 800e782118 * Given input like:
The quick<ref name=agility>NASA</ref> brown fox jumped<ref name=agility/> over the lazy<ref>Discovery channel</ref> dog
  generate:
    "The quick[1] brown fox jumped[1] over the lazy[2] dog."
  inline and:
    1. 1.1 1.2 NASA <!-- 1.1 & 1.2 are links -->
    2. Discovery channel
  in the references section, as opposed to:
    The quick[1] brown fox jumped[2] over the lazy[3] dog.
  inline and:
    1. 1 2 NASA <!-- 1 & 2 are links -->
    2. Discovery channel
  like before
2005-12-29 21:56:00 +00:00
Ævar Arnfjörð Bjarmason 960b7846bb * Updated documentation
* Updated the link to the online documentation, now on meta
2005-12-25 19:39:22 +00:00
Ævar Arnfjörð Bjarmason 6a5fe406eb * Removed a call to wfDebugLog() 2005-12-25 01:47:29 +00:00
Ævar Arnfjörð Bjarmason b50e5ca190 * Passing false to Parser::parse() to not make it clear its state, this along
with the hook in Parser::clearState() makes sure the state of the Object is
  kept in sync with the state of the parser, i.e. works correctly for dumpHTML
2005-12-25 00:27:19 +00:00
Ævar Arnfjörð Bjarmason b271104237 * Using <ref name=str> instead of <ref str> 2005-12-24 18:03:21 +00:00
Ævar Arnfjörð Bjarmason 837fb7cd49 * Wrote error messages for the internal errors
* Hook into Parser::clearState() and clear my state when it does
2005-12-23 06:06:57 +00:00
Ævar Arnfjörð Bjarmason 26e14facce * Corrected documentation error 2005-12-23 05:28:39 +00:00
Ævar Arnfjörð Bjarmason b02933ace8 * Wrap error messages in <strong class="error"></strong> (just like <math>)
* Error message "expecting a key that matched /^[^0-9]+$/" => "expecting a non-integer key"
2005-12-23 05:06:17 +00:00
Ævar Arnfjörð Bjarmason 4c4e35e881 * $wf => $wg
* give <ref> and <references> a css class, reference and references, respectively
* Code cleanup
* Lots of documentation, every function fully documented + code comments
* Split link() into linkRef() and linkReferences()
* Split key() into refKey() and referencesKey()
2005-12-23 02:34:39 +00:00
Ævar Arnfjörð Bjarmason ecb285c761 * Use my own $wgParser, $wgOut's had problems with inclusions from templates (they don't work properly though due to parsing order)
* " $and " => $and, avoids space buildup
* Workaround Tidy output with some regular expressions
2005-12-23 00:43:23 +00:00
Ævar Arnfjörð Bjarmason b714bf0996 * Extension that adds <ref> and <references/> tags 2005-12-21 01:08:25 +00:00