Template:Glossary link/doc
Appearance
This is a documentation subpage for Template:Glossary link. It contains usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
Usage
[edit]Used to create an anchor point with visible text, and a wikilink with anchor, where the anchor, the text, and the wikilink's anchor are the same. Intended for wikilinks within a work, specially for works that have a Glossary subpage. It can also be used to link to other Wikisource works.
The behaviour of the template is:
- In the main namespace, the wikilink points to subpage.
- In the Page: namespace, if pageno is provided, the link will point to that page number. If not provided, the text is shown without wikilink.
Parameters
[edit]- basic parameters
- 1, wildcard = name of anchor, content of text, and wikilink anchor.
- 2, subpage = name of a subpage of the current work. It defaults to
Glossary
. If the subpage doesn't exist, it looks for an existing subpage between the siblings and the parents of the current page. Otherwise, it leaves the name as is.
- optional parameters
- 3, pageno = page number with the work in the Page: namespace.
- 4, toanchor = anchor for the wikilink. Overrides wildcard.
- 5, anchor = anchor for the current page. Overrides wildcard.
- 6, text = text displayed. Overrides wildcard.
Example
[edit]Minimal Usage
[edit]{{Glossary link|milan}}
generates:
<span id="milan">[[Name of work/Glossary#milan|milan]]</span>
Basic Usage
[edit]{{Glossary link|milan|Volume 2/New Glossary}}
generates:
<span id="milan">[[Name of work/Volume 2/New Glossary#milan|milan]]</span>
With Page number
[edit]In the Page namespace, {{Glossary link|milan|New Glossary|122}}
generates:
<span id="milan">[[Page:Name of file.djvu/122#milan|milan]]</span>
...and in the main namespace:
<span id="milan">[[Name of work/New Glossary#milan|milan]]</span>
See also
[edit]- {{Anchor link}}
- {{Authority reference}}