Help:Table/Advanced: Difference between revisions

Content deleted Content added
Line 645:
*[[Template talk:COVID-19 pandemic death rates#Automation of updates]].
*[[Template talk:COVID-19 vaccination data#Automation of updates to this template]].
 
== Transclude a table from another page ==
 
{{tl|Excerpt}} is the simplest tool. Go there for many options. The simplest method:
<syntaxhighlight lang=wikitext>
{{Excerpt|Page source of table|Section with the table|this=This table is}}
</syntaxhighlight>
 
It transcludes the table to wherever it is placed. Above it is this indented note in italics below. The page section is linked, and there is an edit link for the source page:
:''This table is an excerpt from Page source of table § Section with the table. [edit]''
 
A hidden note <code><nowiki><!-- NOTE --></nowiki></code> just above the transcluded table is helpful. Such as:
:Table below is currently transcluded from here: https://en.wikipedia.org/wiki/Page_source_of_table#Section_with_the_table. If the source article or section name is changed, then the transclusion code below must also be changed.
 
A hidden note at the source section is helpful too. Such as:
:Table below is transcluded into another page: https://en.wikipedia.org/wiki/Page_with_transcluded_table#Section_with_the_table. Nothing needs to be added here for this to work. As long as the table remains in its own section, and that section name remains the same, then the transclusion works. If the section name here changes, then please change it in the <nowiki>{{excerpt}}</nowiki> template there.
 
== Sortable tables ==