Template:UserBox Adopt-A-Wiki PageEdit This Page

From FamilySearch Wiki

Revision as of 18:03, 9 December 2010 by VasquezJL (Talk | contribs)
Adopt-a-wiki page
FHAM.JPG This page adopted by:
The Fictional Genealogical Society and its members
who welcome you to contribute.
Adopt a page today



This template has been created as an example of an {{adoption sign}} template. It should only be used as part of an example. The basic code to be used when creating a new sign can be found in the documentation for the Template:Adoption sign.


[view] [edit] [history] [purge] Documentation icon Template documentation

Contents

Usage

The {{UserBox Adopt-A-Wiki Page}} template has been created as an adoption sign to be used in the Adopt-A-Wiki Page Program.

When this template is added to a page, the page will be automatically added to Category:Adopted pages.

Example

You type You get

{{UserBox Adopt-A-Wiki Page}}

Adopt-a-wiki page
FHAM.JPG This page adopted by:
The Fictional Genealogical Society and its members
who welcome you to contribute.
Adopt a page today


{{UserBox Adopt-A-Wiki Page|small=true}}

Adopt-a-wiki page
FHAM.JPG This page adopted by:
The Fictional Genealogical Society and its members
who welcome you to contribute.
Adopt a page today


{{UserBox Adopt-A-Wiki Page|Add '''custom''' text}}

Adopt-a-wiki page
FHAM.JPG This page adopted by:
The Fictional Genealogical Society and its members
who welcome you to contribute.
Add custom text
Adopt a page today


Example of use on a user page

{{UserBox Adopt-A-Wiki Page}}

Adopt-a-wiki page
FHAM.JPG This page adopted by:
The Fictional Genealogical Society and its members
who welcome you to contribute.
Adopt a page today


Adding sign inside an infobox

It is possible to add the adoption sign inside an infobox. To do so add the following code inside the infobox template on the page.

| adoption_sign = UserBox Adopt-A-Wiki Page

Parameters

There are two parameters that are used to create the custom look of the adoption sign. Edit this one template to make changes in the sign wherever it has been added in the wiki.

These parameters are:

logo 
(optional) This is the filename of the image to be used as a logo inside the sign. If the parameter is not defined no logo is displayed and the text part of the sign will fill the complete width.
adopter 
This is the text (can include wikicode) that will be displayed within the sign. If this parameter is not defined then the default text is This page is available for adoption.


In addition, another optional parameter, allows for custom text to be added underneath the main part of the sign. Set this to use a custom parameter in the main adoption sign template, using the code

| custom_text = {{{1|}}}

Then on different pages, different custom text can be added as needed.

{{UserBox Adopt-A-Wiki Page|add custom text inside the template}}
custom_text 
(optional) Add addtional custom text to the adoption sign. Wiki markup allowed.