From: SourceForge.net <no...@so...> - 2006-06-15 02:38:57
|
mod/wiki item #1243732, was opened at 2005-07-23 17:09 Message generated for change (Settings changed) made by blindman1344 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=716466&aid=1243732&group_id=81360 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: RFE Group: None >Status: Closed Resolution: Accepted Priority: 9 Submitted By: Greg Morgan (dr_kludge) Assigned to: Greg Meiste (blindman1344) Summary: Create Include/Template feature. Initial Comment: Mediawiki has a template feature. It appears to work in the same fashion as a C include or a php include code statement. There are two uses for this kind of feature. One, a repeated piece of text that you want to include in several places but not have to edit each occurance is the first example. An example of include page can be found here http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=Template:Use_Correct_File_Format. The page is then used on three other pages. An example implemenation can be found on the http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=Theme_Guide page. The implementation looks like this. Note that a lead in can be provided and an html comment tag documents why the template was used. Just as a C include is called with a #include... statement the wiki "include/template" is called with {{Template:Use Correct File Format}}. = Use Correct File Format = Before we start editing files, a common issue must be brought to your attention. <!-- Created a template because this information needs to be included in several areas of the documentation. Also there must be no space between the greater than sign and the openning curlly brace.-->{{Template:Use Correct File Format}} The other use of the include/template is for navigation menus. Simple examples http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=Template:Quick_Links http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=Template:Main_Pages Advanced examples implementation: http://en.wikipedia.org/w/index.php?title=PhpWebSite definition: http://en.wikipedia.org/wiki/Template:Infobox_Software ---------------------------------------------------------------------- Comment By: Greg Meiste (blindman1344) Date: 2006-06-14 21:38 Message: Logged In: YES user_id=780595 This is now available in the new version of the module released today. Thanks for your submission! Greg Meiste ---------------------------------------------------------------------- Comment By: Greg Meiste (blindman1344) Date: 2006-03-04 22:18 Message: Logged In: YES user_id=780595 I suppose I should mention to you (or anyone else wanting to try this feature) that the syntax I chose was: {{Template:WikiPageTitle}} ---------------------------------------------------------------------- Comment By: Greg Meiste (blindman1344) Date: 2006-03-04 22:15 Message: Logged In: YES user_id=780595 I have added this feature to CVS. Would you be willing to test it out and make sure you like the implementation? With this feature (and the MediaWiki support from RFE #1438866), converting the -comm wiki should be much easier. Let me know. Thanks! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=716466&aid=1243732&group_id=81360 |