Bysen:Scip
Lua error in package.lua at line 80: module 'Module:Transclusion_count/data/S' not found.
| This template uses Lua: |
Usage
[adihtan fruman]Bȳsn {{Scip}} creates a wikihlenca to its gewrit and formats the sihtnama correctly. That is, it handles both parts of [[targetpage|label]]. Nū hit upp þǣm brūcend (ēow) tō geƿitanne þis riht: ā blǣhrenc tō þǣm gewrit, and ƿel-ġeformaþ scipes fullnama.
Se scipes gewrit mǣg be namned: [[HMCS Kootenay (H75)]] → HMCS Kootenay (H75). Þē þrī parts namend: prefix, name, ID (ID is WP:Disambiguation, or hulu tǣlle, feþer tǣlle, hurl tǣlle: to identify the scip when multiple ships have the same name).
Apart from the article title, in the visible label the name could be formatted. Like: [[HMCS Kootenay (H75)|HMCS ''Kootenay'']] → HMCS Kootenay (note the italics, and the omission of the hulu tǣlle – hlencan to the sama gewrit).
Basic usage
[adihtan fruman]- {{ship|1-prefix|2-name|3-ID}} →
[[1-prefix 2-name (3-ID)|1-prefix ''2-name'' (3-ID)]]→ Bysen:Ship
- 1 prefix
- like HMS, USS. Leave the parameter blank if the ship's title has no prefix.
- 2 name
- ship's name
- 3 ID
- Specifier like hull number, pennant number, or launch year. Also serves as the WP:Disambiguation term in article titles.
All parameters are optional. You only need to enter the parts that build the article title.
- Bȳsna
| Bȳsen usage | Resulting wikicode | Hlenca showing |
|---|---|---|
| {{ship|ARA|General Belgrano}} | [[ARA General Belgrano|ARA ''General Belgrano'']] | Bysen:Ship |
| {{ship|HMCS|Kootenay|H75}} | [[HMCS Kootenay (H75)|HMCS ''Kootenay'' (H75)]] | Bysen:Ship |
Formasceamas gewīs
[adihtan fruman]Sē fēorþa, unnamod gewīs |4=ālyfþ setlunge hwilċe dǣlas texta bēoþ onƿeorpne in þǣre ƿicyhrence. Hit seteþ þone bīcnere in þǣre hrence: [[targetpage|label]]
Fœrr bysn, se scipum gewrit is ġecymen as {{ship|HMCS|Kootenay|H75}}, þurh sċyld sċēaƿiġende sƿā Bysen:Ship.
But in your article, the hull number (disambiguator) may not be needed to show. In that case, add |4=2, and the result is:
{{ship|HMCS|Kootenay|H75|2}}→ Bysen:Ship[[HMCS Kootenay (H75)|''Kootenay'']]
The options are:
| Value | Parameter(s) displayed |
Example | Equivalent wikicode | Final result | |
|---|---|---|---|---|---|
| None | prefix, name, ID | {{ship|HMCS|Kootenay|H75}} | [[HMCS Kootenay (H75)|HMCS ''Kootenay'' (H75)]] | Bysen:Ship | |
| 1 | ID | {{ship|HMCS|Kootenay|H75|1}} | [[HMCS Kootenay (H75)|H75]] | Bysen:Ship | |
| 2 | name | {{ship|HMCS|Kootenay|H75|2}} | [[HMCS Kootenay (H75)|''Kootenay'']] | Bysen:Ship | |
| 3 | name, ID | {{ship|HMCS|Kootenay|H75|3}} | [[HMCS Kootenay (H75)|''Kootenay'' (H75)]] | Bysen:Ship | |
| 4 | invalid | {{ship|HMCS|Kootenay|H75|4}} | — | Bysen:Ship | |
| 5 | prefix, ID | {{ship|HMCS|Kootenay|H75|5}} | [[HMCS Kootenay (H75)|HMCS ''H75'']] | Bysen:Ship | |
| 6 | prefix, name | {{ship|HMCS|Kootenay|H75|6}} | [[HMCS Kootenay (H75)|HMCS ''Kootenay'']] | Bysen:Ship | |
Same format, no wikilink
[adihtan fruman]By setting |wl=no, the same formatting is made but the ship's name is not linked:
- Bysen:Ship (regular,
{{ship|HMCS|Kootenay|H75}}) - Bysen:Ship (no wikilink, setting
{{ship|HMCS|Kootenay|H75|wl=no}})
Prefix in/out option
[adihtan fruman]Parameter |up=yes (for unlinked prefix) can be used to have an unlinked prefix:. When set to "yes", the bȳsen will display the prefix before (outside of) the wikilink.
- Examples
{{ship|Japanese battleship|Yamato|up=yes}}→ Bysen:Ship
Using a format option:
{{ship|Japanese battleship|Yamato||2|up=yes}}→ Bysen:Ship
TemplateData
[adihtan fruman]This template provides a wikilink to a ship's page, with label options
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Prefix | 1 | Fleet identifier
| String | optional |
| Name | 2 | Ship's name
| String | optional |
| ID | 3 | Hull number, launch year, or pennant number
| String | optional |
| Format | 4 | Formats label (parts showing)
| Number | optional |
| unlink prefix | up | yes=puts Fleet ID outside of Wikilink
| Boolean | optional |
Tracking categories
[adihtan fruman]See also
[adihtan fruman]| The above documentation is transcluded from Bysen:Scip/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |