LOFE:X: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{#ifeq:{{{style|}}}|long|{{{1}}}/{{{2}}}|{{{2}}}]]</onlyinclude>
<includeonly>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{#ifeq:{{{style|short}}}|short|{{{2}}}|{{#ifeq:{{{style}}}|custom|{{{text|ERROR:Custom text not specified}}}|{{{1}}}/{{{2}}}}}}}]]</includeonly><noinclude>This is a template for a cross-reference (X) from one page in the LOFE to another. It can also be used to create a reference from elsewhere in the Wiki to an LOFE page.
 
<noinclude>This is a template for a cross-reference (X) from one page in the LOFE to another. It can also be used to create a reference from elsewhere in the Wiki to an LOFE page.


The first two arguments to the call are always the name of an LOFE category and the number of a page in that category. For example:
The first two arguments to the call are always the name of an LOFE category and the number of a page in that category. For example:
Line 9: Line 7:
will create a link to [[Library of Formatting Examples:Italics/00A]].
will create a link to [[Library of Formatting Examples:Italics/00A]].


Additional reference formats are planned, but have not yet been implemented.
You can also include an optional "style" argument. The supported values are:
 
;style=short
:Shows the page number only: [[Library of Formatting Examples:Italics/00A|00A]]
;style=long
:Shows the category name and page number: [[Library of Formatting Examples:Italics/00A|Italics/00A]]
;style=custom
:Shows custom text, which must be passed as a separate "text" argument.
 
The style and text arguments MUST appear in the third or later position--the first two arguments are always the category and page.


</noinclude>
</noinclude>
<!--
<onlyinclude>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{{2}}}]]</onlyinclude>
-->

Latest revision as of 06:04, 29 December 2025

This is a template for a cross-reference (X) from one page in the LOFE to another. It can also be used to create a reference from elsewhere in the Wiki to an LOFE page.

The first two arguments to the call are always the name of an LOFE category and the number of a page in that category. For example:

{{LOFE:X|Italics|00A}}

will create a link to Library of Formatting Examples:Italics/00A.

You can also include an optional "style" argument. The supported values are:

style=short
Shows the page number only: 00A
style=long
Shows the category name and page number: Italics/00A
style=custom
Shows custom text, which must be passed as a separate "text" argument.

The style and text arguments MUST appear in the third or later position--the first two arguments are always the category and page.