Changes

Jump to: navigation, search

Recycled WikiContent

356 bytes added, 06:25, 26 June 2021
no edit summary
{{Languages|Recycled_WikiContent}}
Many instructional documents must repeatedly present subsets of instructions. Synchronizing all the instances of that subset repeated throughout the wiki is a poor use of energy.
These subsections can be named as separate templates and then simply included (by name) in the Wiki pages. The MediaWiki system will look up & and embed the expanded subsection into the page.
By editing the template, all the pages using that template will be updated instantly. This is the handled much like re-using image files on web pages.
However, too many templates create a filing mess. An alternative to ripping out a potentially re-useable chunk of text occurs when the original document has only a single re-useable subsection. In that case, you can mark off the desirable subsection and use the original page like a template.
The following subsection under the divider bar is a [https://mwww.mediawiki.org/wiki/Transclusion Transclusion] (''transcribed inclusion'') from the [[Gramps_5.1_Wiki_Manual_-_Preface|Gramps 5.1 Wiki Manual - Preface]] page. (The <onlyinclude>...</onlyinclude> tags were added the original page around the re-useable subsection.)
It remains 'transcluded' with a single line:
<nowiki>{{:Gramps_5.1_Wiki_Manual_-_Preface}}</nowiki>
 
But all that same content could just as easily been duplicated (like a a 'copy&amp;paste') with the line:
<nowiki>{{subst:Gramps_5.1_Wiki_Manual_-_Preface}}</nowiki>
----
{{:Gramps_5.1_Wiki_Manual_-_Preface}}
<!--
{{:Why use Gramps?|source=Gramps_5.1_Wiki_Manual_-_Preface}}
-->
__NOEDITSECTION__
[[Category:WikiContributors|R]]
[[Category:Templates]]
[[Category:Pretty Templates]]
2,186
edits

Navigation menu