Help:Transclusion: Difference between revisions

m
Text replacement - "Saintapedia" to "USApedia"
m (Text replacement - "Saintapedia" to "USApedia")
 
Line 1: Line 1:
{{Nutshell|Transclusion is a way to use content from one article, on another article without having to copy the content from one to the other. If the original content is changed, the change will automatically show in the article that is using the trancluded content.}}
{{Nutshell|Transclusion is a way to use content from one article, on another article without having to copy the content from one to the other. If the original content is changed, the change will automatically show in the article that is using the trancluded content.}}
{{Breadcrumbs|page=Help:Transclusion|url=|wikipedia=yes|openei=no|imwiki=no}}
{{Breadcrumbs|page=Help:Transclusion|url=|wikipedia=yes|openei=no|imwiki=no}}
[[File:Transclusion-multiple-foo.svg|thumb|An illustration of the scope of [[Help:Transclusion#How Transclusion Works|transclusion]]. |404x404px]]{{Clear right}}'''Transclusion''' means the inclusion of the content of one document in another document by reference. In Saintapedia, it refers to a function of the [[MediaWiki]] software that allows the content of one page to be included in the content of another page, by placing a reference to the source page in the wikitext of the target page. A page that is intended to be transcluded into  other pages is called a [[Help:Template|template]]. Changes made to a template are automatically reflected on all pages into which that template has been transcluded.
[[File:Transclusion-multiple-foo.svg|thumb|An illustration of the scope of [[Help:Transclusion#How Transclusion Works|transclusion]]. |404x404px]]{{Clear right}}'''Transclusion''' means the inclusion of the content of one document in another document by reference. In USApedia, it refers to a function of the [[MediaWiki]] software that allows the content of one page to be included in the content of another page, by placing a reference to the source page in the wikitext of the target page. A page that is intended to be transcluded into  other pages is called a [[Help:Template|template]]. Changes made to a template are automatically reflected on all pages into which that template has been transcluded.


In addition to templates, it is possible to share portions of a page using [[#Labeled Section Transclusion|Labeled Section Transclusion]].
In addition to templates, it is possible to share portions of a page using [[#Labeled Section Transclusion|Labeled Section Transclusion]].


== Templates ==
== Templates ==
{{Main|Help:Templates}}Templates are the main way in which transclusion occurs on Saintapedia, often with the use of [[Navboxes]] and [[Infoboxes]].
{{Main|Help:Templates}}Templates are the main way in which transclusion occurs on USApedia, often with the use of [[Navboxes]] and [[Infoboxes]].


=== Noinclude, includeonly, and onlyinclude ===
=== Noinclude, includeonly, and onlyinclude ===
Line 15: Line 15:
{{Main|Help:Labeled Section Transclusion}}
{{Main|Help:Labeled Section Transclusion}}
Labeled Section Transclusion allows the transclusion of a specific section of a page rather than an entire page.
Labeled Section Transclusion allows the transclusion of a specific section of a page rather than an entire page.
{{#lsth:Help:Labeled Section Transclusion|Best practice usage within Saintapedia}}
{{#lsth:Help:Labeled Section Transclusion|Best practice usage within USApedia}}


== How Transclusion Works ==
== How Transclusion Works ==