Template:Resource badge/common

From FamilySearch Wiki

(Difference between revisions)
(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…')
 
(add example using float)
(7 intermediate revisions by one user 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}}| |+}}&namespace=0 Pages that use 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 20: Line 20:
 
|-
 
|-
 
|  
 
|  
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|layout=vertical}}</nowiki>  
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}</br>
 +
<nowiki>| link = http://www.familysearch.org </nowiki></br>
 +
<nowiki>| name = resource name</nowiki></br>
 +
<nowiki>}}</nowiki>  
 
|  
 
|  
{{ {{BASEPAGENAME}}||layout=vertical}}  
+
{{ {{BASEPAGENAME}}||link=http://www.familysearch.org|name=resource name}}
 +
|-
 +
|
 +
<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>
 +
|
 +
{{ {{BASEPAGENAME}}||layout=vertical|link=http://www.familysearch.org|name=resource name}}
 +
|-
 +
|
 +
<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>
 +
|
 +
{{ {{BASEPAGENAME}}||layout=vertical| float = right|link=http://www.familysearch.org|name=resource name}}  
 
|}
 
|}
  
Line 32: Line 54:
  
 
;link&nbsp;
 
;link&nbsp;
:(optional) This is the external link to the resource.  
+
:This is the external link to the resource. ie. '''http://''' ''etc.''
 
;name&nbsp;
 
;name&nbsp;
 
: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''.
 +
 +
<includeonly>
 +
[[Category:Resource badge templates|{{PAGENAME}}]]
 +
</includeonly>

Revision as of 23:43, 18 March 2011


Usage

The {{Resource badge}} template has been created as a way of high lighting resources available for the locality where the template is placed.

Example

You type You get

{{Resource badge}}

id info

{{Resource badge
| link = http://www.familysearch.org
| name = resource name
}}

id info

{{Resource badge
| layout = vertical
| link = http://www.familysearch.org
| name = resource name
}}

info

{{Resource badge
| layout = vertical
| float = right
| link = http://www.familysearch.org
| name = resource name
}}

info

Parameters

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.