Difference between revisions of "Template:Trinkets"
Jump to navigation
Jump to search
m |
m |
||
Line 3: | Line 3: | ||
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 2 magic words and a link. | ||
<pre>{{{notoc| | <pre>{{{notoc|}}} | ||
{{{noeditsection|__NOEDITSECTION__}}} | {{{noeditsection|__NOEDITSECTION__}}} | ||
{{{back2top|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}</pre> | {{{back2top|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}</pre> | ||
To disable a parameter, simple assign blank to it. Example: To disable the <nowiki>"__NOTOC__"</nowiki>, | To disable/enable a parameter, simple assign blank to it. Example: To disable the <nowiki>"__NOEDITSECTION__"</nowiki>, | ||
<pre>{{Trinkets|notoc=}}</pre> | <pre>{{Trinkets|noeditsection=}}</pre> | ||
Example: To enable the <nowiki>"__NOTOC__"</nowiki>, | |||
<pre>{{Trinkets|notoc=__NOTOC__}}</pre> | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{{notoc| | {{{notoc|}}}{{{noeditsection|__NOEDITSECTION__}}} | ||
<br>[[Trinkets]] | <br>[[Trinkets]] | ||
[{{fullurl:{{FULLPAGENAME}}}} Back to Top] | [{{fullurl:{{FULLPAGENAME}}}} Back to Top] | ||
[[Category:Trinkets]] | [[Category:Trinkets]] | ||
</includeonly> | </includeonly> |
Revision as of 12:35, 10 September 2021
This template will create a link to Trinkets page, top of current page and categorized current page to Trinkets.
Simple paste the following below in the page:
{{Trinkets}}
There are 3 parameters by default that would control the execution of 2 magic words and a link.
{{{notoc|}}} {{{noeditsection|__NOEDITSECTION__}}} {{{back2top|[{{fullurl:{{FULLPAGENAME}}}} Back to Top]}}}
To disable/enable a parameter, simple assign blank to it. Example: To disable the "__NOEDITSECTION__",
{{Trinkets|noeditsection=}}
Example: To enable the "__NOTOC__",
{{Trinkets|notoc=__NOTOC__}}