Template:Lesson question/Link/Doc
From PCSAR
(Difference between revisions)
(New page: {{template doc|<nowiki>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 exi...) |
|||
(2 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | {{template doc|<nowiki>pagename|description}} | + | {{Lesson question/Doc/Related}} |
+ | {{template doc|<nowiki>pagename|description</nowiki>}} | ||
produces a link to a [[:Category:Lesson question]]. | 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. | ; 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}}}} | ||
+ | }} |
Current revision
Related Templates | |
---|---|
Lesson question/Link | produces a link to a Lesson question |
Lesson question | shortcut to Lesson question/Link |
Lesson question/Page | subst: for a page that is a Lesson question |
Lesson question/Record | defines current page as a Lesson Question |
Lesson question/Ask | format a Lesson Question for printing |
Question bank | creates a lesson Question Bank |
Question bank/Count | number of Questions in a Question Bank |
Question bank/Question | displays a Question in a Question Bank |
Question bank/Pick | pick a Question in a Question Bank |
Question bank/Monitor | ask a Question; prompt for a new one |
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 |