Template:Resource badge/common: Difference between revisions
m (Text replacement - " " to " ") |
(Created page with '{{documentation subpage}} == Usage == The '''{{tl|{{BASEPAGENAME}}}}''' template has been created as a way of high lighting resources available for the locality where the tem…') |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
The '''{{tl|{{BASEPAGENAME}}}}''' template has been created as a way of high lighting resources available for the locality where the template is placed. | The '''{{tl|{{BASEPAGENAME}}}}''' template has been created as a way of high lighting resources available for the locality where the template is placed. | ||
*[https://wiki.familysearch.org/en/index.php?title=Special:WhatLinksHere&target={{#replace:{{FULLPAGENAME}}| |+}} Pages that use | * [https://wiki.familysearch.org/en/index.php?title=Special:WhatLinksHere&target={{#replace:{{FULLPAGENAME}}| |+}}&namespace=0 Pages that use this badge] | ||
=== Example === | === Example === | ||
Line 16: | Line 16: | ||
| | | | ||
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> | <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> | ||
| | | | ||
{{ {{BASEPAGENAME}}}} | {{ {{BASEPAGENAME}}}} | ||
|- | |- | ||
| | | | ||
<nowiki>{{</nowiki>{{BASEPAGENAME}} | <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|layout=vertical}}</nowiki> | ||
| | | | ||
{{ {{BASEPAGENAME}}||layout=vertical | {{ {{BASEPAGENAME}}||layout=vertical}} | ||
|} | |} | ||
Line 49: | Line 31: | ||
These parameters are: | These parameters are: | ||
;link | ;link | ||
:This is the external link to the resource. | :(optional) This is the external link to the resource. | ||
;name | ;name | ||
:This is display text used for the link. If this parameter is not defined then the default text is ''no name defined''. | :This is display text used for the link. If this parameter is not defined then the default text is ''no name defined''. | ||
Revision as of 15:09, 7 March 2011
Usage[edit source]
The {{Resource badge}} template has been created as a way of high lighting resources available for the locality where the template is placed.
Example[edit source]
You type | You get | ||
---|---|---|---|
{{Resource badge}} |
| ||
{{Resource badge|layout=vertical}} |
|
Parameters[edit source]
There are two parameters that are used to create the specific link to the resource.
These parameters are:
- link
- (optional) This is the external link to the resource.
- name
- This is display text used for the link. If this parameter is not defined then the default text is no name defined.