Difference between revisions of "Help:Using LST"

From P2P Foundation
Jump to navigation Jump to search
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:
  
<pre><nowiki><section begin=TransparencyP2PPolitics />chapter content on Transparency and P2P Politics<section end=TransparencyP2PPolitcs /></nowiki></pre>
+
<pre><nowiki><section begin=P2PPolitics />chapter content on Transparency and P2P Politics<section end=P2PPolitcs /></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:
Line 17: Line 17:
 
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.
 
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.
+
For example, this is labeled "P2PPolitics" because it is in the page [[Transparency]] and deals with a [[P2P Network]] model in the subject of Politics.
  
 
Naming Convention:
 
Naming Convention:
*Subject/Concept
 
 
*P2P Persective (Peer (Individual Holon), P2P (Network Holon), and CS (Linking Systems, Collaboration Systems, Internsubjective Subsystems)
 
*P2P Persective (Peer (Individual Holon), P2P (Network Holon), and CS (Linking Systems, Collaboration Systems, Internsubjective Subsystems)
 
*Subject/Concept
 
*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.
 
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.
 +
 +
==Easy Template for Including Sections==
 +
 +
You can use an easy template to include sections once they are created:
 +
 +
<pre><nowiki>
 +
{{section|1|2}}
 +
</nowiki></pre>
 +
 +
# is the page name
 +
# is the section name
 +
 +
Here's what it looks like completed:
 +
 +
<pre><nowiki>
 +
{{section|Transparency|Intro}}
 +
</nowiki></pre>
 +
 +
This will tell the wiki to look at the [[Transparency]] page and fetch the "Intro" section.
 +
 +
For more information visit [[Template:Section]].
  
 
[[Category:P2P Foundation Wiki How-To]]
 
[[Category:P2P Foundation Wiki How-To]]

Revision as of 17:11, 14 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=P2PPolitics />chapter content on Transparency and P2P Politics<section end=P2PPolitcs />

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 "P2PPolitics" because it is in the page Transparency and deals with a P2P Network model in the subject of Politics.

Naming Convention:

  • 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.

Easy Template for Including Sections

You can use an easy template to include sections once they are created:

{{section|1|2}}
  1. is the page name
  2. is the section name

Here's what it looks like completed:

{{section|Transparency|Intro}}

This will tell the wiki to look at the Transparency page and fetch the "Intro" section.

For more information visit Template:Section.