Template:Infobox Ferret/doc: Difference between revisions
Added Birthday |
added parameter "noCargo". Was already in code but not specified in documentation |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Doc/start}} | {{Doc/start}} | ||
<templatestyles src="Template:Infobox_Ferret/doc/styles.css" /> | |||
An infobox for use on Ferret pages. It stores data to [[Special:CargoTables/Ferret]]. | An infobox for use on Ferret pages. It stores data to [[Special:CargoTables/Ferret]]. | ||
{{notice|file=Warning.png|header=Known Issue - Spaces in ferret names|content=Currently <code>name</code> parameter must be set manually for ferrets with spaces in their name. Spaces must be replaced by underscores. <br>Example: For '''Mai Tai''' you have to add <code>{{!}} name = Mai_Tai</code> to her Infobox|color=orange|colorBack=orange}} | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Infobox Ferret | {{Infobox Ferret | ||
| | | nickname = | ||
| | | shayename = | ||
| gender = | | gender = | ||
| arrivaldate = | | arrivaldate = | ||
Line 23: | Line 27: | ||
! Parameter !! Data Type !! Default Value !! Description | ! Parameter !! Data Type !! Default Value !! Description | ||
|- | |- | ||
| name || String || <nowiki>{{PAGENAME}}</nowiki> || The ferret's name | | name || String || <nowiki>{{PAGENAME}}</nowiki> || The ferret's name. <ref group ="note"><code>name</code> parameter is used for internal linking on the wiki. Make sure the title of the ferret's page matches it's name. Don't try to define <code>name</code> by any other than using the default value, any difference between <code>name</code> and page title ([https://www.mediawiki.org/wiki/Manual:Page_title External Link: MediaWiki Manual - Page Title]) will cause broken broken internal links for the ferret's page!</ref> | ||
|- | |- | ||
| | | nickname || String || || The ferret's nicknames by Chat | ||
|- | |||
| shayename || String || || The ferret's nicknames by Shaye | |||
|- | |- | ||
| gender || String || || The ferret's gender | | gender || String || || The ferret's gender | ||
Line 46: | Line 52: | ||
|- | |- | ||
| noCategories || Boolean || || Optional. If given any value, the page will not be auto-categorized. | | noCategories || Boolean || || Optional. If given any value, the page will not be auto-categorized. | ||
|- | |||
| noCargo || Boolean || || Optional. If given any value, no content will be added into [[Special:CargoTables/Ferret]]. | |||
|} | |} | ||
=== Mugshot Image === | |||
Filename <code>Ferretname_Mugshot.png</code> for the Image will be created automatically. If the File doesn't exist, [[:File:Unknown_Mugshot.png]] will be used as a placeholder, the Infobox will display the missing file below the placeholder and the page will be added to [[:Category:Ferrets lacking infobox image]]. | |||
Image size should be approx. 190x230 px | |||
==== <u>Notes</u> ==== | |||
<references group ="note" /> | |||
==Example== | ==Example== | ||
<div class="infobox-ferret-doc-example"> | |||
<div class="infobox-ferret-doc-example-textbox"> | |||
=== Ferret without Mugshot === | |||
<pre style="overflow:auto;"> | |||
{{Infobox Ferret | |||
| noCategories = 1 [*] | |||
| name = Yoghurt [*] | |||
| gender = Male | |||
| arrivaldate = 2024/02/26 | |||
| valhalla = | |||
| playgroup = BePeepo | |||
| isinquarantine = False | |||
| age = 3 | |||
| valhallalink = | |||
| arrivallink = | |||
}} | |||
</pre> | |||
====Notes==== | |||
[*] marked Parameters are used to create examples for this documentation. Don't set <code>name</code> on the ferret page manually. A <code>name</code> that differs from the page title will cause broken internal links. <code>noCategories = 1</code> prevent categories been added to the page. | |||
</div> | |||
<div class="infobox-ferret-doc-example-infobox"> | |||
{{Infobox Ferret | {{Infobox Ferret | ||
| noCategories = 1 | | noCategories = 1 | ||
| name = | | name = Yoghurt | ||
| gender = Male | | gender = Male | ||
| arrivaldate = 2024/02/26 | | arrivaldate = 2024/02/26 | ||
Line 62: | Line 101: | ||
| arrivallink = | | arrivallink = | ||
}} | }} | ||
</div> | |||
</div> | |||
<div class="infobox-ferret-doc-example"> | |||
<div class="infobox-ferret-doc-example-textbox"> | |||
=== Ferret with Mugshot === | |||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox Ferret | |||
| noCategories = 1 [*] | |||
| name = Badger [*] | |||
| gender = Male | |||
| arrivaldate = 2024/02/26 | |||
| valhalla = | |||
| playgroup = BePeepo | |||
| isinquarantine = False | |||
| age = 3 | |||
| valhallalink = | |||
| arrivallink = | |||
}} | |||
</pre> | |||
====Notes==== | |||
[*] marked Parameters are used to create examples for this documentation. Don't set <code>name</code> on the ferret page manually. A <code>name</code> that differs from the page title will cause broken internal links. <code>noCategories = 1</code> prevent categories been added to the page. | |||
</div> | |||
<div class="infobox-ferret-doc-example-infobox"> | |||
{{Infobox Ferret | {{Infobox Ferret | ||
| noCategories = 1 | | noCategories = 1 | ||
| name = Badger | | name = Badger | ||
| gender = Male | | gender = Male | ||
| arrivaldate = 2024/02/26 | | arrivaldate = 2024/02/26 | ||
Line 77: | Line 139: | ||
| arrivallink = | | arrivallink = | ||
}} | }} | ||
</ | </div> | ||
</div> | |||
{{clear}} | {{clear}} | ||
{{Doc/end}} | {{Doc/end}} |
Latest revision as of 01:21, 10 April 2025
An infobox for use on Ferret pages. It stores data to Special:CargoTables/Ferret.

