Template:Repo link/doc plain text: Difference between revisions
Jump to navigation
Jump to search
(Added an example for using the <code> tags.) |
(Switch from == to <h2> for the first heading. This is needed as the Mediawiki requirement of the heading starting on a new line may not be satisfied.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<h2>Plain text</h2> | |||
To create a URL or link as plain text and avoid external links, simply use the <code><nowiki>{{#tag:tagname|content}}</nowiki></code> {{mediawiki|Help:Magic_words|magic word}} construct: | To create a URL or link as plain text and avoid external links, simply use the <code><nowiki>{{#tag:tagname|content}}</nowiki></code> {{mediawiki|Help:Magic_words|magic word}} construct: | ||
Line 12: | Line 12: | ||
| full = 1 | | full = 1 | ||
}} | }} | ||
}} | }} | ||
To use the <nowiki><code></nowiki> tags: | To use the <nowiki><code></nowiki> tags: |
Latest revision as of 19:01, 7 March 2016
Plain text
To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}}
magic word construct:
{{#tag:nowiki| {{repo link | full = 1 }} }}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
To use the <code> tags:
{{#tag:code|{{#tag:nowiki| {{repo link | full = 1 }} }}}}
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/
The following template description is not displayed when the template is inserted in an article.
Goal
To provide documentation of the design of the {{repo link}} family of templates. This is only for use within documentation of the subtemplates.