Template:Link/Create/Core
From PCSAR
(Difference between revisions)
(New page: <noinclude>{{documentation}}</noinclude><includeonly><!-- Do we have to use parameters to index.php? We want to avoid them because redlink appearance is different in internal links than ...) |
|||
Line 1: | Line 1: | ||
- | <noinclude>{{documentation}}</noinclude><includeonly>< | + | <noinclude>{{documentation}}</noinclude><includeonly><noinclude> |
- | + | ;;;;;;;;;;;; | |
- | Do we have to use parameters to index.php? We want to avoid them because redlink appearance is different | + | ;;;;;;;;;;;; Do we have to use parameters to index.php? We want to avoid them |
- | in internal links than external links. Although we try to make it look as close to the original as | + | ;;;;;;;;;;;; because redlink appearance is different in internal links than |
- | possible, it's not quite. | + | ;;;;;;;;;;;; external links. Although we try to make it look as close to the |
- | * red links that have been visited don't get a faded colour. | + | ;;;;;;;;;;;; original as possible, it's not quite. |
- | * hovering over an external link underlines it in blue, even if it's a red link. | + | ;;;;;;;;;;;; |
- | * The red we chose ignores the user's preference of stylesheet, etc. | + | ;;;;;;;;;;;; * red links that have been visited don't get a faded colour. |
- | + | ;;;;;;;;;;;; * hovering over an external link underlines it in blue, even if | |
- | http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Options_affecting_the_edit_form | + | ;;;;;;;;;;;; it's a red link. |
- | + | ;;;;;;;;;;;; * The red we chose ignores the user's preference of stylesheet, | |
- | + | ;;;;;;;;;;;; etc. | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Options_affecting_the_edit_form | |
- | + | ;;;;;;;;;;;; | |
- | We were given index.php parameters | + | </noinclude>{{#if: {{{Preload|}}}{{{Editintro|}}}<noinclude> |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; We were given index.php parameters | |
- | + | ;;;;;;;;;;;; | |
- | The page exists, we don't need the index.php parameters; use an internal link. | + | </noinclude>{{#ifexist: {{{1}}}<noinclude> |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; The page exists, we don't need the index.php parameters; use an | |
- | + | ;;;;;;;;;;;; internal link. | |
- | We have to use index.php parameters to a non-existing page. | + | ;;;;;;;;;;;; |
- | Use an external link, but make it look as much like an internal link as we can. | + | </noinclude>{{{Internal}}}<noinclude> |
- | + | ;;;;;;;;;;;; | |
- | Don't paint the external link fancy (no arrow). | + | </noinclude>|<noinclude> |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; We have to use index.php parameters to a non-existing page. | |
- | + | ;;;;;;;;;;;; Use an external link, but make it look as much like an internal | |
- | + | ;;;;;;;;;;;; link as we can. | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; Don't paint the external link fancy (no arrow). | |
- | + | ;;;;;;;;;;;; | |
- | The URL marked up with parameters. | + | </noinclude>{{Plainlink<noinclude> |
- | Parameters that aren't specified will be blank which defaults to no action. | + | ;;;;;;;;;;;; |
- | + | ;;;;;;;;;;;; The URL marked up with parameters. | |
- | + | ;;;;;;;;;;;; Parameters that aren't specified will be blank which defaults to | |
- | + | ;;;;;;;;;;;; no action. | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|{{fullurl:{{{1}}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|action=edit<noinclude> | |
- | Paint the link red. | + | ;;;;;;;;;;;; |
- | + | ;;;;;;;;;;;; FULLPAGENAMEE : use _'s instead of spaces | |
- | + | </noinclude>&preload={{FULLPAGENAMEE:{{{Preload|}}}}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>&editintro={{FULLPAGENAMEE:{{{Editintro|}}}}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|{{{2}}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; Paint the link red. | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>|Style=color: #ba0000;<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>}}<noinclude> | |
- | There were no index.php parameters; we can use an internal link. | + | ;;;;;;;;;;;; |
- | + | </noinclude>|<noinclude> | |
- | + | ;;;;;;;;;;;; | |
- | + | ;;;;;;;;;;;; There were no index.php parameters; we can use an internal link. | |
- | + | ;;;;;;;;;;;; | |
- | + | </noinclude>{{{Internal}}}<noinclude> | |
- | + | ;;;;;;;;;;;; | |
+ | </noinclude>}}<noinclude> | ||
+ | ;;;;;;;;;;;; | ||
+ | </noinclude></includeonly> |
Revision as of 21:03, 6 July 2017
This is the documentation for the template Template:Link/Create/Core
The template It performs the core function of Link/Create, leaving the caller to decide what Text to display and how to create an Internal link if the external one does not have to be used.
|
To see how this template is implemented,
edit this page and examine the portion
between <includeonly>
and </includeonly>
.