Template talk:Preload demo
Template:Preload demo (talk, backlinks, edit) contains:
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload.|Includeonly part, works with preload.}}<noinclude> This is inside noinclude tags, but preloaded anyway.</noinclude><includeonly> This is originally inside includeonly tags; preloading removes the tags.</includeonly>
On the page itself it is rendered as:
Noinclude part, works with preload.
This is inside noinclude tags, but preloaded anyway.
{{Preload demo}}
gives {{subst:#ifeq:{{subst:FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. |Includeonly part, works with preload.}}
This is originally inside includeonly tags; preloading removes the tags.
The following is in pre tags, the includeonly tags are removed on preload anyway:
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. [[Category:Test pages]]|Includeonly part, works with preload.}}<noinclude> This is inside noinclude tags, but preloaded anyway, preloading preserves the noinclude tags.</noinclude> <includeonly> This is originally inside includeonly tags; preloading removes the tags. </includeonly> <inputbox> type=create buttonlabel=Create Report </inputbox>
In the following the noinclude and includeonly tags are inside nowiki tags; like with pre, the includeonly tags are removed on preload anyway:
{{subst:#ifeq:{{subst:FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. |Includeonly part, works with preload.}}<noinclude>
This is inside noinclude tags, but preloaded anyway, preloading preserves the noinclude tags.</noinclude><includeonly>
This is originally inside includeonly tags; preloading removes the tags.</includeonly>
Thus, noinclude tags as text can as usual be put inside pre or nowiki tags. However, for includeonly tags as text this does now work. Instead, replace the "<" with "<".
- Here are <includeonly> and </includeonly> as text.
- This produces regular includeonly tags on preload: <includeonly> and </includeonly>. [1]
{{subst:Preload demo}} gives the wikitext:
Includeonly part, works with preload. This is originally inside includeonly tags; preloading removes the tags.
Preloading gives the wikitext:
{{subst:#ifeq:{{subst:FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload.|Includeonly part, works with preload.}}<noinclude> This is inside noinclude tags, but preloaded anyway.</noinclude> This is originally inside includeonly tags; preloading removes the tags.
After saving the wikitext is:
Includeonly part, works with preload.<noinclude> This is inside noinclude tags, but preloaded anyway.</noinclude> This is originally inside includeonly tags; preloading removes the tags.
This shows:
- the ordinary noinclude does not work with preloading
- the special noinclude technique works with preloading
- includeonly works normally with preload, no special technique is needed (but if the technique is used for noinclude it is convenient to put the includeonly part also in that construction)
Inclusion of the template on the template page itself (to demonstrate it) should be in ordinary noinclude tags, because the special technique uses the pagename as criterion, not the fact of inclusion.
Subst
editIncludeonly part, works with preload.
This is originally inside includeonly tags; preloading removes the tags.
The following is in pre tags, the includeonly tags are removed on preload anyway:
Includeonly part, works with preload. This is originally inside includeonly tags; preloading removes the tags. <inputbox> type=create buttonlabel=submit an ANY headline </inputbox>
In the following the noinclude and includeonly tags are inside nowiki tags; like with pre, the includeonly tags are removed on preload anyway:
Includeonly part, works with preload.
This is originally inside includeonly tags; preloading removes the tags.
Thus, noinclude tags as text can as usual be put inside pre or nowiki tags. However, for includeonly tags as text this does now work. Instead, replace the "<" with "<".
- Here are <includeonly> and </includeonly> as text.
- This produces regular includeonly tags on preload: .