Difference between revisions of "Forum:Dynamic Page List works!"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(New page: {{Forumheader|Watercooler}} <!-- Please put your content under this line. Be sure to sign your edits with four tildes ~~~~ --> The newest version of [[http://www.mediawiki.org/wiki/Exten...)
 
 
Line 2: Line 2:
  
 
<!-- Please put your content under this line.  Be sure to sign your edits with four tildes ~~~~ -->
 
<!-- Please put your content under this line.  Be sure to sign your edits with four tildes ~~~~ -->
The newest version of [[http://www.mediawiki.org/wiki/Extension:DynamicPageList Dynamic Page List]] has been installed on the wiki. This means all the places where we try and maintain a list of pages (e.g. the sector worlds listed in the library list navigation box) can now be done automatically and dynamically.  
+
The newest version of [http://www.mediawiki.org/wiki/Extension:DynamicPageList Dynamic Page List] has been installed on the wiki. This means all the places where we try and maintain a list of pages (e.g. the sector worlds listed in the library list navigation box) can now be done automatically and dynamically.  
  
 
So for the sector worlds list, replace the list of worlds with the following:  
 
So for the sector worlds list, replace the list of worlds with the following:  
<nowiki>
+
<pre><nowiki>
 
<dpl>
 
<dpl>
 
category=worlds
 
category=worlds
Line 14: Line 14:
 
inlinetext=&nbsp;-&nbsp;
 
inlinetext=&nbsp;-&nbsp;
 
</dpl>
 
</dpl>
</nowiki>
+
 
 +
</nowiki></pre>
  
 
This will create a list of worlds (articles in the worlds category) which are linked to the current page (the sector article), sorted by title and listed in a single row, as links to the original article.
 
This will create a list of worlds (articles in the worlds category) which are linked to the current page (the sector article), sorted by title and listed in a single row, as links to the original article.

Latest revision as of 19:02, 18 June 2007

Forums: Index > Watercooler > Dynamic Page List works!



The newest version of Dynamic Page List has been installed on the wiki. This means all the places where we try and maintain a list of pages (e.g. the sector worlds listed in the library list navigation box) can now be done automatically and dynamically.

So for the sector worlds list, replace the list of worlds with the following:

<dpl>
category=worlds
linksto={{PAGENAME}}
ordermethod=title
order=ascending
mode=inline
inlinetext= - 
</dpl>

This will create a list of worlds (articles in the worlds category) which are linked to the current page (the sector article), sorted by title and listed in a single row, as links to the original article.

This currently has two limitations: first the links include the " (world)" as part of the name. I'm working on fixing that.

Second, if a world in another sector contains a link to this sector, it will also appear in the list, even if the world isn't located in this sector. This one is harder to overcome. I've some ideas, but still working on this one.

Tjoneslo 18:59, 18 June 2007 (UTC)