Template:Ldraw pt: Difference between revisions

From LDraw.org Wiki
Jump to navigation Jump to search
(Created page with "16px|link= [http://www.ldraw.org/{{{1}}} {{{2}}}] on the LDraw.org Parts Tracker<noinclude> ==Usage== <pre style="overflow:auto">{{ldraw_...")
 
No edit summary
Line 1: Line 1:
[[File:LDraw Parts Tracker logo.png|16px|link=]] [http://www.ldraw.org/{{{1}}} {{{2}}}] on the LDraw.org Parts Tracker<noinclude>
<includeonly>[[File:LDraw Parts Tracker logo.png|16px|link=]] [https://www.ldraw.org/{{{1|}}} {{{2|}}}] on the LDraw.org Parts Tracker</includeonly><noinclude>
==Usage==
 
== Usage ==
 
<pre style="overflow:auto">{{ldraw_pt|url|text}}</pre>
<pre style="overflow:auto">{{ldraw_pt|url|text}}</pre>


The {{code|url}} parameter should be the portion of the page's URL ''after'' {{code|<nowiki>http://www.ldraw.org/</nowiki>}}, e.g. {{code|library/tracker/ref/numberfaq}}.
The {{code|url}} parameter should be the portion of the page's URL ''after'' {{code|<nowiki>https://www.ldraw.org/</nowiki>}}, e.g. {{code|library/tracker/ref/numberfaq}}.


The {{code|text}} parameter should be the name of the page to which the URL points.
The {{code|text}} parameter should be the name of the page to which the URL points.
Line 14: Line 16:
The above example will display the following:
The above example will display the following:


[[File:LDraw Parts Tracker logo.png|16px|link=]] [http://www.ldraw.org/library/tracker/ref/numberfaq FAQ for LDraw Part Numbers] on the LDraw.org Parts Tracker
{{ldraw_pt|library/tracker/ref/numberfaq|FAQ for LDraw Part Numbers}}
 
[[Category:Link templates]]</noinclude>
[[Category:Link templates]]</noinclude>

Revision as of 11:13, 23 March 2019


Usage

{{ldraw_pt|url|text}}

The url parameter should be the portion of the page's URL after https://www.ldraw.org/, e.g. library/tracker/ref/numberfaq.

The text parameter should be the name of the page to which the URL points.

As these parameters are "anonymous", they must be entered in the order shown above.

Examples

{{ldraw_pt|library/tracker/ref/numberfaq|FAQ for LDraw Part Numbers}}

The above example will display the following:

FAQ for LDraw Part Numbers on the LDraw.org Parts Tracker