Template talk:Sclass: Difference between revisions
tweaked assessment |
edit request |
||
Line 24: | Line 24: | ||
::<code><nowiki>{{</nowiki>sclass | Shipname | Classtype | 4 <nowiki>}}</nowiki></code> |
::<code><nowiki>{{</nowiki>sclass | Shipname | Classtype | 4 <nowiki>}}</nowiki></code> |
||
:which would produce <code>''Shipname'' class</code>. — [[User:Bellhalla|Bellhalla]] ([[User talk:Bellhalla|talk]]) 11:58, 25 December 2007 (UTC) |
:which would produce <code>''Shipname'' class</code>. — [[User:Bellhalla|Bellhalla]] ([[User talk:Bellhalla|talk]]) 11:58, 25 December 2007 (UTC) |
||
== Edit request == |
|||
{{editprotected}} |
|||
Please change the first line of this template from this: |
|||
* <code><nowiki><includeonly>[[{{{1}}} class {{{2}}}| ''{{{1}}}''<!-- remove \n</nowiki></code> |
|||
to this: |
|||
* <code><nowiki><includeonly>[[{{{1}}} class {{{2}}}|''{{{1}}}''<!-- remove \n</nowiki></code> |
|||
This edit will remove one extra space character that is generated in front of the link, noticeable when this template is used right after punctuation. This should be a pretty straightforward edit, but nevertheless, I have tested this change at the [[Template:Sclass/testcases|testcases]] page. — [[User:Bellhalla|Bellhalla]] ([[User talk:Bellhalla|talk]]) 16:24, 4 June 2009 (UTC) |
Revision as of 16:24, 4 June 2009
![]() | Ships Template‑class | ||||||
|
Optional parameter value = 4
I modified the template so that it will accept an optional parameter value of 4. This will allow properly punctuated usage of the class when it is to be used as a noun. Grammatically, using parameter value = 0 provides an adjectival form.
For example:
- The last ship of the {{sclass|Haven|hospital ship|4}} is still afloat in [[Baltimore, Maryland]].
Gives this:
- The last ship of the Haven class is still afloat in Baltimore, Maryland.
I tested this at {{User:Bellhalla/Sandbox}} prior to implementing the change, so I am hopeful that it will work correctly.— Bellhalla 11:41, 6 November 2007 (UTC)
Disambiguation parameter
I have added a disambiguation parameter to {{sclass}} to help avoid generating links to disambiguation pages. This is what occurred previously when the "ship type" parameter was "minesweeper". The template linked to minesweeper, a disambiguation page, rather than minesweeper (ship).
I tested the functionality of my changes at {{sclass/sandbox}} and User:Bellhalla/Sandbox before implementing them. — Bellhalla (talk) 19:03, 24 December 2007 (UTC)
hyphen use
what if you don't like using a hyphen in the class name? GraemeLeggett (talk) 08:54, 25 December 2007 (UTC)
- As of right now, you can generate the form "Name class" — with no hyphen (but also no ship type) — by using format option 4, like this
{{sclass | Shipname | Classtype | 4 }}
- which would produce
Shipname class
. — Bellhalla (talk) 11:58, 25 December 2007 (UTC)
Edit request
Please change the first line of this template from this:
<includeonly>[[{{{1}}} class {{{2}}}| ''{{{1}}}''<!-- remove \n
to this:
<includeonly>[[{{{1}}} class {{{2}}}|''{{{1}}}''<!-- remove \n
This edit will remove one extra space character that is generated in front of the link, noticeable when this template is used right after punctuation. This should be a pretty straightforward edit, but nevertheless, I have tested this change at the testcases page. — Bellhalla (talk) 16:24, 4 June 2009 (UTC)