Template:Link/Desc/Text

From PCSAR

(Difference between revisions)
Jump to: navigation, search
(New page: <noinclude>{{documentation}}</noinclude><includeonly><!-- Text to display First choice of: -->{{default<!-- Arg 2, if supplied -->|{{{2|}}}<!-- The text of the page's "Page descrip...)
Current revision (16:46, 8 September 2015) (edit) (undo)
 
Line 1: Line 1:
-
<noinclude>{{documentation}}</noinclude><includeonly><!--
+
<noinclude>{{documentation}}</noinclude><includeonly><noinclude>
-
Text to display
+
;;;;;;;;;;; Text to display. First non-empty value of:
-
First choice of:
+
</noinclude>{{default<noinclude>
-
-->{{default<!--
+
;;;;;;;;;;; Arg 2, if supplied
-
Arg 2, if supplied
+
</noinclude>|{{{2|}}}<noinclude>
-
-->|{{{2|}}}<!--
+
;;;;;;;;;;;;; Otherwise the text of the page's "Page description" attribute
-
The text of the page's "Page description" attribute
+
</noinclude>|{{#ifexist: {{{1}}}|{{#ask: [[{{{1}}}]]
 +
| ?Page description =
 +
| link=none
 +
}}}}<noinclude>
-
-->|{{#ask: [[{{{1}}}]]
+
;;;;;;;;;;;;;; Otherwise the Desc argument, if supplied
-
| ?Page description =
+
-
| link=none
+
-
}}<!--
+
-
The Desc argument, if supplied
+
</noinclude>|{{{Desc|}}}<noinclude>
-
-->|{{{Desc|}}}<!--
+
;;;;;;;;;;;;;; Otherwise the page name itself (may not be defined if
 +
;;;;;;;;;;;;;; using RevisionID). Displayed text is limited to subpage.
-
last choice: the page name itself
+
</noinclude>|{{#titleparts: {{{1}}} ||-1}}<noinclude>
-
-->|{{{1}}}<!--
+
;;;;;;;;;;;;;; Last choice: "link"
-
-->}}<!--
+
</noinclude>|link<noinclude>
-
--></includeonly>
+
</noinclude>}}<noinclude>
 +
 
 +
</noinclude></includeonly>

Current revision

This is the documentation for the template Template:Link/Desc/Text

Template:Link/Desc/Text/Doc:

The template {{Link/Desc/Text|Page|Text|Desc=description}} is a helper template for Template:Link/Desc.

It generates the text to be displayed for the link. Each element is optional.


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools