Author Topic: Is it possible to include one article inside another?  (Read 5097 times)

Quinch

  • Guest
Is it possible to include one article inside another?
« on: February 05, 2010, 08:40:21 AM »
I'm writing up my AE arc; rather than duplicating the text in both the main article and each of the five separate mission ones, is it possible to embed the text from the mission articles into the main one?

Aggelakis

  • Elite Boss
  • *****
  • Posts: 3,001
Re: Is it possible to include one article inside another?
« Reply #1 on: February 05, 2010, 09:18:04 AM »
Instead of duplicating the whole missions in the main page, for the arcs that are going the 'mission text' style, generally only the Briefing is included. For example, The Butterfly Effect only includes the briefing and the enemy group involved. Putting all of it in there ends up kind of cluttering the page. (Look at contact pages on the wiki... that's pretty cluttered, huh?)

However, if you would like to put entire pages in, you make them into a pseudo-template (transclusion). If you want to transclude the page "Bobbing Bob" into another page, you type the following in the other page:

{{:Bobbing Bob}}

This tells the wiki to pull all the information from "Bobbing Bob" and place it where the template is located. To call multiple pages, you just put multiple transclusions in a row:

{{:Bobbing Bob}}
{{:Joshing Josh}}
You can put text between transclusions if you want to interject something that does not appear in either page you are transcluding from.
{{:Marking Mark}}

Note that if the page exists somewhere other than the main namespace, you need to include the namespace in the transclusion. For instance, to transclude the article guidelines (which exist in the Ouroboros Portal namespace, not the main namespace):

{{:Ouroboros Portal:Article Guidelines}}
« Last Edit: February 05, 2010, 09:23:10 AM by Aggelakis »
Bob Dole!! Bob Dole. Bob Dole! Bob Dole. Bob Dole. Bob Dole... Bob Dole... Bob... Dole...... Bob...


ParagonWiki
OuroPortal

Quinch

  • Guest
Re: Is it possible to include one article inside another?
« Reply #2 on: February 05, 2010, 09:34:43 AM »
Cool; and yeah, normal contact pages on PW do look a bit cluttered, but they also have a heck of a lot more content - a single arc on a single page might be readable.