User:Timeshifter/Sandbox 2

From Wikimedia Commons, the free media repository
Jump to: navigation, search

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}}

Template:Categorise/layout[edit]

Original:

| colspan="2" |
{{Categorise/lang}}
Nuvola filesystems folder locked.png empty

العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

substituted "text" for {{Categorise/lang}}

| colspan="2" |
text
Nuvola filesystems folder locked.png 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
Nuvola filesystems folder locked.png 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}}
Nuvola filesystems folder locked.png empty
العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

Padding[edit]

Tried something. Added style="padding-bottom:50px;"

| colspan="2" style="padding-bottom:50px;"|{{Categorise/lang}}
Nuvola filesystems folder locked.png empty
العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−
| colspan="2" style="padding-bottom:50px;"|text
Nuvola filesystems folder locked.png empty
text


Changed 50px to 0px. style="padding-bottom:0px;"

It did not help.

''| colspan="2" style="padding-bottom:0px;"|{{Categorise/lang}}''
Nuvola filesystems folder locked.png empty
العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

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: العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

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}}
Nuvola filesystems folder locked.png empty
See العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

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}}
Nuvola filesystems folder locked.png empty

See العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

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 العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/− 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 العربية | অসমীয়া | Asturianu | Azərbaycanca | Boarisch | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | Español | Euskara | فارسی | Suomi | Français | Nordfriisk | Galego | Alemannisch | עברית | हिन्दी | Magyar | Interlingua | Italiano | 日本語 | ქართული | 한국어 | Lëtzebuergesch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk bokmål | Occitan | Polski | Português | Português do Brasil | Română | Русский | Slovenčina | Slovenščina | Svenska | தமிழ் | Тоҷикӣ | ไทย | Türkçe | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

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.