Difference between revisions of "Template:Footnote/old"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Template:Footnote moved to Template:Footnote/old: Going to update the template to use cite extension instead but don't really want to relegate this to history.)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:footnotescount|{{#expr:{{#var:footnotescount}}+1}}}}{{#vardefine:footnotes|{{#var:footnotes}}
<includeonly>{{#vardefine:footnotes|{{#var:footnotes}}{{#if:{{{1|}}}|
{{!}}- valign="top"
<li id="footnote_{{#vardefine:footnotescount|{{#expr:{{#var:footnotescount}}{{#if:{{{1|}}}|+1}}}}}}{{#var:footnotescount}}" style="{{NewStyle|page-break-inside|avoid|moz=*|webkit=*}}"><span class="TablePager_nav">'''[[#fn_{{#var:footnotescount}}|^]]'''</span> {{{1}}}}}}}{{#vardefine:fnu_{{{handle|}}}|{{#if:{{{1|}}}|{{Footnote/wrap|fn_{{#var:footnotescount}}|[[#footnote_{{#var:footnotescount}}|[{{#var:footnotescount}}]]]|3={{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}}}|{{#var:fnu_{{{handle|}}}}}}}}}{{#var:fnu_{{{handle|}}}}}</includeonly><noinclude>
{{!}} id="footnote_{{#var:footnotescount}}" {{!}} {{#var:footnotescount}}.
{{hint
{{!}} {{!}} <span class="TablePager_nav">'''[[#fn_{{#var:footnotescount}}|^]]'''</span> {{{1}}}}}<noinclude>Before<noinclude>{{Footnote/wrap|fn_{{#var:footnotescount}}}}<sup class="TablePager_nav" style="font-size:75%;" title="Footnote: {{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}">[[#footnote_{{#var:footnotescount}}|[{{#var:footnotescount}}]]]</sup><noinclude>After
|mode=important
|desc=This is one of the geekiest templates in this Wiki and it's an awesome piece of code.<br>Though finally, the [http://www.mediawiki.org/wiki/Extension:Cite/Special:Cite.php Cite] extension rendered it obsolete. Consider using <nowiki><ref>reference</ref></nowiki> and <nowiki><references /></nowiki> instead of this template.
}}
 
 
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua{{{{FULLPAGENAME}}|handle=lipsum|http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator}}{{{{FULLPAGENAME}}|handle=lipsum|http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator}}{{{{FULLPAGENAME}}|handle=lipsum}}.
 
{{Footnotes}}
{{Footnotes}}
===Syntax===
<pre>
{{Footnote|Footnote text}}                      - Creates a single use footnote
{{Footnote|Footnote text|Hover text}}          - Creates a single use footnote with different hover text
{{Footnote|Footnote text|handle=id}}            - Creates a multi-use footnote
{{Footnote|Footnote text|Hover text|handle=id}} - Creates a multi-use footnote with different hover text
{{Footnote|handle=id}}                          - Inserts a link to a multi-use footnote.
</pre>
'''handle''' needs to be unique to the page, if it is not, the last create usage of it will make previous footnotes inaccessible.
Don't forget to include the <code><nowiki>{{Footnotes}}</nowiki></code> template where you want the table of footnotes. If you want multiple columns of footnotes use <code><nowiki>{{Footnotes|col=number_of_columns}}</nowiki></code>
</noinclude>
</noinclude>

Latest revision as of 07:30, 11 May 2009


Emblem-important.png Important!

This is one of the geekiest templates in this Wiki and it's an awesome piece of code.
Though finally, the Cite extension rendered it obsolete. Consider using <ref>reference</ref> and <references /> instead of this template.


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua[1][2][2].

  1. ^ http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator
  2. ^ http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator

Syntax

{{Footnote|Footnote text}}                      - Creates a single use footnote
{{Footnote|Footnote text|Hover text}}           - Creates a single use footnote with different hover text
{{Footnote|Footnote text|handle=id}}            - Creates a multi-use footnote
{{Footnote|Footnote text|Hover text|handle=id}} - Creates a multi-use footnote with different hover text
{{Footnote|handle=id}}                          - Inserts a link to a multi-use footnote.

handle needs to be unique to the page, if it is not, the last create usage of it will make previous footnotes inaccessible.

Don't forget to include the {{Footnotes}} template where you want the table of footnotes. If you want multiple columns of footnotes use {{Footnotes|col=number_of_columns}}