In the labeled section transclusion extension (written for wikisource, but not installed yet) sections are transcluded by name, either using the heading, or a special <section> marker; transclusion by heading is optional, since it could be more more prone to breakage (i.e. renaming a header), and it's less obvious exactly what needs to be included.
Wictionary could probably leverage this type of mechanism, similarly to the way the DPL extension does, by calling LST functions to get the sections.
On Wed, 14 Feb 2007 12:09:29 +0100, Bryan Tong Minh wrote:
If we want sections to be transcludable, we need to address them by name and not by number, because adding a header might cause an other section to be included.
Bryan
On 2/14/07, Andrew Dunbar hippytrail@gmail.com wrote:
Wiktionary's case is a bit easier because we don't need to transclude sections but merely make them accessible to MediaWiki extensions written in PHP.
For instance most users don't care about translations so that section would not be displayed by default unless enabled in preferences.
A good incremental design path might be 1: wrap sections/subsections in DIVs 2: provide section/subsection APIs for extensions. 3: make sections transcludable.
Andrew Dunbar (hippietrail)
On 2/14/07, Steve Bennett stevagewp@gmail.com wrote:
On 2/14/07, Jay R. Ashworth jra@baylink.com wrote:
Well, my snap reaction is 'microformats'.
Say what?
I think that there should be some way (and perhaps this is as easy as puting an "<a href="thisisatag"> link in after the section header.
Isn't there some pipe-y syntax that already does something akin to this and tracks the section header?
Yeah, I was wondering that. Something like this might work: ==List of highways|List==
Where "List" is a code. Alternatively, and imho more readably: ==List of highways== {{SECTION|List}}
Steve
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- http://linguaphile.sf.net
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l