Template:Lesson question/Link/Doc

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
; pagename : the name of the page to link to. The page used will be a subpage if it exists, or an absolute page if that exists. If neither exists, a redlink to a subpage is ude.
; pagename : the name of the page to link to. The page used will be a subpage if it exists, or an absolute page if that exists. If neither exists, a redlink to a subpage is ude.
-
; description : (optional) the text to use for the link.
+
; description : (optional) the text to use for the link, otherwise pagename is used.
 +
 
 +
 
 +
{{demo table|
 +
{{demo row|<nowiki>{{Lesson question/Link|1}}</nowiki><!--
 +
-->|{{Lesson question/Link|1}}}}
 +
{{demo row|<nowiki>{{Lesson question/Link|Main Page}}</nowiki><!--
 +
-->|{{Lesson question/Link|Main Page}}}}
 +
}}

Revision as of 05:09, 6 January 2013

The template {{Lesson question/Link|pagename|description}} produces a link to a Category:Lesson question.

pagename 
the name of the page to link to. The page used will be a subpage if it exists, or an absolute page if that exists. If neither exists, a redlink to a subpage is ude.
description 
(optional) the text to use for the link, otherwise pagename is used.


You type... You get...
{{Lesson question/Link|1}} 
1
{{Lesson question/Link|Main Page}} 
Main Page
Personal tools