Template:Resource badge/common: Difference between revisions
(add example using float) |
Sandralpond (talk | contribs) mNo edit summary |
||
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/refer to this badge] | *[https://wiki.familysearch.org/en/index.php?title=Special:WhatLinksHere&target={{#replace:{{FULLPAGENAME}}| |+}} Pages that use/refer to 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}}<br> <nowiki>| link = http://www.familysearch.org </nowiki><br> <nowiki>| name = resource name</nowiki><br> <nowiki>}}</nowiki> | ||
<nowiki>| link = http://www.familysearch.org </nowiki>< | |||
<nowiki>| name = resource name</nowiki>< | |||
<nowiki>}}</nowiki> | |||
| | | | ||
{{ {{BASEPAGENAME}}||link=http://www.familysearch.org|name=resource name}} | {{ {{BASEPAGENAME}}||link=http://www.familysearch.org|name=resource name}} | ||
|- | |- | ||
| | | | ||
<nowiki>{{</nowiki>{{BASEPAGENAME}}< | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br> <nowiki>| layout = vertical</nowiki><br> <nowiki>| link = http://www.familysearch.org </nowiki><br> <nowiki>| name = resource name</nowiki><br> <nowiki>}}</nowiki> | ||
<nowiki>| layout = vertical</nowiki>< | |||
<nowiki>| link = http://www.familysearch.org </nowiki>< | |||
<nowiki>| name = resource name</nowiki>< | |||
<nowiki>}}</nowiki> | |||
| | | | ||
{{ {{BASEPAGENAME}}||layout=vertical|link=http://www.familysearch.org|name=resource name}} | {{ {{BASEPAGENAME}}||layout=vertical|link=http://www.familysearch.org|name=resource name}} | ||
|- | |- | ||
| | | | ||
<nowiki>{{</nowiki>{{BASEPAGENAME}}< | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br> <nowiki>| layout = vertical</nowiki><br> <nowiki>| float = right</nowiki><br> <nowiki>| link = http://www.familysearch.org </nowiki><br> <nowiki>| name = resource name</nowiki><br> <nowiki>}}</nowiki> | ||
<nowiki>| layout = vertical</nowiki>< | |||
<nowiki>| float = right</nowiki>< | |||
<nowiki>| link = http://www.familysearch.org </nowiki>< | |||
<nowiki>| name = resource name</nowiki>< | |||
<nowiki>}}</nowiki> | |||
| | | | ||
{{ {{BASEPAGENAME}}||layout=vertical| float = right|link=http://www.familysearch.org|name=resource name}} | {{ {{BASEPAGENAME}}||layout=vertical| float = right|link=http://www.familysearch.org|name=resource name}} | ||
|} | |} | ||
Line 53: | Line 49: | ||
These parameters are: | These parameters are: | ||
;link | ;link | ||
:This is the external link to the resource. ie. '''http://''' ''etc.'' | :This is the external link to the resource. ie. '''http://''' ''etc.'' | ||
;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 08:37, 26 March 2015
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 |
| ||
{{Resource badge |
| ||
{{Resource badge |
|
Parameters[edit source]
There are two parameters that are used to create the specific link to the resource.
These parameters are:
- link
- This is the external link to the resource. ie. http:// etc.
- name
- This is display text used for the link. If this parameter is not defined then the default text is no name defined.