CargoAdmin, Bureaucrats, Moderators (CommentStreams), fileuploaders, Interface administrators, newuser, Push subscription managers, Suppressors, Administrators
5,236
edits
Tag: Undo |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Notice|You need to use [[Enhanced editor]], not [[VisualEditor]] when adding or editing LST.}}[[File:Transclusion-multiple-foo.svg|thumb|An illustration of the scope of [[Help:Transclusion#How Transclusion Works|transclusion]].|404x404px]] | {{Notice|You need to use [[Enhanced editor]], not [[VisualEditor]] when adding or editing LST.}}[[File:Transclusion-multiple-foo.svg|thumb|An illustration of the scope of [[Help:Transclusion#How Transclusion Works|transclusion]].|404x404px]] | ||
'''Labeled Section Transclusion''' (LST) allows you to show part of the contents of one page in one or more places across the wiki. This allows editors to maintain content in one place. If the content was copied instead of using LST, a single change to the original text could require numerous edits around the wiki to fix it in all the places it was copied. | |||
LST is different than traditional [[Help:Transclusion|transclusion]] in that allows a specific section of a page to be shown other places, rather than an entire page. In short, it is a specialized form of a template. | LST is different than traditional [[Help:Transclusion|transclusion]] in that allows a specific section of a page to be shown other places, rather than an entire page. In short, it is a specialized form of a template. | ||
| Line 6: | Line 7: | ||
{{Breadcrumbs|url=|page=Extension:Labeled Section Transclusion|wikipedia=no|mediawiki=yes|openei=no|imwiki=no}}[[mediawikiwiki:Extension:Labeled Section Transclusion|Mediawiki's Labeled Section Transclusion]] contains the full range of options available with this extension. | {{Breadcrumbs|url=|page=Extension:Labeled Section Transclusion|wikipedia=no|mediawiki=yes|openei=no|imwiki=no}}[[mediawikiwiki:Extension:Labeled Section Transclusion|Mediawiki's Labeled Section Transclusion]] contains the full range of options available with this extension. | ||
==Best practice usage within | ==Best practice usage within USApedia== | ||
The Labeled Section Transclusion extension provides two primary mechanisms which needed to be done in [[Enhanced editor]] (not [[VisualEditor]]) for transcluding information: | The Labeled Section Transclusion extension provides two primary mechanisms which needed to be done in [[Enhanced editor]] (not [[VisualEditor]]) for transcluding information: | ||
| Line 18: | Line 19: | ||
The lead [[Gardener]] recommends using the section head approach to help keep the edit window as clean as possible on all related pages. This approach is not without drawbacks, namely if the section head changes, the transclusion will break, but we feel this is the most pragmatic approach. | The lead [[Gardener]] recommends using the section head approach to help keep the edit window as clean as possible on all related pages. This approach is not without drawbacks, namely if the section head changes, the transclusion will break, but we feel this is the most pragmatic approach. | ||
=== Example: Test Transclude the intro of | === Example: Test Transclude the intro of YouTube} === | ||
<pre>{{#lsth:YouTube}}</pre> | <pre>{{#lsth:YouTube}}</pre> | ||
{{#lsth:YouTube}} | {{#lsth:YouTube}} | ||
| Line 97: | Line 98: | ||
The status history for each project is maintained in a subpage. In this example, it is at [[Mediawikiwiki:Visual editor/status]] | The status history for each project is maintained in a subpage. In this example, it is at [[Mediawikiwiki:Visual editor/status]] | ||
{{ | {{USApedia}} | ||
edits