Rosetta Code:Village Pump/Adding transclusion plugin: Difference between revisions
Content added Content deleted
m (Fixing my work) |
(Sections page for readability) |
||
Line 3: | Line 3: | ||
|summary=Creating a template page which will extract content from existing pages on the fly and present cross-cutting content. For example, a page of all examples in a particular language |
|summary=Creating a template page which will extract content from existing pages on the fly and present cross-cutting content. For example, a page of all examples in a particular language |
||
}} |
}} |
||
==Likely relevant tasks== |
|||
I think this is relevant to |
I think this is relevant to |
||
# [[Rosetta Code:Village Pump/Download Perl Code]] |
# [[Rosetta Code:Village Pump/Download Perl Code]] |
||
Line 9: | Line 10: | ||
but I'd like to wait until I have a working small example to add to those pages. |
but I'd like to wait until I have a working small example to add to those pages. |
||
--[[User:Mcint|Mcint]] ([[User talk:Mcint|talk]]) 08:04, 25 September 2015 (UTC) |
--[[User:Mcint|Mcint]] ([[User talk:Mcint|talk]]) 08:04, 25 September 2015 (UTC) |
||
==MediaWiki support and documentation== |
|||
[[mw:Transclusion|MediaWiki:Transclusion]] has background information and favors one use case, |
[[mw:Transclusion|MediaWiki:Transclusion]] has background information and favors one use case, |
||
Line 18: | Line 19: | ||
It says the function can be called as follows: |
It says the function can be called as follows: |
||
{{#lsth:pagename|sectionX}} |
{{#lsth:pagename|sectionX}} |
||
===Current (guesses) conclusions=== |
|||
Current guess is that using the <nowiki>{{header|...}}</nowiki> macro in a section name is preventing the title from being recognized to do the transclusion |
|||
===Attempted Usage=== |
|||
I would like to call: |
I would like to call: |
||
<nowiki>=={{header|OCaml}}==</nowiki> |
<nowiki>=={{header|OCaml}}==</nowiki> |