Tags:
create new tag
view all tags
[ This topic was named UseTemplatesEverywhere , the attachment is there ] ( AndreaSterbini - 01 Sep 2000 )


[Problem definition rephrased] ( AndreaSterbini )

Almost all elements in a WikiPage are produced with templates. Just some of them remain produced directly in the code:

  • Example : the appearance of the revisions list of a page is produced by perl code.

  • Suggestion : What if there is a template with %REPEAT% tags that is processed in the same way as for the Changes ?

By moving all the page elements into templates:

  • it would be easy to change the appearance of all the WikiPage elements (e.g. the Edit link , that being a link could be misinterpreted by the user. I would prefer a button, instead.)

  • we would gain a better support for the localization of a WikiWeb to different languages

-- AndreaSterbini - 30 Sep 1999


I plan to offer two revision variables:

  • The existing %REVISIONS% one that has the list of all linked revisions.
  • A new one (name not decided yet, %REVISIONBOX%?) that shows the list boxes with revisions like the ones at the TWiki installation at the JOS site ( http://www.jos.org/ ).

A TWiki installation could then use one or the other, this is a matter of taste of the wikimaster.

I don't think I will introduce a %REPEAT% variable for revisions. But I am open for suggestions: Bring me a solid spec and/or patch and I will reconsider.

About merging the view and the preview templates: They are very different. The part that is identical (the topic text) is already defined as %TEXT% in both templates. I can't see a way of combining those templates without making the script too complicated.

-- PeterThoeny - 27 Sep 1999


OK for the revision variables ... the list produced in the current version could become too big in a heavy-duty site, the JOS kind is OK. (I have already tried something similar, see attachment)

-- AndreaSterbini - 29 Sep 1999


Thanks for the contribution. Just having another idea to combine it to one %REVISIONS% variable. How about having something like this:

Topic UseTemplatesEverywhere . { Edit | Ref-By | Attach | Diffs | r1.4 | > | r1.3 | > | r1.2 | > ... }

This is just a short list. The idea is to show only the first 10 or so revisions. The remaining ones can be selected by following the > ... link (just a dummy link in this example), which shows a new screen where you have combo boxes or simply two edit boxes to select revisions.

-- PeterThoeny - 29 Sep 1999


I like it, but I would'nt show more than 3-5 revisions (what about a variable in the wiki.cfg config file?)

Please don't drop the two-variables idea ... somebody could like more the compact revision menus ...

-- AndreaSterbini - 04 Oct 1999


I did implement the shortened list for the %REVISIONS% variable over the weekend. You can specify the number of revisions that will be shown in the config file, default is 4. This TWiki installation at Starship does have the changes. Feedback is welcome.

I do not intend to implement the second variable. However anybody could add that in a clean way in extendHandleCommonTags of wikicfg.pm.

You will get a separate email with Beta download instructions.

-- PeterThoeny - 04 Oct 1999


-- AndreaSterbini - 01 Sep 2000

TopicClassification:
FeatureDone
Topic revision: r1 - 2000-09-01 - AndreaSterbini
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.