User:Timeshifter/Sandbox 2
Note: Please see the comments on the talk page: User talk:Timeshifter/Sandbox 2
(Note to self: Keep this sandbox page on this topic). People seem to prefer this template to be shorter. Trying to lessen the blank space at the bottom of Template:Categorise. Also the blank space between the language list and the template text. See: Template:Categorise/en
The following examples show that the blank space/line/padding is added by how the Mediawiki software deals with the nested templates: {{Categorise/lang}} inside of {{Categorise/layout}}
Original:
| colspan="2" | {{Categorise/lang}}
empty
| |
|
substituted "text" for {{Categorise/lang}}
| colspan="2" | text
empty
| |
text |
No blank space at bottom of box
[edit]Tried moving "text" up next to the pipe/bar | for that cell. This removed most of the blank space around the bottom cell.
| colspan="2" |text
empty
| |
text |
Placement of wikitext did not help when template in cell
[edit]Moving {{Categorise/lang}} up next to the pipe/bar | did not help.
| colspan="2" | {{Categorise/lang}}
to
| colspan="2" |{{Categorise/lang}}
empty
| |
Padding
[edit]Tried something. Added style="padding-bottom:50px;"
| colspan="2" style="padding-bottom:50px;"|{{Categorise/lang}}
empty
| |
| colspan="2" style="padding-bottom:50px;"|text
empty
| |
text |
Changed 50px to 0px. style="padding-bottom:0px;"
It did not help.
''| colspan="2" style="padding-bottom:0px;"|{{Categorise/lang}}''
empty
| |
Possible problem
[edit]How Mediawiki deals with nested templates may be the problem
In particular; the transclusion of the language template into the categorize template. {{Categorise/lang}} produces the line of language links:
Here is the relevant line of wikitext in the table:
| colspan="2" |{{Categorise/lang}}
Note below that it is not possible to put any words in front of the list of language links in the table without additional blank space/padding/lines being added to the table above and below the language links. I added the word "See" in front:
| colspan="2" |'''See''' {{Categorise/lang}}
empty
| |
See |
This added space due to the nested templates looks like part of the problem. See User talk:Timeshifter/Sandbox 2
Moving the wikitext solves one problem:
| colspan="2" | '''See''' {{Categorise/lang}}
empty
| |
See |
But there is still the problem of the added margin around the bottom cell.
Table code, or indentation code, in front of template
[edit]See
links in this sentence. Note that the line of links is templated into this sentence without problem, and without paragraph tags <p> being put around it.But when I put an indentation colon (:) in front of the sentence there is a paragraph tag added in front of the template:
:'''See''' {{Categorise/lang}} '''links in this sentence.'''
- See links in this sentence.
So either table wikitext or indentation wikitext in front of the template code causes Mediawiki to put a paragraph tag <p> in front of the template.
One can see this by looking at "page source" from the view menu of the Firefox browser. Or "source" from the view menu of Internet Explorer browser.