Difference between revisions of "Template:Sec link/text"
From Self-sufficiency
(Creating the sub-template that shows the link caption (a text or a text looking like a link).) |
(Better handling of local links.) |
||
Line 2: | Line 2: | ||
| {{{text}}} | | {{{text}}} | ||
| {{#if: {{{project|}}} | | {{#if: {{{project|}}} | ||
− | | {{{project} | + | | {{{project}}}:{{#if: {{{lang|}}} |
− | + | | {{{lang}}}: | |
− | + | }}{{{pagename|}}} | |
− | + | | <!--No project, so a local link--> | |
− | + | {{#if: {{{pagename|}}} | |
+ | | {{{pagename}}} | ||
+ | | {{MediaWiki:Mainpage}} <!--Main page name at the local project--> | ||
+ | }} | ||
+ | }}{{ | ||
#if: {{{query|}}} | #if: {{{query|}}} | ||
| ?{{{query|}}} | | ?{{{query|}}} |
Revision as of 22:46, 24 December 2009
Main Page
[edit]
Documentation