Apply a Wikipedia-like "article - discussion" tabs to existing pages

Posted by gerdami on 16 Nov 2008 11:50, last edited by GoVegan on 09 May 2010 05:29

Tags: listpages tab tabview template wikipedia

rating: +6+x

Screenshot

screenshot.jpg

Click on picture for live preview.

Code

The code below has to be inserted in the live _template for default pages or cat1:_template for category cat1

[[tabview]]
[[tab Article]]
%%content%%
[[/tab]]
[[tab Discussion]]
[[module Comments hideForm="true"]]
[[/tab]]
[[tab Related articles]]
> Articles sharing the same tags, if any
[[module ListPages category="*" tags="=" tagTarget="system:page-tags" separate="false"
prependLine="||~ Category ||~ Linked_title ||~ Tags ||"]]
||%%category%%: || %%linked_title%% || %%tags%% ||
[[/module]]   
[[/tab]]
[[tab Backlinks]]
> Pages that link to this one, if any
[[module Backlinks]]
[[/tab]]
[[tab Page info]]
||~ variable ||~ value ||
|| @@%%@@title@@%%@@ || %%title%% ||
|| @@%%@@linked_title@@%%@@ || %%linked_title%% ||
|| @@%%@@title_linked@@%%@@ || %%title_linked%% ||
|| @@%%@@page_unix_name@@%%@@ || %%page_unix_name%% ||
|| @@%%@@full_page_name@@%%@@ || %%full_page_name%% ||
|| @@%%@@page_name@@%%@@ || %%page_name%% ||
|| @@%%@@category@@%%@@ || %%category%% ||
|| @@%%@@link@@%%@@ || %%link%% ||
|| @@%%@@author@@%%@@ || %%author%% ||
|| @@%%@@date@@%%@@ || %%date%% ||
|| @@%%@@date|format@@%%@@ || %%date|%e %B %Y%% ||
|| @@%%@@author_edited@@%%@@ || %%author_edited%% ||
|| @@%%@@user_edited@@%%@@ || %%user_edited%% ||
|| @@%%@@date_edited@@%%@@ || %%date_edited%% ||
|| @@%%@@date_edited|format@@%%@@ || %%date_edited|%O ago (%e %b %Y, %H:%M %Z)%% ||
|| @@%%@@rating@@%%@@ || %%rating%% ||
|| @@%%@@comments@@%%@@ || %%comments%% ||
|| @@%%@@tags@@%%@@ || %%tags%% ||
|| @@%%@@preview(20)@@%%@@ || %%preview(20)%% || 
[[/tab]]
[[tab  Attached Files]]
[[module Files]]
[[/tab]]
[[tab  Attached Pics]]
[[gallery]]
[[/tab]]
[[/tabview]]

In action

start-ideas:social-bookmarking-widgets

Related

Author

gerdamigerdami. Please visit his/her userPage.

Add a New Comment

Related articles

Comments

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.