LOFE:X: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude>[[Library of Formatting Examples:{{{1}}}/{{{2}}}|{{#ifeq:{{{style|short}}}|short|{{{2}}}|{{#ifeq:{{{style}}}|custom|{{{text|ERROR:Custom text not specified}}}|{{{1}}}/{{{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:

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.