Jump to content

Topic on Project:Support desk

Update one table cell from another table cell

2
46.17.161.8 (talkcontribs)

Guys,

Is it possible to update a table cell and then have this automatically update another table cell on a different page?

Scenario:

On Page A I have Table 1 and I change the cell colour of the table from Green to Red. I want this change to automatically change the cell colour of Table 2 on Page B to match.

I know this question exceeds the capabilities of MediaWiki, but I have to ask anyway. I just want to have explored all options before giving up.

Thanks

Matt

Fred Gandt (talkcontribs)

If you want to be showing the same content in the cells of the table on both A and B, then if that content is derived from a template, and the template or the call driving it (or more specifically the parameters fed to it i.e. the e.g. colour) is changed, then both table cells will account for the change the same way.

Easier, but possibly not suitable (depending on the specifics) would be to transclude the cell or entire table from one source, thus the transclusion on both A and B will be identical.

In other words: Templates FTW! \o/

Reply to "Update one table cell from another table cell"