LOFE:X: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{#ifeq:{{{style|short}}}|short|{{{2}}}}}|{{{1}}}/{{{2}}}]]</onlyinclude>
<onlyinclude>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{#ifeq:{{{style|short}}}|short|{{{2}}}}}|{{ifeq:{{{style}}}|custom|{{{text|ERROR:Custom text note specified}}}|{{{1}}}/{{{2}}}]]</onlyinclude>


<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.
Line 9: Line 9:
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.


</noinclude>
</noinclude>

Revision as of 05:49, 29 December 2025

[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{{2}}}|{{ifeq:{{{style}}}|custom|ERROR:Custom text note specified|{{{1}}}/{{{2}}}]]

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.