Difference between revisions of "Template:Trinkets"

From Sunrust Wiki
Jump to navigation Jump to search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
‎‎<noinclude>
‎‎<noinclude>
This template will create a link to Trinkets page, top of current page and categorized current page to Trinkets.
This template will create a link to Trinkets page, top of current page, categorize current page to Trinkets, and add <nowiki>__NOEDITSECTION__</nowiki>.
Simple paste the following below in the page:<pre>{{Trinkets}}</pre>
Simple paste the following below in the page:<pre>{{Trinkets}}</pre>
There are 3 parameters by default that would control the execution of 2 magic words and a link.
There are 3 parameters by default that would control the execution of 1 magic words and 2 links.
<pre>{{{notoc|}}}
<pre>
{{{noeditsection|__NOEDITSECTION__}}}
{{{n|[[Trinkets]]}}}
{{{back2top|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}</pre>
{{{b2t|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}
To disable/enable a parameter, simple assign blank to it. Example: To disable the <nowiki>"__NOEDITSECTION__"</nowiki>,
{{{nes|__NOEDITSECTION__}}}
<pre>{{Trinkets|noeditsection=}}</pre>
</pre>
Example: To enable the <nowiki>"__NOTOC__"</nowiki>,
To disable a parameter, simple assign nothing to it. Example: To disable the <nowiki>"__NOEDITSECTION__"</nowiki> magic word,<pre>{{Trinkets|nes=}}</pre>
<pre>{{Trinkets|notoc=__NOTOC__}}</pre>
Example: To disable the links,<pre>{{Trinkets|n=}}</pre><pre>{{Trinkets|b2t=}}</pre>
<!--
n = name of that page
b2t = back to top of this page
nes = no edit section in this page
-->
‎</noinclude>
‎</noinclude>
<includeonly>
<includeonly>
{{{notoc|}}}{{{noeditsection|__NOEDITSECTION__}}}
{{{n|[[Trinkets]]}}} {{{b2t|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}[[Category:Trinkets]]{{{nes|__NOEDITSECTION__}}}
<br>[[Trinkets]]
{{{back2top|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}
[[Category:Trinkets]]
‎</includeonly>
‎</includeonly>

Latest revision as of 19:15, 12 September 2021

‎‎ This template will create a link to Trinkets page, top of current page, categorize current page to Trinkets, and add __NOEDITSECTION__.

Simple paste the following below in the page:

{{Trinkets}}

There are 3 parameters by default that would control the execution of 1 magic words and 2 links.

{{{n|[[Trinkets]]}}}
{{{b2t|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}
{{{nes|__NOEDITSECTION__}}}

To disable a parameter, simple assign nothing to it. Example: To disable the "__NOEDITSECTION__" magic word,

{{Trinkets|nes=}}

Example: To disable the links,

{{Trinkets|n=}}
{{Trinkets|b2t=}}