Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Examples/Parameter: include (example 5): Difference between revisions

m
no edit summary
imported>FrozenPlum
(To track until I know better if this new behaviour is intentional or not)
 
imported>FrozenPlum
mNo edit summary
Line 7:
 
This selects the article [[Apple]] and includes the output of a surrogate template, since [[Apple]] doesn't use the specified template, instead of displaying the content of DPL3 displays a call to a template with the additional suffix ".default" giving the user a chance to either create the missing template, or correct the include/includepage reference.
{{note|This example and the corresponding DPL3 behavior is not currently working as described (it worked aspreviously described prior). This example is for preservation purposes until it is known if this is intentional (new behavior) or a bug. [[Template:Details]] exists, it has <code><nowiki>{{{1|}}}</nowiki></code> inside it. The surrogate ([[Template:Details.example]]) exists, and there is simple formatting supplied inside it to wrap <code><nowiki>{{{1|}}}</nowiki></code> in a span and color the text green. I have confirmed (offsite) that if Template:Details is used on the [[Apple]] page, both template and surrogate work as normal. However, when Template:Details use is removed from the Apple page, "Template:Details.example.default" should appear in the second column, but it does not (as seen below).}}
 
<pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.