Template:Nlab: Difference between revisions

From Vigyanwiki
(Created page with "{{#if: {{{title|}}} | [https://ncatlab.org/nlab/show/{{{id}}} {{{title}}}] in ''nLab'' | [https://ncatlab.org/nlab/show/{{{id}}} {{{id}}}] in ''nLab''}}<noinclude>{{Do...")
 
(Merge branching)
Line 1: Line 1:
{{#if: {{{title|}}} |
[https://ncatlab.org/nlab/show/{{{id}}} {{{title|{{{id}}}}}}] at the [[nLab|''n''Lab]]<noinclude>{{Documentation}}</noinclude>
[https://ncatlab.org/nlab/show/{{{id}}} {{{title}}}] in ''[[nLab]]'' | [https://ncatlab.org/nlab/show/{{{id}}} {{{id}}}] in ''[[nLab]]''}}<noinclude>{{Documentation}}</noinclude>

Revision as of 06:17, 22 August 2022

{{{id}}} at the nLab

Template documentation

Example usage

* {{nlab|id=simplex+category|title=Simplex category}}

will create the following text:

The id= element is meant to hold the URL component name, while the title= element is meant to be used for the words appearing in the WP article. These are different because spaces in the URL will break the template and nLab titles by default are lowercase; the title element may be left out in the rare case where neither of these apply. For example:

* {{nlab|id=Set}}

will create the following text:

(In the nLab, "set" is the article on sets, while "Set" is the article on the category of sets.)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Nlab

[[Category:Templates using TemplateData{{#translation:}}]]

This templates creates an external link to an article in the nLab wiki.

Template parameters

ParameterDescriptionTypeStatus
Article IDid

URL component of the article

Example
simplex+category
Stringrequired
Displayed titletitle

Title of the article as it will appear on the page

Example
Simplex category
Stringsuggested