On 08/11/05, Mark Wang <mark.wang(a)francetelecom.com.cn> wrote:
I am working on a "table and text" test! I
have finished a big table
framework with Mediawiki, which almost contains 20 columns and 100 rows. At
the same time, there are 2 small tables which is the sub-table of the big
one, that is, the content of them are same but displayed in different
tables.
[...]
I have one idea to solve it: place the content of a
cell in a single page,
and display the content of the page in the cell; which is like the
Document-View. I have searched the Mediawiki manual but couldn't find any
skill or method to solve this problem.
You could use templates [1] to do all this (probably). Just put each
cell in a separate page (creating them all will be the boring bit),
and create your tables not with the actual content, but with "{{name
of page}}", to "transclude" them.
If you also create a template called "ed" with
"{{fullurl:{{{1}}}|action=edit}}" and some styling (see [2]) you can
add something like "{{ed|{{NAMESPACE}}:{{PAGENAME}}}}" to the page for
each cell, giving you your edit links.
And, of course, any number of tables can reference the same cell data,
as long as you set them up right.
Hope this makes some sense, and happy hacking...
==Refs==
[1]
http://meta.wikimedia.org/wiki/Help:Template
[2]
http://meta.wikimedia.org/wiki/Help:Variable
--
Rowan Collins BSc
[IMSoP]