* 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.
=== Description ===
'''Religious Orders:''' [[Guild:WebofAngadar|The Web of Angadar]]
This template is for transcluding pre-marked sections of articles.
'''Center of Worship:''' [[Grantir]]
* [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.
'''Angadar''' was originally the god of Arcane Knowledge only. Arcane knowledge is defined as any facts pertaining to magic spells, artifacts, items, people, places, deities, and other things. Casual followers of Angadar seek his knowledge for a number of reasons ranging from helpful to odious. However, the more serious followers of Angadar know that Arcane Knowledge, as Angadar sees it, is to be used as a weapon. "He who dies with the most knowledge... does not die." That's the general motto of Angadar's faithful.
=== Usage and Examples ===
Not too long before the beginning of the [[Second Fairy War]], Angadar was involved with the death of the goddess [[Tianna]], lover of [[Valok]] and former goddess of Deceit and Trickery. He was able to assume her mantle as a product of her death circumstances, and although Tianna's followers did not believe it at first (must be another one of her tricks), they eventually warmed up to Angadar. Consequently, it is not uncommon to hear his name uttered on the lips of a crafty cove, or bonafide liar.
==== Step 1 ====
Angadar has a diverse population worshipping him. He created the race of Drangonari Elves as his own, and many associate him with them. However, he also has a great following among non-elven users of magic. Elven mages are often loathe to follow him. The union of Arcane Knowledge with Deceit and Trickery has enhanced Angadar's power and made him very dangerous. Knowledge is power, but Knowledge put to manipulative and deceitful use is just downright nasty. Devout followers of Angadar recognize the reason why Angadar is the god of Arcane Knowledge: obtaining power.
Add section tags to the article page that you want to transclude the information from, as shown below:
<pre style="white-space: pre-wrap">
Angadar is the patron of all those who seek power through gaining knowledge of magic and other arcane facts. As a mortal, Angadar worked very hard to amass as much power and magic as he could in order to advance himself. Becoming the most powerful spellcaster in history was always his goal, since his oppressive youth.
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.
On a personal level, Angadar was always extremely subtle and elegant in his dealings. Those who made deals with Angadar often found themselves fullfilling something they never meant to fullfil earlier. He always had ways of twisting the truth to his advantage. Thus, the mantle of deceit and trickery became something he eventually coveted from Tianna as a means to gain more power. Now that he is both lord of arcane knowledge, and deceit and trickery he is constantly finding new means to extend his influence among gods and mortals, be they wizards or not.
* This template has a limit of 25 numbered sections, so you can only use <code>sec1</code> through <code>sec25</code>.
Angadar was a psion when he was a mortal. In 2261 O.D. through unknown means Angadar gained control of the [[Magic#The_Mind_Wind:_The_Power_of_The_Mind|Mind Wind]] in Avlis and added psionics to his portfolio. Many non-drangonari psions have turned to worship him, hoping for increased enlightenment that will lead to more psionic power.
==== Step 2 ====
Angadar's most popular followers tend to be greedy spellcasters, psions and rogues who are interested in serving him in return for a chance to sharpen their skills to gain power. However, Angadar only accepts those who are subtle and indirect in their methods. Chaos is not tolerated.
Add the following code to the target article page that you want to transclude the previously defined section(s) of '''Test_Article''' to:
[[Elysia]] has a temple to Angadar, and [[Deglos]] has a shrine.
* Replace PAGENAME with the source article page name ('''Test_Article''' in the example above). E.g., <code>Test_Article</code>
** 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>
==== Examples ====
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)
Angadar was originally the god of Arcane Knowledge only. Arcane knowledge is defined as any facts pertaining to magic spells, artifacts, items, people, places, deities, and other things. Casual followers of Angadar seek his knowledge for a number of reasons ranging from helpful to odious. However, the more serious followers of Angadar know that Arcane Knowledge, as Angadar sees it, is to be used as a weapon. "He who dies with the most knowledge... does not die." That's the general motto of Angadar's faithful.
Not too long before the beginning of the Second Fairy War, Angadar was involved with the death of the goddess Tianna, lover of Valok and former goddess of Deceit and Trickery. He was able to assume her mantle as a product of her death circumstances, and although Tianna's followers did not believe it at first (must be another one of her tricks), they eventually warmed up to Angadar. Consequently, it is not uncommon to hear his name uttered on the lips of a crafty cove, or bonafide liar.
Angadar has a diverse population worshipping him. He created the race of Drangonari Elves as his own, and many associate him with them. However, he also has a great following among non-elven users of magic. Elven mages are often loathe to follow him. The union of Arcane Knowledge with Deceit and Trickery has enhanced Angadar's power and made him very dangerous. Knowledge is power, but Knowledge put to manipulative and deceitful use is just downright nasty. Devout followers of Angadar recognize the reason why Angadar is the god of Arcane Knowledge: obtaining power.
Angadar is the patron of all those who seek power through gaining knowledge of magic and other arcane facts. As a mortal, Angadar worked very hard to amass as much power and magic as he could in order to advance himself. Becoming the most powerful spellcaster in history was always his goal, since his oppressive youth.
On a personal level, Angadar was always extremely subtle and elegant in his dealings. Those who made deals with Angadar often found themselves fullfilling something they never meant to fullfil earlier. He always had ways of twisting the truth to his advantage. Thus, the mantle of deceit and trickery became something he eventually coveted from Tianna as a means to gain more power. Now that he is both lord of arcane knowledge, and deceit and trickery he is constantly finding new means to extend his influence among gods and mortals, be they wizards or not.
Angadar was a psion when he was a mortal. In 2261 O.D. through unknown means Angadar gained control of the Mind Wind in Avlis and added psionics to his portfolio. Many non-drangonari psions have turned to worship him, hoping for increased enlightenment that will lead to more psionic power.
Angadar's most popular followers tend to be greedy spellcasters, psions and rogues who are interested in serving him in return for a chance to sharpen their skills to gain power. However, Angadar only accepts those who are subtle and indirect in their methods. Chaos is not tolerated.
Elysia has a temple to Angadar, and Deglos has a shrine.