Template:Transclusion: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
mNo edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|style="border:2px solid #6E6A4d; background:#333; width:85%; text-align:center; margin: 0 auto; padding:3px; margin-bottom:3px; font-size:95%;"
{|cellpadding="4" cellspacing="0" border="0" style="border-radius: 5px; -moz-border-radius: 5px; border:1px solid #222222; background:#121212; width:85%; text-align:center; margin: 0 auto; padding:3px; margin-bottom:3px; font-size:95%;"
|-
|-
|<big>'''Where... where did it go?'''</big>
|<big>'''Where... where did it go?'''</big>
Line 7: Line 7:
'''<u>Transcluded Pages:</u>''' {{{pages}}}
'''<u>Transcluded Pages:</u>''' {{{pages}}}
|}
|}
<br />
<hr>
<noinclude>
<noinclude>
==Summary==
==Summary==
The above template is used to help direct users to transcluded pages used to make up a single article. The template is used to  direct members to these pages through use of the <nowiki>{{article}}</nowiki> and <nowiki>{{pages}}</nowiki> to keep everything together. Typically this template will be found on the main article's '''Talk''' or '''Discussion''' page as well as the transcluding articles, it can be done via the following format:
The above template is used to help direct users to transcluded pages used to make up a single article. The template is used to  direct members to these pages through use of the <nowiki>{{article}}</nowiki> and <nowiki>{{pages}}</nowiki> to keep everything together. Typically this template will be found on the main article's '''Talk''' or '''Discussion''' page as well as the transcluding articles, it can be done via the following format:
<pre><nowiki><noinclude>{{Transclusion|article=[[Userarticle]]|pages=[[transcluded page]] - [[transcluded page2]]}}</noinclude></nowiki></pre>
<pre>{{Transclusion|article=[[Userarticle]]|pages=[[transcluded page]] - [[transcluded page2]]}}


OR
OR


<pre><nowiki>
<noinclude>
{{Transclusion
{{Transclusion
|article=[[Userarticle]]
|article=[[Userarticle]]
|pages=[[transclude1]] - [[transclude2]]
|pages=[[transclude1]] - [[transclude2]]
}}
}}
</noinclude></nowiki>
</pre>
</pre>


Line 29: Line 25:


Once the sub-page that is going to be transcluded has been created ensure the above format has been included at the top of that article before saving to make life easier in the future. Once you are certain the transcluded article is finished, return to your main article and remove the section you have transcluded (if you have not already done so) and use the following code (replacing "Article/Transclusion" with your article) to actually transclude it into your article:
Once the sub-page that is going to be transcluded has been created ensure the above format has been included at the top of that article before saving to make life easier in the future. Once you are certain the transcluded article is finished, return to your main article and remove the section you have transcluded (if you have not already done so) and use the following code (replacing "Article/Transclusion" with your article) to actually transclude it into your article:
<pre>{{:Article/Transclusion}}</pre>
<pre>{{:Article/Transclusion}}</pre></noinclude>
</noinclude>
[[Category:Transclusion|{{PAGENAME}}]]
[[Category:Transclusion]]

Latest revision as of 17:46, 11 August 2013

Where... where did it go?

The content of this article is split up among several sub pages as it grew too large.
To alter the content you may have to edit one of the pages below.

Complete Article: {{{article}}}
Transcluded Pages: {{{pages}}}


Summary

The above template is used to help direct users to transcluded pages used to make up a single article. The template is used to direct members to these pages through use of the {{article}} and {{pages}} to keep everything together. Typically this template will be found on the main article's Talk or Discussion page as well as the transcluding articles, it can be done via the following format:

{{Transclusion|article=[[Userarticle]]|pages=[[transcluded page]] - [[transcluded page2]]}}

OR

{{Transclusion
|article=[[Userarticle]]
|pages=[[transclude1]] - [[transclude2]]
}}

How to translude

Transclusion can be tricky, but its not too difficult once you get the hang of it. An article only needs to have transcluded pages when its total size is greater that 30,000 bytes and this limit can be seen by going into a page's History tab. Once a page has reached this limit it is typically easiest to transclude the largest part of the article, normally a character or unit's history. To do so, copy and paste the section that will be transcluded into a new article, again this is done by creating a sort of sub-page to the normal article (ex. Article/History) and other examples can be seen here.

Once the sub-page that is going to be transcluded has been created ensure the above format has been included at the top of that article before saving to make life easier in the future. Once you are certain the transcluded article is finished, return to your main article and remove the section you have transcluded (if you have not already done so) and use the following code (replacing "Article/Transclusion" with your article) to actually transclude it into your article:

{{:Article/Transclusion}}