Difference between revisions of "Help:Using LST"

From P2P Foundation
Jump to navigation Jump to search
(Created page with 'LST = Labeled Section Transclusion. LST is an extension installed on this wiki. It allows wiki editors to re-use important sections of pages within other pages. You can read t...')
 
Line 5: Line 5:
 
Basically, you add special markup to the original page.  Let's say we edit [[Transparency]] and write a section on Transparency in a P2P Politics.  We label it thusly:
 
Basically, you add special markup to the original page.  Let's say we edit [[Transparency]] and write a section on Transparency in a P2P Politics.  We label it thusly:
  
<nowiki><pre><section begin=TransparencyP2PPolitics />chapter content on Transparency and P2P Politics<section end=TransparencyP2PPolitcs /></pre></nowiki>
+
<pre><nowiki><section begin=TransparencyP2PPolitics />chapter content on Transparency and P2P Politics<section end=TransparencyP2PPolitcs /></nowiki></pre>
  
 
Now, if you are on a different page and want to include this section on Transparency in Politics you can do the following:
 
Now, if you are on a different page and want to include this section on Transparency in Politics you can do the following:
  
<nowiki><pre>{{#lst:Transparency|TransparencyP2PPolitics}}</pre></nowiki>
+
<pre><nowiki>{{#lst:Transparency|TransparencyP2PPolitics}}</nowiki></pre>
  
Now you can see an example of the transcluded section here:
+
Now you can see an example of the transcluded section from the [[Transparency]] page here:
  
 
{{#lst:Transparency|TransparencyP2PPolitics}}
 
{{#lst:Transparency|TransparencyP2PPolitics}}

Revision as of 09:45, 13 July 2010

LST = Labeled Section Transclusion. LST is an extension installed on this wiki. It allows wiki editors to re-use important sections of pages within other pages.

You can read the details about the extension here: http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion

Basically, you add special markup to the original page. Let's say we edit Transparency and write a section on Transparency in a P2P Politics. We label it thusly:

<section begin=TransparencyP2PPolitics />chapter content on Transparency and P2P Politics<section end=TransparencyP2PPolitcs />

Now, if you are on a different page and want to include this section on Transparency in Politics you can do the following:

{{#lst:Transparency|TransparencyP2PPolitics}}

Now you can see an example of the transcluded section from the Transparency page here:


You can choose whatever name you like for the sections, and, the more logical the name the more orderly your future editing tasks will be.

For example, this is labeled "TransparencyP2PPolitics" because it is in the page Transparency and deals with a P2P Network model in the subject of Politics.

Naming Convention:

  • Subject/Concept
  • P2P Persective (Peer (Individual Holon), P2P (Network Holon), and CS (Linking Systems, Collaboration Systems, Internsubjective Subsystems)
  • Subject/Concept

This should work for the bulk of the pages on the wiki, as most such article sections will be embedded within one subject like Transparency, and then transcluded to more complex articles like P2P Politics.