Template:Lesson question/Link

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Current revision (05:33, 6 January 2013) (edit) (undo)
 
(9 intermediate revisions not shown.)
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly><!--
<noinclude>{{documentation}}</noinclude><includeonly><!--
-
-->{{#ifexist: {FULLPAGENAME}}/{{{1}}}<!--
+
-->{{#ifexist: {{FULLPAGENAME}}/{{{1}}}<!--
-->|<!--
-->|<!--
Line 9: Line 9:
-->|<!--
-->|<!--
-
-->{{#ifexist: {{{1}}}}}<!--
+
-->{{#ifexist: {{{1}}}<!--
-->|<!--
-->|<!--
Line 16: Line 16:
-->|<!--
-->|<!--
-
--->not exist<!--
 
-
-->{{Link|{{FULLPAGENAME}}/{{{1}}} }}<!--
+
-->{{Link/Create|{{FULLPAGENAME}}/{{{1}}}|{{{2|{{{1}}} }}}|Preload=Template:Lesson_question/Boilerplate}}<!--
-->}}<!--
-->}}<!--

Current revision

This is the documentation for the template Template:Lesson question/Link

Template:Lesson question/Link/Doc:
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


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

Personal tools