The original test version of this template was created in [http://en.wikisource.org/wiki/User:Sanbeg/Sec Steve Sanbeg's userspace on Wikisource].
'''Area of Control:''' [[Orc|Orcs]], Politics, Intrigue
* Steve Sanbeg is also the author of [http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion], which will hopefully replace this here one day (see the Description below).
* While the documentation and format of this template have been changed, the original code should be essentially the same.
This template is for transcluding pre-marked sections of articles.
'''Holy Warrior:''' [[Dominator]]
* [http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion] is an improved method of doing this task, and this template should be considered [[Wikipedia:Deprecation | deprecated]] if that extension is implemented here.
* While Wikipedia's [[Wikipedia:Wikipedia:Transclusion#Without_using_the_labeled_section_method | Selective transclusion without using the labeled section]] method does work here, it is very limited/restricted, and this template allows more flexibility and ease of use.
'''Religious Orders:''' [[Guild:_Order_of_Valok|The Order of Valok]]
=== Usage and Examples ===
'''Center of Worship:''' [[Brekon (city)|Brekon]]
==== Step 1 ====
Add section tags to the article page that you want to transclude the information from, as shown below:
<pre style="white-space: pre-wrap">
Good and evil are all relative. There really is no one undisputable "Good" with a capital "G". What's good for one is evil for another. Many of these so-called "good gods" preach that you must give aid to others so that they can go onward. The thought here is that giving aid is always a good thing. They are wrong. You know that bum on the street that everyone has encountered somewhere in their lives? The bum that asks you for money all the time? Giving him money is a "good" thing right? After all, you are helping the poor soul. Wrong. How do you know what that man will do with the money? What if he uses it for "evil" purposes, like hiring an assassin? What if he amasses enough money from begging to buy him an entire fiefdom, which he then uses to make war on the very people who donated the money? Who's to say he won't do that?
This is a sample article, with a few sections
<onlyinclude><nowiki>{{{sec1 |This is the first section}}}</nowiki></onlyinclude>
<onlyinclude><nowiki>{{{sec2 |This is the second section}}}</nowiki></onlyinclude>
</pre>
* This is the article titled '''Test_Article''' used in '''Step 2''' below.
Valok is the father-god of Orcs. They follow his mindset.... that it's ok to get what you want, but don't make people hate you in the process. Having friends can be very helpful for getting what you want later. Now, if someone screws you over, by all means, take care of him or her. But not in public! Ideally, we can all get along with everyone else if only they just wouldn't get in our way. We don't want to destroy them. We just want to win as much as we can.
* This template has a limit of 25 numbered sections, so you can only use <code>sec1</code> through <code>sec25</code>.
The followers of gods that are dubbed "good" or "neutral" all have one major problem. They do not give enough time to the development of the self. But what does this have to do with enlightenment, and how does one achieve it?
==== Step 2 ====
Enlightenment is within. If doing something for someone else will not help YOU, then you have no business doing it. Only self-discipline and devotion can help YOU. Focusing on things outside of yourself is a waste of time, because you are not responsible for anyone else but you. "Self maintenance is a monumental task." the holy saying goes. You have ENOUGH things to do with improving your own spiritual predicaments. What do you get by doing things for the spiritual predicaments of others? Absolutely nothing with the possible exception of maybe a "good" feeling.
Add the following code to the target article page that you want to transclude the previously defined section(s) of '''Test_Article''' to:
The one who has disciplined their mind and calmed their inner senses will know Valok's Glory and Will. Glory is a better term to describe a "good" feeling that is directed inward. Valok hails glory. We should all strive for glory for it is Valok's way of condoning our actions and telling us that we are making improvements within ourselves.
So how should others be treated? Smile. If others are expecting a sense of "good", then give that to them. It is not wrong to give someone something if it benefits you in the end. It is ESPECIALLY not wrong to give someone something when it is an empty thing and you have lost nothing from giving it.
If there are people who do not approve of your self-improvement quest, then you should have understanding towards them. However, do not let them walk all over you. Get around them. Intrigue was the tool Valok gave us to help ourselves when others will not allow it. If you cannot go through something, go around it. Compose yourself and be disciplined. Know that Valok approves of what you do and it is not becoming of one of his followers to be obtuse. An obtuse mind is not a disciplined one.
* Replace PAGENAME with the source article page name ('''Test_Article''' in the example above). E.g., <code>Test_Article</code>
Word has spread recently that Valok and Hurine have married and produced a daughter, Ethraeli.
** If the source article page is outside of the '''Main''' namespace, include the namespace (and full path from it). E.g., <code>User:John/Test_Article</code>
* Replace SECTIONNUMBER with the matching section number that you want to transclude from the source article (''do not include the '''sec''' prefix''). E.g., <code>1</code> - <code>25</code>
Valok has temples in [[Mikona]], [[Crullath]], and [[Verloghokbol]] ; [[Brekon (nation)|Brekon]] is the center of his worship on Avlis.
==== Examples ====
===Trivia===
Valok was an [[Elf|elf]] prior to becoming the god of the [[Orc|orcs]] on Avlis.
To transclude the <code>sec1</code> section from the <code>Test_Article</code> example above, use:
The author gave a few other examples in his [http://en.wikisource.org/wiki/User:Sanbeg/Test test page], using an extra <code>ns =</code> parameter after the SECTIONNUMBER, to modify which namespace the PAGENAME belongs to, so it doesn't need to be included.
An example of the previous <code>User:John/Test_Article</code> PAGENAME done this way would be:
<code><nowiki>{{sec | John/Test_Article | 1 | ns = User }}</nowiki></code>
* In this case there isn't much improvement (more confusing even), since the username still needs to be included, but it may be useful for the Template namespace, or others.
One other example he gave didn't use this template. Only the markup in the source article page, and transclusion with extra parameters.
Still using the '''Test_Article''' in the example above as a source, with the example code:
This transcludes everything except section 1 ('''sec1'''), since the contents of that section are unset by the empty parameter value given.
'''Result: ''' <code>This is the second section</code>
* This is basically the inverse of how this template works, since the template transcludes all sections, then empties the values of all that aren't selected. With the transclusion method above, everything is transcluded, and you specify individual sections that you don't want to include (or replacements for them - read on).
This also can be used to replace individual sections of the whole transcluded article page, by supplying a new value for each parameter.
E.g., <code><nowiki>{{Test_Article | sec1 = Hello World! }}</nowiki></code> adds <code>Hello World!</code> before also transcluding <code>This is the second section</code>.
With source article pages that have many sections set up this way, several can be left out or replaced. If '''Test_Article_2''' has 3 or more sections marked the same as the original '''Test_Article''', this can be demonstrated with the following example:
* This would add <code>Hello World!</code> instead of section 1, transclude section 2 normally with <code>This is the second section</code>, skip transcluding section 3, and then transclude whatever other sections come after that normally.
=== Technical details ===
If you intend to use <span class="plainlinks">[http://www.mediawiki.org/wiki/Help:Tables wikitables]</span> as parameter values in this template, then you need to know this:
<span class="plainlinks">[http://www.mediawiki.org/wiki/Help:Templates Templates]</span> have a problem handling parameter data that contains pipes "<code>|</code>", unless the pipe is inside another template <code><nowiki>{{name | param1 }}</nowiki></code>, or inside a piped link <code><nowiki>[[Help:Template | help]]</nowiki></code>. Therefore templates can not handle wikitables as input, unless you escape them by using the '''<nowiki>{{!}}</nowiki>''' magic word (parser function - see: <span class="plainlinks">[http://www.mediawiki.org/wiki/Help:Magic_words#Other Help:Magic words#Other]</span>). This makes it hard to use wikitables as parameters in templates. Instead, the usual solution is to use [[Wikipedia:Help:Table#Other_table_syntax | HTML wikimarkup]] for the table code, which is more robust.
'''''Note:''' [[Template:!]] functionality was replaced in MediaWiki version 1.24 by the '''<nowiki>{{!}}</nowiki>''' magic word, and the template is ignored when using it.''
=== Copy of Original Documentation ([http://en.wikisource.org/wiki/User:Sanbeg/Sec Steve Sanbeg's Userspace on Wikisource]) ===
* This was also in the Template namespace before he finalized [http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion], and the template name was recycled. It can still be viewed in its [http://en.wikisource.org/w/index.php?title=Template:Sec&oldid=4659477 last revision] before being recycled as a redirect.
* [http://wikisource.org Wikisource] and [http://www.mediawiki.org Mediawiki] links have been reformatted to work here (and a few typo fixes).
Now that the [http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion] extension is active here, this template is deprecated; please use the extension for any future work.
This template is intended as a proof of concept, to demonstrate transcluding sections of articles.
To transclude larger sections, it may be more useful to split the section into a daughter page, or some other separate page/template, then transcluding that where necessary. If you always transclude the same section, i.e. to transclude the body of text without extra boilerplate, then it should be simple to use <onlyinclude>.
However, when there are many smaller sections, it's simpler to mark the sections, and call them by name. For example, if you have a a large article with small numbered sections, marked like
This is a sample article, with a few sections
<onlyinclude><nowiki>{{{sec1|This is the first section}}}</nowiki></onlyinclude>
<onlyinclude><nowiki>{{{sec2|This is the second section}}}</nowiki></onlyinclude>
Then, you could transclude section 1 with
<nowiki>{{User:Sanbeg/Sec|Article|1}}</nowiki>
All text between <onlyinclude> and </onlyinclude> should be marked with a section (or marked somehow) to prevent unconditional transclusion. Of course, it's possible to have multiple <onlyinclude> blocks.
See [http://en.wikisource.org/wiki/User:Sanbeg/Test Wikisource:User:Sanbeg/Test] for an example.
Please contact me with any feedback. -[http://en.wikisource.org/wiki/User:Sanbeg | Sanbeg] 19:28, 5 August 2006 (UTC)
Good and evil are all relative. There really is no one undisputable "Good" with a capital "G". What's good for one is evil for another. Many of these so-called "good gods" preach that you must give aid to others so that they can go onward. The thought here is that giving aid is always a good thing. They are wrong. You know that bum on the street that everyone has encountered somewhere in their lives? The bum that asks you for money all the time? Giving him money is a "good" thing right? After all, you are helping the poor soul. Wrong. How do you know what that man will do with the money? What if he uses it for "evil" purposes, like hiring an assassin? What if he amasses enough money from begging to buy him an entire fiefdom, which he then uses to make war on the very people who donated the money? Who's to say he won't do that?
Valok is the father-god of Orcs. They follow his mindset.... that it's ok to get what you want, but don't make people hate you in the process. Having friends can be very helpful for getting what you want later. Now, if someone screws you over, by all means, take care of him or her. But not in public! Ideally, we can all get along with everyone else if only they just wouldn't get in our way. We don't want to destroy them. We just want to win as much as we can.
The followers of gods that are dubbed "good" or "neutral" all have one major problem. They do not give enough time to the development of the self. But what does this have to do with enlightenment, and how does one achieve it?
Enlightenment is within. If doing something for someone else will not help YOU, then you have no business doing it. Only self-discipline and devotion can help YOU. Focusing on things outside of yourself is a waste of time, because you are not responsible for anyone else but you. "Self maintenance is a monumental task." the holy saying goes. You have ENOUGH things to do with improving your own spiritual predicaments. What do you get by doing things for the spiritual predicaments of others? Absolutely nothing with the possible exception of maybe a "good" feeling.
The one who has disciplined their mind and calmed their inner senses will know Valok's Glory and Will. Glory is a better term to describe a "good" feeling that is directed inward. Valok hails glory. We should all strive for glory for it is Valok's way of condoning our actions and telling us that we are making improvements within ourselves.
So how should others be treated? Smile. If others are expecting a sense of "good", then give that to them. It is not wrong to give someone something if it benefits you in the end. It is ESPECIALLY not wrong to give someone something when it is an empty thing and you have lost nothing from giving it.
If there are people who do not approve of your self-improvement quest, then you should have understanding towards them. However, do not let them walk all over you. Get around them. Intrigue was the tool Valok gave us to help ourselves when others will not allow it. If you cannot go through something, go around it. Compose yourself and be disciplined. Know that Valok approves of what you do and it is not becoming of one of his followers to be obtuse. An obtuse mind is not a disciplined one.
Word has spread recently that Valok and Hurine have married and produced a daughter, Ethraeli.