Editing Template:Link/Desc/Doc
From PCSAR
Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Current revision | Your text | ||
Line 1: | Line 1: | ||
{{Template:Link/Doc/Related}} | {{Template:Link/Doc/Related}} | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
{{Template doc|<nowiki>Page|RevisionID=id|PageNum=number|Text|Desc=description</nowiki>}} | {{Template doc|<nowiki>Page|RevisionID=id|PageNum=number|Text|Desc=description</nowiki>}} | ||
- | + | is used to create a link to a page. | |
; Page : the page to link to | ; Page : the page to link to | ||
Line 59: | Line 8: | ||
; Text : (optional) the text to display as the link | ; Text : (optional) the text to display as the link | ||
; Desc : (optional) the text to display as the link if the page does not have a description and ''Text'' is not supplied. There is no point to specifying both ''Text'' and ''Desc''. | ; Desc : (optional) the text to display as the link if the page does not have a description and ''Text'' is not supplied. There is no point to specifying both ''Text'' and ''Desc''. | ||
- | + | ||
+ | This template's purpose is very similar to creating links with double square brackets. | ||
+ | The benefit of using <code>{{((}}Link/Desc|</code> | ||
+ | is that, the page itself may specify a description using [[Template:desc]], etc. | ||
+ | (Using the [[Property:Page description]].) | ||
+ | That description can be displayed as the link text. | ||
+ | Just like with double square brackets, if you have preferred text for the link, you can provide it. | ||
+ | While ''Text'' is higher priority than the page's own description, | ||
+ | ''Desc'' is lower priority. | ||
+ | |||
For illustration purpose, the following demonstration pages have been set up: | For illustration purpose, the following demonstration pages have been set up: | ||
* "[[Demo/Page with description]]" uses [[Template:desc]] to define a description. | * "[[Demo/Page with description]]" uses [[Template:desc]] to define a description. |