Template:Lesson question/Link

From PCSAR

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

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