[xwiki-devs] [Proposal] Rendering: passing parameters to different events
Hi, Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc. I'm proposing that we enable that in our rendering too. This will allow writing things like: (% param1="value1" param2="value2" %) This is a paragraph Example: (% style="background-color: blue" %) This is a paragraph Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose: - paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia. WDYT? Thanks -Vincent
Looks good, +1. On Fri, Sep 5, 2008 at 3:51 PM, Vincent Massol <[email protected]> wrote:
Hi,
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Jean-Vincent Drean
+1 On Fri, Sep 5, 2008 at 3:51 PM, Vincent Massol <[email protected]> wrote:
Hi,
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
- horizontal line (color, etc.) ?
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Sep 5, 2008, at 3:57 PM, Thomas Mortagne wrote:
+1
On Fri, Sep 5, 2008 at 3:51 PM, Vincent Massol <[email protected]> wrote:
Hi,
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
- horizontal line (color, etc.) ?
Well the reason I mentioned only the elements above is because they are the only one supported by wikimodel for passing parameters... :) Thanks -Vincent
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
Thanks -Vincent
FYI and as a test I've implemented this for paragraphs only for now. Thanks -Vincent On Sep 5, 2008, at 3:51 PM, Vincent Massol wrote:
Hi,
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
Thanks -Vincent
+1. Looks very useful. Vincent Massol wrote:
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
-- Artem Melentyev
Vincent Massol wrote:
Hi,
Wikimodel (and Doxia) both have the ability to pass parameters to some events such as paragraphs, lists, tables, etc.
I'm proposing that we enable that in our rendering too.
This will allow writing things like:
(% param1="value1" param2="value2" %) This is a paragraph
Example:
(% style="background-color: blue" %) This is a paragraph
Note that we've already agreed to do that for tables. What I'm saying here is that we should generalize it to other elements. Here's the list I propose:
- paragraphs - list and list items (including definition lists) - section headers - quotation (which is not yet implemented, on my todo list) - tables
This solves our issue of styling without requiring a special macro and in addition it's very generic and consistent with wikimodel/doxia.
WDYT?
+1 -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (5)
-
Artem Melentyev -
Jean-Vincent Drean -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol