Wikipedia talk:Transclusion
From Wikipedia, the free encyclopedia
[edit] Transcluding a table row
It would be nice if you could transclude a table row. Dave Yost 13:11, 13 January 2007 (UTC)
Transclusion is a concept developed by Ted Nelson, and some short & appropriate discussion of that would be nice, along to the general WP page on transclusion. KenThomas 19:20, 22 February 2007 (UTC)
[edit] Edit Links to pages with <noinclude> tags around preceding sections don't work
I created a page on Wikia where there were four titles (e.g. ===Title===), and the first two were contained in 'no include' tags, because I didn't want to transclude the introductory text.
On the target page, the transcluded titles still had edit links next to them, but clicking on those edit links caused you to edit one of the two preceding non-transcluded sections, rather than the subsequent two transcluded sections.
Thanks, --219.174.96.57 10:30, 18 March 2007 (UTC)
[edit] Un-transclusion
I'm being a bit thick but how does one un-transclude. In particular how do I delete categories from my user page? (Ajkgordon 18:47, 13 June 2007 (UTC))
- You have to figure out which of the templates you have used transcludes the categorization code that you wish to remove. When you have a page in edit mode you can see a list of all templates (including templates transcluded within other templates) that the page applies underneath the edit window. Then looking into the source code of different templates will reveal the template responsible for adding you to the category in question. __meco 20:12, 26 June 2007 (UTC)
[edit] Transclude special pages?
It doesn't appear possible to tranclude a special page, e.g. Special:Version doesn't pull in the Special:Version page. Is this by design, and is there any way around this?
- Nope, there's no way around it. Some but not all special pages can be transcluded, like {{special:recentchanges/2}} gives the last 2 recent changes:
15 June 2008
- (diff) (hist) . . Unidentified flying object; 15:52 . . (+20) . . SUVx (Talk | contribs) (→Notable cases: change)
- (diff) (hist) . . User talk:Osamaaansari; 15:52 . . (+1,035) . . RyanLupin (Talk | contribs) (General note: Removing {{speedy deletion}} templates on Osama Aslam Ansari.)
For a list of transcludable special pages, see help:special page. Resurgent insurgent 00:22, 18 September 2007 (UTC)
[edit] Just wanted to say
...The concept of being able to include entire articles inside another, purely by use of a few characters either side of the article's name, is brilliant! whoever invented this one man, definate barnstar =) From just another tireless contributor....SteelersFan UK06 06:00, 26 July 2007 (UTC)
I agree - But I wonder what happens if you create a nice endless loop (i.e. the contents of page A are transcluded from page B, but page B is a transclusion of A...) 121.72.241.213 09:44, 17 September 2007 (UTC)
- It seems Mediawiki will flatly refuse to serve up either page and display a Wikimedia error notice. Resurgent insurgent 01:49, 18 September 2007 (UTC)
[edit] Transcluding a section from a page
Is it possible for this transclusion to only grab a section of page, and not the entire page? For example, I tried in my Sandbox to only grab the section "Proposed use of nuclear weapons" from the Korean War page, by using the {{:Korean War#Proposed use of nuclear weapons}} syntax, but I got the entire page. It would be definately be very useful to only grab various sections, as a discussion on WT:NOR may show. Thanks. wbfergus Talk 15:26, 1 October 2007 (UTC)
So is this possible or not? —Preceding unsigned comment added by 124.170.147.190 (talk) 10:11, 8 November 2007 (UTC)
[edit] WP:TRANS shortcut
I just noticed that WP:TRANS redirects here, whereas WP:Trans redirects to a "translator's" page. Consistency is preferred. Colin MacLaurin (talk) 18:16, 1 January 2008 (UTC)
[edit] Redirect
I redirected Wikipedia:Transclusion costs and benefits here. Discussion here (not here below). /SvNH 18:36, 13 February 2008 (UTC)
[edit] Transclusion to an external page?
Hi all. I wondered if there was a way to transclude from MediaWiki to an external site.
As an example... say I wanted to transclude "Today's feature picture" (see the main page) to my iGoogle page. I understand how transclusion works within Wikipedia. I'd type this --
{{POTD protected/{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}
-- and this would appear:
|
A map of troop movements during the Waterloo Campaign, leading up to the Battle of Waterloo where Napoleon Bonaparte was defeated. Napoleon's Army of the North came up against a coalition army composed of forces from the United Kingdom, the Netherlands, Prussia, Hanover, Nassau, and Brunswick. Beginning 15 June 1815, the combatants fought successively in the Battle of Quatre Bras, the Battle of Ligny, the Battle of Waterloo, and lastly the Battle of Wavre. Map credit: Gsl/I. Pankonin Recently featured: Robber fly – Korean War train attack – Types of mustard |
Are there any ways to transclude this to an external site, specifically, outside of an instance of MediaWiki? Thanks for the help. If there is a more appropriate place to ask this -- I tried going to the MediWiki site first -- your advice is most welcome.
--Kittell (talk) 18:56, 21 February 2008 (UTC)
- See e.g. Transclusion#In_HTML. However, it may not be allowed, and considered bandwidth theft.--Patrick (talk) 00:39, 22 February 2008 (UTC)
-
- Thanks, Patrick. The above was just a local example; my plan is to transclude my personal wiki's content to my personal iGoogle page :-) --Kittell (talk) 16:28, 22 February 2008 (UTC)
[edit] Transcluding content from article sections
I recently used transclusion in a way that yielded unexpected results. I was attempting to transclude text from two sections of one article into two sections of another. Here's an example of what I tried:
The target article contains the following wikitext:
== Section 1 ==
{{:Source Article#Section I}}
== Section 2 ==
{{:Source Article#Section II}}
The source article contains the following wikitext:
== Section I == <onlyinclude> Hello world. </onlyinclude> == Section II == <onlyinclude> Lorem ipsum... </onlyinclude>
The rendered result I expect in the target article is:
Section 1 Hello world. Section 2 Lorem ipsum...
Instead, the target article renders in the following way:
Section 1 Hello world. Lorem ipsum... Section 2 Hello world. Lorem ipsum...
If using the "#" fragment identifier won't work for transcluding content from an article section, is there something else that will work? Regardless, it might be a nice addition to this article to explain that fragment identifiers have no effect on transclusion. I've been unable to find information about this anywhere in Wikipedia. --Bryan H Bell (talk) 01:14, 26 February 2008 (UTC)
[edit] Transcluding Category Lists
Is it possible to transclude the whole category list? Ive tried {{:Category:Name}} and {{Category:Name}} and obviously the second one makes the category link - is this at all possible? --137.73.5.25 (talk) 13:12, 6 March 2008 (UTC)
[edit] Plain English Definition of Transclusion
I am sorry, folks. I have read the definition of transclusion and the illustrations and examples of transclusion over and over and over, and I still don't understand what transclusion means. If I use a particular template to create an article or a list by using the Edit links on the template, is that transcluding?
I forgot to include my signature. Kathy (talk) 19:02, 28 March 2008 (UTC)
I believe the definition of transclusion is just showing the contents of one page inside of your wiki page. That way, as changes are made to the page you are transcluding, then the latest updates will show up on your page as well.
--198.169.188.227 (talk) 00:03, 9 April 2008 (UTC)
[edit] Transclusion of part of article only -- please answer us!
I am now the third commenter on this page asking how to transclude only a part of an article. The previous two got no answer. Emmanuelm (talk) 17:01, 15 April 2008 (UTC)
- No, looks like the # URL syntax is not supported. Neither are categories. I can't imagine a reason that sections would not eventually be supported (assuming they actually have # syntax in the output). — robbiemuffin page talk 13:57, 15 May 2008 (UTC)
[edit] Transclusion within a transclusion doesn't update?
User:Xenocidic/infobox/status is transcluded on User:Xenocidic/infobox which itself is transcluded onto my userpage, but it doesn't seem to update properly... Is it too deep a recursion? xenocidic (talk) 17:52, 19 April 2008 (UTC)
- Cross-posted to Village Pump xenocidic (talk) 13:00, 21 April 2008 (UTC)
- It's just a caching issue: the appearance of your userpage is cached by the servers to improve performance. When you update your status indicator, the system notes that all the pages on which that template is trancluded need to be recached. So they're put into the job queue... which is currently about 8 million articles long. If you left everything alone, your page would eventually be recached... in a week or so. To force an immediate recache and ensure your userpage displays correctly, you just need to do a null edit to your userpage after you update the template. Happy‑melon 13:54, 21 April 2008 (UTC)
[edit] pi
i like toast and butter —Preceding unsigned comment added by 12.147.197.133 (talk) 23:03, 25 May 2008 (UTC)
[edit] Image properties when transcluding?
I would like to transclude an EasyTimeline and treat it as an image with a frame & centering. Is this possible and what would the syntax be? Dhatfield (talk) 08:20, 26 May 2008 (UTC)
[edit] Transcluding pages across projects
Two questions:
- Is it possible to transclude a page from one Wikipedia site to another? Now that unified login has been implemented, I was wondering whether it was possible to transclude my user page at en.wikipedia over to, say, de.wikipedia. I tried "{{w:User:Jacklee}}" and "{{:w:User:Jacklee}}" but that didn't work.
- Has anyone noticed that the first section heading of the guideline is "Byron McLear", which makes no sense? I assume it's vandalism, but can't revert it as I have no idea what the section heading used to be.
Thanks. — Cheers, JackLee –talk– 23:37, 29 May 2008 (UTC)
- First issue: no idea. Second issue: Fixed. I was actually looking at old revisions of the page back to 2006 and it still said Byron DeLear, at first, I thought maybe you had uncovered The Oldest Remaining Vandalism Ever™, but it turns out, there's a transclusion on the page explaining transclusion! ;> xenocidic (talk) 23:42, 29 May 2008 (UTC)
Ha, ha! Yup, I couldn't find out what the proper subject heading was, which is why I highlighted it here. It didn't occur to me to check the Wikitext. — Cheers, JackLee –talk– 23:47, 29 May 2008 (UTC)

