Template:Link/Desc/Text
From PCSAR
(Difference between revisions)
(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...) |
|||
Line 1: | Line 1: | ||
- | <noinclude>{{documentation}}</noinclude><includeonly>< | + | <noinclude>{{documentation}}</noinclude><includeonly><noinclude> |
- | Text to display | + | ;;;;;;;;;;; Text to display. First non-empty value of: |
- | + | </noinclude>{{default<noinclude> | |
- | + | ;;;;;;;;;;; Arg 2, if supplied | |
- | + | </noinclude>|{{{2|}}}<noinclude> | |
- | + | ;;;;;;;;;;;;; Otherwise the text of the page's "Page description" attribute | |
- | + | </noinclude>|{{#ifexist: {{{1}}}|{{#ask: [[{{{1}}}]] | |
+ | | ?Page description = | ||
+ | | link=none | ||
+ | }}}}<noinclude> | ||
- | + | ;;;;;;;;;;;;;; Otherwise the Desc argument, if supplied | |
- | + | ||
- | + | ||
- | + | ||
- | + | </noinclude>|{{{Desc|}}}<noinclude> | |
- | + | ;;;;;;;;;;;;;; Otherwise the page name itself (may not be defined if | |
+ | ;;;;;;;;;;;;;; using RevisionID). Displayed text is limited to subpage. | ||
- | + | </noinclude>|{{#titleparts: {{{1}}} ||-1}}<noinclude> | |
- | + | ;;;;;;;;;;;;;; Last choice: "link" | |
- | + | </noinclude>|link<noinclude> | |
- | + | </noinclude>}}<noinclude> | |
+ | |||
+ | </noinclude></includeonly> |
Current revision
This is the documentation for the template Template:Link/Desc/Text
The template 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>
.