name
parameter must be set manually for ferrets with spaces in their name. Spaces must be replaced by underscores. Example: For Mai Tai you have to add
| name = Mai_Tai
to her Infobox
Usage
{{Infobox Ferret | nickname = | shayename = | gender = | arrivaldate = | birthday = | valhalla = | playgroup = | age = | isinquarantine= | valhallalink = | arrivallink = }}
Parameters
Parameter | Data Type | Default Value | Description |
---|---|---|---|
name | String | {{PAGENAME}} | The ferret's name. [note 1] |
nickname | String | The ferret's nicknames by Chat | |
shayename | String | The ferret's nicknames by Shaye | |
gender | String | The ferret's gender | |
arrivaldate | String | The date the ferret arrived at the shelter | |
birthday | String | The confirmed known date of birth of the ferret | |
valhalla | String | The date the ferret passed away | |
playgroup | String | The ferret's playgroup | |
Age | Integer | The ferret's age | |
isinquarantine | Boolean | The ferret is in quarantine | |
valhallalink | String | The ferret's link of its passed away on. | |
arrivallink | String | The ferret's link of when it arrival to snail house | |
noCategories | Boolean | Optional. If given any value, the page will not be auto-categorized. | |
noCargo | Boolean | Optional. If given any value, no content will be added into Special:CargoTables/Ferret. |
Mugshot Image
Filename Ferretname_Mugshot.png
for the Image will be created automatically. If the File doesn't exist, File:Unknown_Mugshot.png will be used as a placeholder, the Infobox will display the missing file below the placeholder and the page will be added to Category:Ferrets lacking infobox image.
Image size should be approx. 190x230 px
Notes
- ↑
name
parameter is used for internal linking on the wiki. Make sure the title of the ferret's page matches it's name. Don't try to definename
by any other than using the default value, any difference betweenname
and page title (External Link: MediaWiki Manual - Page Title) will cause broken broken internal links for the ferret's page!
Example
Ferret without Mugshot
{{Infobox Ferret | noCategories = 1 [*] | name = Yoghurt [*] | gender = Male | arrivaldate = 2024/02/26 | valhalla = | playgroup = BePeepo | isinquarantine = False | age = 3 | valhallalink = | arrivallink = }}
Notes
[*] marked Parameters are used to create examples for this documentation. Don't set name
on the ferret page manually. A name
that differs from the page title will cause broken internal links. noCategories = 1
prevent categories been added to the page.
Yoghurt | |
---|---|
| |
General details | |
Name | Yoghurt |
Gender | Male |
Arrival date | 2024/02/26 |
Playgroup | BePeepo |
Age | 3 |
Ferret with Mugshot
{{Infobox Ferret | noCategories = 1 [*] | name = Badger [*] | gender = Male | arrivaldate = 2024/02/26 | valhalla = | playgroup = BePeepo | isinquarantine = False | age = 3 | valhallalink = | arrivallink = }}
Notes
[*] marked Parameters are used to create examples for this documentation. Don't set name
on the ferret page manually. A name
that differs from the page title will cause broken internal links. noCategories = 1
prevent categories been added to the page.