Template:Section transclude/doc: Difference between revisions

Content deleted Content added
Created page with '{{Documentation subpage}} {{Template shortcut|st}} == Usage == Transcludes the specified labelled section of the current page <includeonly>{{sandbox other|| C...'
 
No edit summary
Line 1:
{{Documentation subpage}}
{{Template shortcut|st}}
Transcludes the specified labelled section of the current page. Allows the same content to be used in multiple parts of a page, while only needing to be updated in one place.
== Usage ==
 
Transcludes the specified labelled section of the current page
'''Will not work on sub-pages (pages with a slash "/" in the title).'''
 
==Example==
===Code===
<pre><nowiki>
<includeonly>
<section begin=number/>seven<section end=number/>
</includeonly>
 
As I was going to St. Ives, I met a man with {{st|number}} wives. Every wife had {{st|number}} sacks, every sack had {{st|number}} cats, every cat had {{st|number}} kitts. Kitts, cats, sacks, wives, how many were going to St. Ives?
</nowiki></pre>
 
===Output===
As I was going to St. Ives, I met a man with seven wives. Every wife had seven sacks, every sack had seven cats, every cat had seven kitts. Kitts, cats, sacks, wives, how many were going to St. Ives?
 
<includeonly>{{sandbox other||