Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Aurora 4x Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Transclusion
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==How transclusion works== <div style="border: 1px hidden; margin: 0.5em; padding: 0.5em; float:left; width:258px;"> [[Image:Transclusion-simple.png|left]] </div> <div class="boilerplate metadata" id="Template syntax" style="background-color: #CCFFCC; border: 1px solid #009900; margin: 0.5em; padding: 0.5em; float: right; width: 35%; "><center><b>Template syntax</b></center> If the source is in the Main article namespace (e.g., "[[Cat]]"), you must put a colon (:) in front of the name, thus: <tt><nowiki>{{:Cat}}</nowiki></tt> If the source is in the Template namespace (e.g., "[[Template:Villagepumppages]]"), just use the name itself, alone, thus: <tt><nowiki>{{Villagepumppages}}</nowiki></tt> If the source is in any other namespace (e.g., "[[User:Example]]"), you must use the full name, including the namespace, thus: <tt><nowiki>{{User:Example}}</nowiki></tt> </div> To '''transclude''' any '''source''' page (within a single MediaWiki project, such as en:Wikipedia) within another '''target''' page, include the following code: <code><nowiki>{{SOMEPAGE}}</nowiki></code> Whenever the target page '''A''' with this code is rendered, the engine will include ''in that place'' not the code itself, but the entire content of the source page '''B''', SOMEPAGE. {{clear}} <div style="{{divstylenone}} float:left; width:544px;"> [[Image:TC-mult.PNG|left]] [[Image:TC-mult-twit.PNG|left]] </div> {{clear}} For example, you might decide to place a welcome message on every newcomer's Talk Page. Transclusion creates a "live" link between the template-page and the target-page(s) upon which the message should appear. When the template is edited, all the target-pages are edited too. For example, you ''might'' decide to create a (template) page with your mailing address and include that template on not only your page, but all your friends' pages, too. When you move your [[television]] and couch to another apartment, you will ''change'' your address template, and automatically, that ''new information'' will appear on all your friends' pages. {{clear}}
Summary:
Please note that all contributions to Aurora 4x Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Aurora 4x Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Transclusion
(section)
Add topic