This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template talk:Newepisode

From Heroes Wiki
Revision as of 16:47, 23 January 2007 by imported>Orne (and done)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When substituted, this is actually writing "{{PAGENAME}}" into the resulting article in the "see the full article" blurb instead of filling it in with the pagename of the page on which it's substituted. How do we fix that?--Hardvice (talk) 18:14, 22 January 2007 (EST)

Ah, I see. Well, the <includeonly>...</includeonly> is a trigger (for page inclusions) which toggles whether or not the text is shown... it basically acts like an If Page is Included in Another Page Then Show this Text. It is only when it is coupled with the {{subst: ... }} that the rendered text becomes permanent. So, the {{PAGENAME}} is doing exactly what it is supposed to do: the subst includes the Template into the page, and the includeonly makes it show up when the page is included. Let me see if I can find more information in the docs. --Orne 11:05, 23 January 2007 (EST)
Ok, got it working. The problem was the syntax of where to put the includeonly statement. The final version should be {{<includeonly>subst:</includeonly>PAGENAME}}. What this apparently does is (1) If the Template is included (like it is when you use subst: from the Usage section), then the page does include the subst: (2) since the formula now renders as {{subst:PAGENAME}}, that is the command for Evaluate the PAGENAME and save it straight into the page as text; (3) using the less than < in the template then completes another set of includeonly tags that wrap around the whole blurb, so you don't see that text until the New Article is itself included. --Orne 11:47, 23 January 2007 (EST)